[MGNLETK-54] NPE with broken link in FCKEditor Created: 16/Feb/11  Updated: 26/Jan/14  Resolved: 11/Apr/11

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

Type: Bug Priority: Major
Reporter: Vincent Gombert Assignee: Ondrej Chytil
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
duplicate
is duplicated by MAGNOLIA-3685 Removing documents from DMS without r... Closed
relation
is related to MGNLETK-122 Link conversion fails which results i... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Broken links in FCKEditor lead to NPE with site resolution for link transformation.
This is very disturbing for contributors because the rendered paragraph is not displayed at all.

Here is some debugging trace :

  • LinkUtil:156 --> use LinkFactory to create the link
  • LinkFactory:184 --> catch LinkException (uuid not found)
  • LinkFactory:187 --> catch PathNotFoucndException
  • LinkFactory:191 --> create new Link with uuid
  • LinkUtil:157 --> use transformer to transform the link
  • CompoundLinkTransformer:44 --> get assigned site with link.getNode(), which is null
  • ETKSiteManager:48 --> NPE with content.getHandle()

CompoundLinkTransformer must handle this NPE.
It might just return the link uuid if node is null.



 Comments   
Comment by Magnolia International [ 22/Mar/11 ]

Thanks for the report Vincent! Trying to push this into the next release.

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