Package: eruby
Version: 1.0.5-2
Severity: normal

My setup consists of an Apache 2.2.9 web server with eRuby configured
as follows:
  AddType application/x-httpd-eruby .rhtml
  Action application/x-httpd-eruby /cgi-bin-eruby
  ScriptAlias /cgi-bin-eruby /usr/lib/eruby/eruby.unicode

The referenced script eruby.unicode contains a wrapper:
  #!/bin/sh
  cd $(dirname ${PATH_TRANSLATED:-/})
  exec /usr/bin/eruby -C UTF-8 "$@"

For a test I've created a virtual host with authentication.
Under this setup I try to run the following short eRuby script:
  <%
  require 'cgi'
  $cgi = CGI.new
  $cgi.header("text/plain")
  puts "User: #{$cgi.remote_us...@#{$cgi.remote_host} [Authentication: 
#{$cgi.auth_type}]<br>"
  puts "Server software: #{$cgi.server_software}<br>"
  %>

The server software is shown correctly. However, the authentication details are 
all set to nil.
Furthermore, the CGI header is not respected and I get the output in HTML. It 
seems to me that either
the link between Ruby/CGI.rb and eRuby or the link between eRuby and Apache is 
not working as
tightly coupled as it should in this case.

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages eruby depends on:
ii  libc6                   2.7-18lenny2     GNU C Library: Shared libraries
ii  liberuby                1.0.5-2          Library for eruby
ii  libruby1.8              1.8.7.72-3lenny1 Libraries necessary to run Ruby 1.

eruby recommends no packages.

eruby suggests no packages.

-- no debconf information



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

Reply via email to