Strange behavior with RubyAuthenHandler on ruby 1.8.1 + modruby 1.0.7

LHERBIER Lois <[email protected]>
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>

hello everybody,
first of all, thanks for the works done on modruby/eruby, great job :o)
Secondly I have my first big problem for 1 year of use of modruby.

We have an intranet developped with ruby 1.6.7 + modruby 1.0.3 + apache 
1.3.x and we want to use ruby 1.8.1 + modruby 1.0.7 + apache 1.3.x.
But we have a problem with RubyAuthenHandler on this new plateform. I 
have spent a long time identifying this "bug".

description of the problem :
------------------------------------
I have 3 files :
./libs/bar/foo.rb <-  Module Bar with class Foo
./libs/bar/auth.rb <-  Module Bar with Module Site to do the apache auth
./test.rbx <- the problem :o).

test.rbx ----
require 'bar/foo'
include Bar
cgi=CGI.new
puts cgi.header
puts Foo.name
-------------------

httpd.conf ---------
RubyAddPath '/home/test/bug/libs'
alias /test "/home/test/bug/"
<Location "/test">
  Options +ExecCGI +Indexes
  AuthType Basic
  AuthName "Auth"
  require valid-user
  RubyRequire 'bar/auth'
  RubyAuthenHandler Bar::Site
</Location>
--------------------------

1) with no auth, test.rbx display correctly
2) with auth with RubyAuthenHandler, test.rbx display correctly
3) with auth with RubyAuthenHandler AND using "require 'bar/foo'" in 
./libs/bar/auth.rb
=> modruby don't find Foo (constant is not defined).

Can you please help me to find the problem ?

Thanks for all.

   Loïs




H4sIAJxHbEAAA+2W0U6DMBSGdytPUafJthtsKYVkiRfTOGO88GJPUKDbSBjMUqKPbwtT2cyG
icIyPV8C7aFtCv37HxoUi6tey2CNz1hZanbLsk4wphQTxyO6HyHMwz3E2n4xQ5ErLhHqySxT
h/o1te9+3IkQaP2TOMjb3AQ1/YnPcL3c0Z/6vuto/R3mkI71T7I4P9Svqf3U9Q+4bGsPfF9/
V1vf1/pTh1HQvwu29J9nmS2DX5/DrIfnunv1J5h+6q8TPyYuNfp3soj/XP9VFhWJQDdcWihM
eJ6jaZZZCKFIzE3VTvlKmFjT1/F53wQijazyZq5jfwLwA7b8zwu1bCEBNPnfcb0P/3u++f+7
jBHwfxdI8VzEUqDBJv8PLKueEtAmmMWqygImLZjANntFpCoOuRJDObLOEJJCFTIdTtY8XIrx
+OlxVA7ROQJd7BloelTt9Ym2npj3OPYq/V2M/5XIlbb9a1tzNJ3/iM4N7/53fFqd/3zwfxd8
9X+chkkRVb6zwkV8fXv/YKfixVoXKkf6gb0UPBKyij+OCGV0OZtM7zbV8absg3sBAAAAAAAA
AAAAAAAAAAAAoGPeAFVRS74AKAAA
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.