AWM / Error 500 (internal server error) accessing object properties via REST API

Hi,

I have created a simple AWM application (App1) in XWiki. and I like to acess the object properties of the corresponding documents via REST API.

Using a URL like

https://<hostname>/rest/wikis/xwiki/spaces/App1/spaces/Doc1/pages/WebHome/objects/App1.Code.App1Class/0/properties

everything works fine and the properties are returned as XML.

As soon as the AWM app is updated and contains a field of the Group ‘Page’ (referencencing document content or title) an internal server error (code 500) is returned for the same URL as above. The following exception is thrown:

java.lang.NullPointerException: Cannot invoke "com.xpn.xwiki.objects.PropertyInterface.getObject()" because "property" is null

Has anyone experienced a similar behavour? IIs it a bug or am I missing something? I’d be happy for any suggestions.

Hi,

this is a bug, I can indeed reproduce it, could you create a ticket for it on https://jira.xwiki.org for it please?

Thanks

[EDIT: don’t bother, a ticket already exists for it: Loading...]

HI Simon,

thanks for your fast reply. Guess I will wait for a fix then.