Ticket #74 (new defect)

Opened 7 months ago

Last modified 2 months ago

Entering a prompted value containing $ or !, these get stripped.

Reported by: robmitch Owned by: jweiss
Priority: minor Milestone:
Component: component1 Version: 1.0
Keywords: Cc:

Description

When entering a value for a prompted configuration property, if this value contains a $ or ! character, it is stripped out when it is passed to capistrano. For example, entering a scm_password of '$test', the $ is stripped and only the value 'test' is passed on the command line to the scm. I have traced the command where this is happening, to the following line in the deploy_in_background method in the deployment model:

system("sh -c \"cd #{RAILS_ROOT} && ruby script/runner -e #{RAILS_ENV} ' deployment = Deployment.find(#{self.id}); deployment.prompt_config = #{self.prompt_config.inspect.gsub('"', '\"')} ; Webistrano::Deployer.new(deployment).invoke_task! ' >> #{RAILS_ROOT}/log/#{RAILS_ENV}.log 2>&1\" &").

Change History

Changed 7 months ago by jweiss

  • owner changed from somebody to jweiss

Changed 2 months ago by jweiss

This seems to work for me. Have you checked again?

Note: See TracTickets for help on using tickets.