Hello,
We are running XWiki Debian 16.8.0 (xwiki-xjetty-mariadb) and currently testing it to migrate from Confluence.
We need to adjust pages content after data conversion.
There is no problem with getting a page via API, but putting changed content fails with the following log output
java.lang.NullPointerException: Cannot invoke "org.xwiki.rest.model.jaxb.Page.getContent()" because "restPage" is null
at org.xwiki.rest.internal.ModelFactory.toDocument(ModelFactory.java:193)
at org.xwiki.rest.internal.resources.pages.ModifiablePageResource.putPage(ModifiablePageResource.java:55)
at org.xwiki.rest.internal.resources.pages.PageResourceImpl.putPage(PageResourceImpl.java:70)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
Could it be an issue introduced in the recent versions? Because previously it was working, not sure about version, but it was about a year ago.