I manage to create a draft and publish it, but I want to publish the page right away without creating a draft and I get an error : Attempted to create a page that needs to go to the editor.
I wrote it based on this code, but the following error occurred when collaborative editing was opened. It is normal to close collaborative editing.
Object of class [com.atlassian.confluence.pages.Page] with identifier [1638420]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.atlassian.confluence.pages.Page#1638420]
I wrote it based on this code, but the following error occurred when collaborative editing was opened. It is normal to close collaborative editing.
Object of class [com.atlassian.confluence.pages.Page] with identifier [1638418]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.atlassian.confluence.pages.Page#1638418]