Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#484710: libruby1.8: Serious breakage with Rails in the session code

4 views
Skip to first unread message

Paul Hedderly

unread,
Jun 5, 2008, 4:30:14 PM6/5/08
to
Package: libruby1.8
Version: 1.8.7-1
Severity: grave
Justification: renders package unusable

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

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages libruby1.8 depends on:
ii libc6 2.7-11 GNU C Library: Shared libraries
ii libncurses5 5.6+20080531-1 Shared libraries for terminal hand
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

libruby1.8 recommends no packages.

-- no debconf information

All my rails apps give the error (full copy in http://pastie.org/209654)

/!\ FAILSAFE /!\ Thu Jun 05 20:17:57 +0100 2008
Status: 500 Internal Server Error
wrong number of arguments (2 for 1)
/usr/lib/ruby/1.8/cgi/session.rb:267:in `respond_to?'
/usr/lib/ruby/1.8/cgi/session.rb:267:in `initialize_without_cgi_reader'
...

line 267 in /usr/lib/ruby/1.8/cgi/session.rb has a comma where I'm sure it should not be!

session_id, = request.cookies[session_key]

--
Paul

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Lucas Nussbaum

unread,
Jun 5, 2008, 5:00:32 PM6/5/08
to
On 05/06/08 at 21:02 +0100, Paul Hedderly wrote:
> Package: libruby1.8
> Version: 1.8.7-1
> Severity: grave
> Justification: renders package unusable
>
> All my rails apps give the error (full copy in http://pastie.org/209654)
>
> /!\ FAILSAFE /!\ Thu Jun 05 20:17:57 +0100 2008
> Status: 500 Internal Server Error
> wrong number of arguments (2 for 1)
> /usr/lib/ruby/1.8/cgi/session.rb:267:in `respond_to?'
> /usr/lib/ruby/1.8/cgi/session.rb:267:in `initialize_without_cgi_reader'
> ...
>
> line 267 in /usr/lib/ruby/1.8/cgi/session.rb has a comma where I'm sure it should not be!
>
> session_id, = request.cookies[session_key]

Can you upgrade to version 1.8.7-2 and tell me if it fixed it?
--
| Lucas Nussbaum
| lu...@lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |

Lucas Nussbaum

unread,
Jun 6, 2008, 4:00:13 AM6/6/08
to
On 05/06/08 at 22:24 +0100, Paul Hedderly wrote:

> Lucas Nussbaum wrote:
> > On 05/06/08 at 21:02 +0100, Paul Hedderly wrote:
> >
> >> Package: libruby1.8
> >> Version: 1.8.7-1
> >> Severity: grave
> >> Justification: renders package unusable
> >>
> >> All my rails apps give the error (full copy in http://pastie.org/209654)
> >>
> >> /!\ FAILSAFE /!\ Thu Jun 05 20:17:57 +0100 2008
> >> Status: 500 Internal Server Error
> >> wrong number of arguments (2 for 1)
> >> /usr/lib/ruby/1.8/cgi/session.rb:267:in `respond_to?'
> >> /usr/lib/ruby/1.8/cgi/session.rb:267:in `initialize_without_cgi_reader'
> >> ...
> >>
> >> line 267 in /usr/lib/ruby/1.8/cgi/session.rb has a comma where I'm sure it should not be!
> >>
> >> session_id, = request.cookies[session_key]
> >>
> >
> > Can you upgrade to version 1.8.7-2 and tell me if it fixed it?
> >
> Will do when I can see it.

It's in unstable already.

Lucas Nussbaum

unread,
Jun 6, 2008, 4:20:08 AM6/6/08
to
On 06/06/08 at 08:27 +0100, Paul Hedderly wrote:
> Lucas Nussbaum wrote:
> > On 05/06/08 at 21:02 +0100, Paul Hedderly wrote:
> >
> >> Package: libruby1.8
> >> Version: 1.8.7-1
> >> Severity: grave
> >> Justification: renders package unusable
> >>
> >> All my rails apps give the error (full copy in http://pastie.org/209654)
> >>
> >> /!\ FAILSAFE /!\ Thu Jun 05 20:17:57 +0100 2008
> >> Status: 500 Internal Server Error
> >> wrong number of arguments (2 for 1)
> >> /usr/lib/ruby/1.8/cgi/session.rb:267:in `respond_to?'
> >> /usr/lib/ruby/1.8/cgi/session.rb:267:in `initialize_without_cgi_reader'
> >> ...
> >>
> >> line 267 in /usr/lib/ruby/1.8/cgi/session.rb has a comma where I'm sure it should not be!
> >>
> >> session_id, = request.cookies[session_key]
> >>
> >
> > Can you upgrade to version 1.8.7-2 and tell me if it fixed it?
> >
> Ok it appears to be working.... but I'm still unsure that the comma
> should be there in that line. But I'm no expert and it is working now it
> seems.

It's just another way to write array[0]:
irb(main):001:0> array = [ 3, 4, 5]
=> [3, 4, 5]
irb(main):002:0> array[0]
=> 3
irb(main):003:0> el, = array
=> [3, 4, 5]
irb(main):004:0> p el
3
=> nil

> I've closed the bug since it does seem to be resolved in 1.8.7-2

Thank you

0 new messages