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
- is related to
-
XWIKI-19125 Introduce a displayedAuthor in XWikiDocument
- Closed
- relates to
-
XWIKI-19318 Resolving null with DocumentDocumentReferenceUserReferenceResolver should return GuestUserReference
- Closed