[daisy] Stacktrace when creating a new document

Bruno Dumon bruno at outerthought.org
Fri Nov 10 07:54:16 CST 2006


Could you file a jira issue for this?

Basically I think the problem is in the evaluate method of the
DocumentIdIdentifier class:

public Object evaluate(Document document, Version version, EvaluationInfo evaluationInfo) {
  return queryContext.parseDocId(document.getId());
}

where it should check if document.getId() is not null.

This problem can occur if you have tests on document ID in your ACL.

On Thu, 2006-11-09 at 16:00 +0100, Andreas Deininger wrote:
> Hi,
> 
> one of my user had difficulties in creating a new document. While I
> didn't encounter this problem when acting in the administrator role, I
> could reproduce that with an account that has restricted rights
> (unfortunately I got that error only once, now I cannot reproduce it
> any more). Is that a bug in my ACL table or what is the reason for
> that?
> 
> TIA
> Andreas
> 
> Stacktrace:
> 
> Error
> Sitemap: error calling continuation
> 
> Received exception from repository server.
> Error evaluating ACL.
> documentId argument is not allowed to be null
> 
> Cocoon Stack Trace
> Message: Sitemap: error calling continuation
> context://daisy/sitemap.xmap - 952:39	<map:call>
> 
> Java Stack Trace
> Message: Sitemap: error calling continuation
> Class: org.apache.cocoon.ProcessingException
> Stacktrace:
> org.apache.cocoon.ProcessingException.throwLocated
> (ProcessingException.java:112)
<snipped stack trace/>

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list