Hi.
After (apparently) successfully renaming a page, trying to access it gives me a blank page.
I’m using XWiki 8.4.5 with Mysql database.
I’m not seeing any errors in the logs. In the database the page looks ok, the page appears in the index and all the backlinks where updated correctly.
The problem my be related with the new name having “/” in it. I tryed to follow the instructions in this post from 2009, which suggest using a velocity macro.
The problem I’m having is that after retrieving the document from the database, it is marked as “new” (ie, isNew() == true) and the rename has no effect …
The code I’m using is the following:
#set($oldName = 'Main.Page A.Page B.Old "page name with / and quotes" in it')
#set($newName = 'Main.Page A.Page B.New "page naem without slash" in it')
## Wiki links
## this link is rendered as an existing page
Old: [[$oldName]]
## this link is rendered as a new page
New: [[$newName]]
## Loads page from database
#set($renamedDoc = $xwiki.getDocument($oldName))
## This prints `true`
$renamedDoc.isNew()
## Try rename
$renamedDoc.rename($newName)
## Try to generate wiki links again. Nothing has changed ...
## this link is rendered as an existing page
Old: [[$oldName]]
## this link is rendered as a new page
New: [[$newName]]
The page name also has quotes in it. Don’t know if this has any incidence in the problem.
I think that maybe the same problem that is making the document be marked as “new” is what is causing the blank page and also not allowing the rename…
I’m not even able to delete the page using “delete” in the url. It also gives a blank page.
What can I do?