[ http://jira.magnolia.info/browse/MAGNOLIA-1263?page=comments#action_13441
]
Philipp Bracher commented on MAGNOLIA-1263:
-------------------------------------------
Some more news about this issue. I run into the same situation and was able to
debug a bit. The situation occured after:
- copy a page (/ch/fr/news/halsschmerzen)
- rename the page (/ch/fr/news/maux-de-gorge)
--> all links pointing to the name before the renaming (halsschmerzen)
In the text the correct link tag was saved (maux-de-gorge)
<a
href="${link:{uuid:{311af940-...},repository:{website},workspace:{default},path:{/ch/fr/news/maux-de-gorge}}}">
the uuid is correct and the fall pack path too (maux-de-gorge)
Since for saving the user session is used, this is not a surprise.
Then I run the attached jsp to check if there were any pending changes: No
there weren't
Then I run a jsp to refresh the system session: Didn't help
Now I created the following code:
Content node =
MgnlContext.getSystemContext().getHierarchyManager(repository).getContentByUUID("311af940...");
out.println(node.getHandle());
node.getParent().refresh(false);
out.println(node.getHandle());
node =
MgnlContext.getHierarchyManager(repository).getContentByUUID("311af940...");
out.println(node.getHandle());
The result was:
/ch/fr/news/halsschmerzen
/ch/fr/news/halsschmerzen
/ch/fr/news/maux-de-gorge
So we can finally say that:
- System session is not updated
- refresh of the system session does not help
Conclusion
- Unless this jackrabbit bug is not fixed we can't do anything against it
- Perhaps it is not a good idea to keep the system session that long (for ever
in fact)
Hint:
- the renaming does a move on the workspace instead in the user session,
perhaps this conflicts with updating the system session.
> links are sometimes resolved wrongly after a move of a page (session is not
> updated)
> ------------------------------------------------------------------------------------
>
> Key: MAGNOLIA-1263
> URL: http://jira.magnolia.info/browse/MAGNOLIA-1263
> Project: Magnolia
> Issue Type: Bug
> Components: templating
> Affects Versions: 3.0.1
> Reporter: Philipp Bracher
> Assigned To: Philipp Bracher
> Priority: Critical
> Fix For: 3.0.x
>
> Attachments: jcr-session-status.jsp
>
>
> This dosn't happen regularely, but it can happen that after a move of a page
> the link is still pointing to the old place. This is obviousely a session
> updating problem and needs some investigation. In case this happens a restart
> of the container heals the system. In case you can't do this you can copy the
> page instead of moving (ugly but working)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------