[DRE-maint] Bug#602077: thin1.8: "servers" option make thin parse YAML options if they were given on cli

Jeremy Lal kapouer at melix.org
Mon Nov 1 10:58:44 UTC 2010


Package: thin1.8
Version: 1.2.4-1
Severity: normal

To reproduce :
add a custom option in /etc/thin1.8/myconf.yml, like this :

environment: production
chdir: /usr/share/redmine/
user: www-data
group: www-data
daemonize: true
mycustomoption: test

Thin starts this config file nicely.
Now add the servers option, to any value (even 1):
servers: 2

Thin will feed itself the yaml options to its command line parser :
/usr/lib/ruby/1.8/optparse.rb:1450:in `complete': invalid option: --mycustomoption=test (OptionParser::InvalidOption)
	from /usr/lib/ruby/1.8/optparse.rb:1448:in `catch'
	from /usr/lib/ruby/1.8/optparse.rb:1448:in `complete'
	from /usr/lib/ruby/1.8/optparse.rb:1261:in `parse_in_order'
	from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch'
	from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
	from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!'
	from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!'
	from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!'
	from /usr/lib/ruby/1.8/thin/runner.rb:131:in `parse!'
	from /usr/lib/ruby/1.8/thin/runner.rb:47:in `initialize'
	from /usr/bin/thin1.8:6:in `new'
	from /usr/bin/thin1.8:6

It should instead pass only the current config file path.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages thin1.8 depends on:
ii  libc6                        2.11.2-7    Embedded GNU C Library: Shared lib
ii  libdaemons-ruby1.8           1.0.10-2    Ruby daemons library
ii  libeventmachine-ruby1.8      0.12.10-1   Event-driven I/O library for high-
ii  librack-ruby1.8              1.1.0-4     A modular Ruby webserver interface
ii  libruby1.8 [libopenssl-ruby1 1.8.7.302-2 Libraries necessary to run Ruby 1.
ii  ruby1.8                      1.8.7.302-2 Interpreter of object-oriented scr

thin1.8 recommends no packages.

Versions of packages thin1.8 suggests:
pn  nginx                         <none>     (no description available)
ii  rails                         2.3.5-1.1  MVC ruby based framework geared fo

-- no debconf information







More information about the Pkg-ruby-extras-maintainers mailing list