Hello *

I apologize for this flooding, indeed, but maybe it is better I report bugs as soon as I catch them.

I had a small XSP document that worked like charm with AxKit 1.5 and vanilla 1.6.1. With the 1.6.1 CVS version of yesterday evening I am getting a strange error: AxKit seems to look for a file in a directory that doesn't exist and where it shouldn't really look for any reason. The parsing of the file fails, and I get an internal server error.

The XSP source is:

<?xml version="1.0"?>
<xsp:page
        xmlns:xsp="http://apache.org/xsp/core/v1";
        xmlns:util="http://apache.org/xsp/util/v1";
        indent-result="yes"
        language="Perl">

  <xsp:structure>
    <xsp:logic>
      <![CDATA[
      use strict ;
      use IO::File ;
      use Apache::Constants ':common' ;

      ### CONFIGURATION ###############################################
      my $idfile = 'count.id' ;
      my $docroot = $r->document_root() ;
      #################################################################
      ]]>
    </xsp:logic>
  </xsp:structure>

  <msgqueue>
    <xsp:logic>

my $id ;
{
my $idh = IO::File->new() ;
$idh->open($idfile,'r') or
throw Apache::AxKit::Exception::Retval(return_code => SERVER_ERROR);


      $id = $idh->getline() ;
      chomp $id ;
      $idh->close() ;
    }

    <![CDATA[
    for (my $i = 0 ; $i <= 19 ; $i++) {
      my $file = "$docroot/id".($id-$i).".xml" ;
      next unless -e $file and -f _ ;
    ]]>
    <util:include-file>
      <util:name><xsp:expr>$file</xsp:expr></util:name>
    </util:include-file>
    }
    </xsp:logic>
  </msgqueue>
</xsp:page>

$docroot gets correctly set to /var/www/messygee

Setting AxDebugLevel to 10, I saw where it seems to fail:

[AxKit] XSP Compilation finished
[AxKit] Turning off cache!
[AxKit] Cache: key = 682e0cfb0bb377411efcd40a3b965d7e
[AxKit] LibXSLT match_uri: /var/www/messygee/id5882.xml
[AxKit] LibXSLT open_content_uri: /var/www/messygee/id5882.xml
[AxKit] Content Provider Override: Apache::AxKit::Provider::File
[AxKit] decoding from UTF-8
[AxKit] [req] File Provider given $r: /var/www/messygee/var
[AxKit] encoding to UTF-8
[AxKit] Caught an exception
[AxKit] [UnCaught] File '/var/www/messygee/var' does not exist or is not readable


As you can see, it's trying to look into /var/www/messygee/var, which doesn't exist and that I don't set in any place.

Any clues?

Ciao
--M

--
Marco Marongiu                         Email: [EMAIL PROTECTED]
CRS4 Research Center                   Phone: +39 070 9250 336
NCS Division                           Fax:   +39 070 9250 216
NSM Group                              WWW: http://bugs.unica.it:4444/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to