Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19317

Error when serializing current guest user reference with DocumentDocumentReferenceUserReferenceSerializer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 14.0-rc-1, 13.10.3
    • 12.10.10
    • User
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      When trying to serialize CurrentUserReference with DocumentDocumentReferenceUserReferenceSerializer if the user is guest then it throws:

      Caused by: java.lang.IllegalArgumentException: Passed user reference must be of type [org.xwiki.user.internal.document.DocumentUserReference]
      	at org.xwiki.user.internal.document.DocumentDocumentReferenceUserReferenceSerializer.serialize(DocumentDocumentReferenceUserReferenceSerializer.java:72)
      	at org.xwiki.user.internal.document.DocumentDocumentReferenceUserReferenceSerializer.serialize(DocumentDocumentReferenceUserReferenceSerializer.java:43)
      	at com.xpn.xwiki.doc.XWikiDocument.getAuthorReference(XWikiDocument.java:1883)
      	at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:616)
      
      

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: