7 Replies Latest reply on Aug 15, 2007 12:06 PM by rmonge

    Adding a document w/attachment as Guest  in CS1.2 causes a NPE when viewing

      One of our users forgot to login so was set as guest.  Then he went to a space and added a document and attached a pdf.  He was able to submit it but got an exception when trying to view it.  The server is using the LDAP authentication.  It looks like it's trying to get some information about user guest and it can't.

       

      The document can't be deleted.  Here is the relevant stack info:

       

      2007.07.17 14:43:40 get(user) failed on instance of com.jivesoftware.community.proxy.DocumentProxy

       

      get(user) failed on instance of com.jivesoftware.community.proxy.DocumentProxy

      The problematic instruction:


      ==> if-else 


       

      Java backtrace for programmers:


      freemarker.template.TemplateModelException: get(user) failed on instance of com.jivesoftware.community.proxy.DocumentProxy

              at freemarker.ext.beans.BeanModel.get(BeanModel.java:223)

              at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)

              at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)

              at freemarker.core.BuiltIn$existsBI._getAsTemplateModel(BuiltIn.java:636)

              at freemarker.core.BuiltIn$existsBI.isTrue(BuiltIn.java:647)

              at freemarker.core.IfBlock.accept(IfBlock.java:80)

              at freemarker.core.Environment.visit(Environment.java:196)

              at freemarker.core.MixedContent.accept(MixedContent.java:92)