Re: Sitemap Error

Michael Wechner <[email protected]>
Newsgroups gmane.comp.cms.wyona.user
Message-ID <[email protected]>
It seems like a problem of the access controller:

In the case of "NWT" the XML is pulled together via
XInclude, which means the server is requesting stuff
from itself. The access-policies are probably not set
"correctly", such that it denies those XInclude requests.

The problem now is that the "Authorizer" (sitemap.xmap)
is redirecting the "requester" to the login screen, which is
HTML!!! This means the XInclude Processor will have a problem,
because of the not well-formed HTML-login-screen it receives as
an answer.

The question is how to differentiate between a "human being request"
and a "machine request".
As a workaround I thought that you can specify within the QUERYSTRING
of the request how the login-screen (or permission denied screen)
should be returned: XML (machine readable) or HTML (human readable),
for instance

  GET   ..../some_document?wyona:login-mime-type=xml

(default would be: GET ..../some_dodcument?login-mime-type=html

This way you still wouldn't receive the document (e.g. XML) you
actually want, because of the policy you set, but the system would
at least tell you the reason: <exception><access-denied 
href="document.xml"/></exception>

Any other ideas how to solve this problem?

All the best

Michael


[email protected] wrote:

> Dear group
> 
> I've installed wyona within following environment:
> - Linux
> - j2sdk-1_4_0_01
> - Java Web Services Developer Pack (jwsdp-1_0-ea2 == Tomcat 4.0.3)
> 
> There is no problem to start catalina. But if I
> follow for example the link 'New Wyona Times' (wyona main page) 
> an error occured as reported in the logs/error.log:
> 
> 
> ERROR   (2002-06-26) 12:31.39:295[sitemap](/cocoon/nwt/policies/policies/
> ...many....
> /policies/policies/policies/policies/policies/policies/policies/policies/policies/policies/index.html.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml.acml)
> HttpProcessor[8080][74]/PMLAuthorizerAction: .authorize(): java.io.IOException:
> Error writing to server         
> 
> .......
> 
> ERROR   (2002-06-26)
> 12:06.08:337[sitemap](/cocoon/nwt/policies/policies/policies/policies/policies/policies/policies/index.html.acml.acml.acml.acml.acml.acml.acml)
> HttpProcessor[8080][7]/PMLAuthorizerAction: .authorize():
> org.xml.sax.SAXParseException: The element type "META" must be terminated by the
> matching end-tag "</META>".
> 
> ERROR   (2002-06-26)
> 12:06.08:355[sitemap](/cocoon/nwt/policies/policies/policies/policies/policies/policies/index.html.acml.acml.acml.acml.acml.acml)
> HttpProcessor[8080][6]/PMLAuthorizerAction: .authorize():
> org.xml.sax.SAXParseException: The element type "META" must be terminated by the
> matching end-tag "</META>".
> 
> ERROR   (2002-06-26)
> 12:06.08:375[sitemap](/cocoon/nwt/policies/policies/policies/policies/policies/index.html.acml.acml.acml.acml.acml)
> HttpProcessor[8080][5]/PMLAuthorizerAction: .authorize():
> org.xml.sax.SAXParseException: The element type "META" must be terminated by the
> matching end-tag "</META>".
> 
> ERROR   (2002-06-26)
> 12:06.08:389[sitemap](/cocoon/nwt/policies/policies/policies/policies/index.html.acml.acml.acml.acml)
> HttpProcessor[8080][0]/PMLAuthorizerAction: .authorize():
> org.xml.sax.SAXParseException: The element type "META" must be terminated by the
> matching end-tag "</META>".
> 
> ERROR   (2002-06-26)
> 12:06.08:404[sitemap](/cocoon/nwt/policies/policies/policies/index.html.acml.acml.acml)
> HttpProcessor[8080][1]/PMLAuthorizerAction: .authorize():
> org.xml.sax.SAXParseException: The element type "META" must be terminated by the
> matching end-tag "</META>".
> 
> ERROR   (2002-06-26)
> 12:06.08:442[sitemap](/cocoon/nwt/policies/policies/index.html.acml.acml)
> HttpProcessor[8080][3]/PMLAuthorizerAction: .authorize():
> org.xml.sax.SAXParseException: The element type "META" must be terminated by the
> matching end-tag "</META>".
> 
> ERROR   (2002-06-26) 12:06.08:456[sitemap](/cocoon/nwt/policies/index.html.acml)
> HttpProcessor[8080][2]/PMLAuthorizerAction: .authorize():
> org.xml.sax.SAXParseException: The element type "META" must be terminated by the
> matching end-tag "</META>".
> 
> ERROR   (2002-06-26) 12:06.08:473[sitemap](/cocoon/nwt/index.html)
> HttpProcessor[8080][4]/PMLAuthorizerAction: .authorize():
> org.xml.sax.SAXParseException: The element type "META" must be terminated by the
> matching end-tag "</META>".                                     
> 
> ------------------------------------------------
> 
> What is the problem? Anybody an idea?
> Jürgen
> 
> 
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 
> 
> 
> _______________________________________________
> WyonaCMS-users mailing list
> [email protected]
> http://mail.wyona.org/cgi-bin/mailman/listinfo/wyonacms-users
>
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.