[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#177900: Still present



Hi Kjetil,
	i might be wrong but i still miss a login.xsp in order to perform
the test. Here is what i figure out until now:

<Location /axkit2/logtest.xsp>
    AuthType Apache::AxKit::Plugin::Session
    AuthName AxKitSession
    PerlSetVar AxKitSessionLoginScript /axkit2/login.xsp
    PerlAuthenHandler Apache::AxKit::Plugin::Session->authenticate
    PerlAuthzHandler Apache::AxKit::Plugin::Session->authorize
    require valid-user
</Location>

The only difference in here is "/axkit2/" that i use in my setup.

now accessing the url ( http://localhost/axkit2/logtest.xsp ) i get this
error on the browser:

Forbidden
You don't have permission to access /axkit2/logtest.xsp on this server.
Additionally, a 404 Not Found... etc .etc.

and in apache-perl logs:

[Thu Oct 30 11:06:47 2003] [warn] [client 127.0.0.1] [AxKit] [req] File
Provider given $r: /var/www/axkit2/login.xsp
*some stuff here*
[Thu Oct 30 11:06:47 2003] [warn] [client 127.0.0.1] [AxKit] file
'/var/www/axkit2/login.xsp' does not exist or is not readable
*some more stuff here*
[Thu Oct 30 11:06:47 2003] [error] [client 127.0.0.1] File does not exist:
/var/www/axkit2/login.xsp

Now of course login.xsp doesn't exist since it's not there.

The next (logical to me) step was to modify the config:

PerlSetVar AxKitSessionLoginScript /axkit2/login.xsp
changed to:
PerlSetVar AxKitSessionLoginScript /axkit2/logtest.xsp

and at this point i get some interesting messages in error.log together
with an Internal Server Error on the browser:

****************

[Thu Oct 30 11:17:01 2003] [notice] Apache/1.3.28 (Debian GNU/Linux)
AxKit/1.62 mod_perl/1.28 configured -- resuming normal operations
[Thu Oct 30 11:17:01 2003] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Thu Oct 30 11:17:07 2003] [error] =======
authenticate(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x84403d0))
[Thu Oct 30 11:17:07 2003] [error] =======
recognize_user(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x84403d0))
[Thu Oct 30 11:17:07 2003] [error] ======= key()
[Thu Oct 30 11:17:07 2003] [error] - session referer:
http://localhost/axkit2/
[Thu Oct 30 11:17:07 2003] [error] session provided  = ''
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] fast handler
called for /axkit2/logtest.xsp
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] Running
plugin: Apache::AxKit::Plugin::Session
[Thu Oct 30 11:17:07 2003] [error] =======
authenticate(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x83a6278))
[Thu Oct 30 11:17:07 2003] [error] -------
authorize(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x83a6278))
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] Content
Provider Override: Apache::AxKit::Provider::File
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] decoding from
UTF-8
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] [req] File
Provider given $r: /var/www/axkit2/logtest.xsp
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] checking if
we process this resource
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] media:
screen, preferred style: #default
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] Cache: key =
4bc2a81de0e33ec098cb51a359b517f2
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] getting
styles and external entities from the XML
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] styles not
cached - calling $provider->get_styles()
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] using XS
get_styles (libxml2)
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] encoding to
UTF-8
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] calling
xs_get_styles_fh()
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] calling
xs_get_styles_str()
[Thu Oct 30 11:17:07 2003] [warn] [client 127.0.0.1] [AxKit] Caught an
exception
[Thu Oct 30 11:17:07 2003] [error] [client 127.0.0.1] [AxKit] [Error]
xmlParse returned error: 5, attributes construct error
error parsing attribute name
attributes construct error
xmlParseStartTag: problem parsing attributes
Couldn't find end of Start Tag xsp:page line 3
Extra content at the end of the document

[Thu Oct 30 11:17:07 2003] [error] [client 127.0.0.1] [AxKit] From:
/usr/lib/perl5/Apache/AxKit/Exception.pm : 9
[Thu Oct 30 11:17:07 2003] [error] [client 127.0.0.1] [AxKit] [Backtrace]
xmlParse returned error: 5, attributes construct error
error parsing attribute name
attributes construct error
xmlParseStartTag: problem parsing attributes
Couldn't find end of Start Tag xsp:page line 3
Extra content at the end of the document

Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error','-text','xmlParse
returned error: 5, attributes construct error\x{a}error ...') called at
/usr/lib/perl5/AxKit.pm line 1015
        AxKit::prep_exception('xmlParse returned error: 5, attributes
construct error\x{a}error ...') called at /usr/lib/perl5/AxKit.pm line 173
        AxKit::__ANON__('xmlParse returned error: 5, attributes construct
error\x{a}error ...') called at /usr/lib/perl5/Apache/AxKit/Provider.pm
line 279

Apache::AxKit::Provider::xs_get_styles('Apache::AxKit::Provider::File=HASH(0x8447d2c)','screen','undef')
called at /usr/lib/perl5/Apache/AxKit/Provider.pm line 176

Apache::AxKit::Provider::get_styles('Apache::AxKit::Provider::File=HASH(0x8447d2c)','screen','#default')
called at /usr/lib/perl5/AxKit.pm line 851

AxKit::get_styles('screen','#default','Apache::AxKit::Cache=HASH(0x8450990)','Apache::AxKit::Provider::File=HASH(0x8447d2c)')
called at /usr/lib/perl5/AxKit.pm line 408

AxKit::run_axkit_engine('Apache=SCALAR(0x83a6278)','Apache::AxKit::Provider::File=HASH(0x8447d2c)')
called at /usr/lib/perl5/AxKit.pm line 300
        eval {...} called at /usr/lib/perl5/AxKit.pm line 291

AxKit::main_handler('Apache=SCALAR(0x83a6278)','Apache::AxKit::Provider::File=HASH(0x8447d2c)')
called at /usr/lib/perl5/AxKit.pm line 204
        AxKit::fast_handler('Apache=SCALAR(0x83a6278)') called at
/dev/null line 0
        eval {...} called at /dev/null line 0

************************************

And the real interesting part in the log is this one:

[Thu Oct 30 11:17:07 2003] [error] [client 127.0.0.1] [AxKit] [Backtrace]
xmlParse returned error: 5, attributes construct error
error parsing attribute name
attributes construct error
xmlParseStartTag: problem parsing attributes
Couldn't find end of Start Tag xsp:page line 3
Extra content at the end of the document

It looks to me like an error or in logtest.xsp or in the config
somewhere.. but of course i might be totally wrong and i would be glad if
you can point me in the right direction

Fabio

On Mon, 27 Oct 2003, Kjetil Kjernsmo wrote:

> I've attached my axkit.conf and the logtest.xsp file. I think that's the
> final pieces needed to reproduce the problem. If not, please let me
> know!



>
> Just drop logtest.xsp in /var/www, Include axkit.conf, restart and send
> a HTTP request for http://localhost/logtest.xsp. That does it for me.
>
> Best,
>
> Kjetil
>

-- 
Our mission: make IPv6 the default IP protocol
"We are on a mission from God" - Elwood Blues

http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp00004.html



Reply to: