Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26954

Internal links in RichText fields fields that use removed locations could be automatically cleanned

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • QA tracked issues
    • 1.8.0
    • Operating System: Debian 8
      PHP Version: 5.6.14-0+deb8u1
      Database and version: Mysql 5.5.46-0+deb8u1
      Browser (and version): Firefox 50
      Env: Prod

    Description

      If we create an internal link in a richtext field, pointing to a location that is later removed, the internal link is still present when we edit the object again. It would be nice to have these "dead" links automatically cleaned

      Steps to reproduce

      -Create one article1
      -Create folder "Folder1" and in rich text field, create a link to "article1"
      -remove article1
      -View "Folder1" - ok, the link is not present
      -Edit "Folder1"
      -We can see that the link reference to deleted "article1" is still present. If we try to publish it again without doing anything else, we have the notification error "An error occurred while publishing the draft" and the response with

      {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":404,"errorMessage":"Not Found","errorDescription":"Could not find 'location' with identifier '54'"}}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: