[MKDoc-dev] [1.6] Redirect bugs?

Chris Croome chris at webarchitects.co.uk
Thu Apr 6 10:56:23 BST 2006


Hi

On Wed 05-Apr-2006 at 05:52:23PM +0100, Chris Croome wrote:
> 
> This could be an issue caused by using Apache 1.3.34 

Doesn't appear to be -- I have switched to 1.3.33 and there is still
this odd behavior, for example:

  lynx -head -dump "http://www.fc5.webarchitects.co.uk:8080//photo.jpg,html"
  HTTP/1.1 302 Moved
  Date: Thu, 06 Apr 2006 10:23:18 GMT
  Server: Apache/1.3.33 (Unix) mod_perl/1.29
  Location: http://www.fc5.webarchitects.co.uk:8080/photo.jpg%2Chtml
  Connection: close
  Content-Type: text/plain

The server is redirecting to a page with an escaped "," -- this isn't a
client issue.

But note the // in the request address above, if the request is made
without out it then the "," isn't escaped:

   lynx -head -dump "http://www.fc5.webarchitects.co.uk:8080/photo.jpg,html"
   HTTP/1.1 200 OK
   Date: Thu, 06 Apr 2006 10:26:14 GMT
   Server: Apache/1.3.33 (Unix) mod_perl/1.29
   Connection: close
   Content-Type: text/html; charset=UTF-8

So this appears to be a template bug, but the templates haven't changed
-- this is the code that generates the link on the front page of the
site:

  <a href="#" title="Photo Title"
     petal:attributes="href self/uri_html; title self/title" >

But this is the generated HTML:

  <a href="http://www.fc5.webarchitects.co.uk:8080//photo.jpg,html"
     title="Photo">
                  
So perhaps the way that self/uri_html is generated has changed?

Another odd thing is the link to the home page on the /photo.jpg,html
page -- this is the generated HTML:

  <a hreflang="en" xml:lang="en" dir="ltr"
     href="http://www.fc5.webarchitects.co.uk:8080/photo.jpg%2Chtml/" 
     lang="en">Root document</a>

Which is clearly wrong. This code is generated from the same breadcrumb
trail MKDoc template as is used everwhere... and there is the same
problem on the sitemap page -- this is the breadcrumb trail link to the
front page:

  <a hreflang="en" xml:lang="en" dir="ltr"
     href="http://www.fc5.webarchitects.co.uk:8080/.sitemap.html/"
     lang="en">Root document</a>

What is odd is that I'm only getting this with a brand new install on a
new FC5 server -- old installs don't seem to have this problem. I have
looked at the environment settings and there doesn't seem to be anything
wrong but the env or perhaps one of the perl modules that MKDoc depends
on might be causing this problem...?

Chris

-- 
Chris Croome                               <chris at webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   


More information about the MKDoc-dev mailing list