[MGNLETK-122] Link conversion fails which results in error while opening dialog Created: 24/Jan/14  Updated: 04/Feb/14  Resolved: 04/Feb/14

Status: Closed
Project: Extended Templating Kit (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Beninupandian Assignee: Jaroslav Simak
Resolution: Duplicate Votes: 0
Labels: fckeditor, link, maintenance, quickwin, url
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MGNLETK-117 Error 500 Internal Server Error if Te... Closed
relation
is related to MGNLETK-54 NPE with broken link in FCKEditor Closed
is related to MGNLETK-123 deleting a node that is linked to in ... Closed
is related to MGNLETK-124 Deleted page linked in FckEditor caus... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

In a fckEditor when we have a link to a deleted document, it results in a error and due to this, we cant open the dialog.

Steps to reproduce:
1. In fckEditor, create a link to a document in dms.
2. Delete the document in dms
3. Open the dialog now.

We are getting the below exception while opening the dialog:

java.lang.NullPointerException
	info.magnolia.module.extendedtemplatingkit.ETKURI2RepositoryManager.getSite(ETKURI2RepositoryManager.java:103)
	info.magnolia.module.extendedtemplatingkit.ETKURI2RepositoryManager.getURI(ETKURI2RepositoryManager.java:77)
	info.magnolia.module.extendedtemplatingkit.ETKURI2RepositoryManager$$EnhancerByCGLIB$$a6b327aa.getURI(<generated>)
	info.magnolia.link.AbsolutePathTransformer.transform(AbsolutePathTransformer.java:76)
	info.magnolia.link.EditorLinkTransformer.transform(EditorLinkTransformer.java:56)

We have like 30 links in the fckEditor and if any one of the links refer to a deleted document, we are getting the error when we open the dialog box.



 Comments   
Comment by Milan Divilek [ 04/Feb/14 ]

During fixing this ticket please check also MAGNOLIA-5243, MAGNOLIA-5253 which seems are duplicate of this one.

There is also similar issue MGNLETK-117 which was already fixed for MGNLETK 2.0.16.

Generated at Mon Feb 12 01:48:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.