Uploaded image for project: 'Extended Templating Kit (closed)'
  1. Extended Templating Kit (closed)
  2. MGNLETK-122

Link conversion fails which results in error while opening dialog

XMLWordPrintable

      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.

        Acceptance criteria

              jsimak Jaroslav Simak
              beninupandian Beninupandian
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: