Ticket #74 (new defect)
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
Note: See
TracTickets for help on using
tickets.
