Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8936

Link to deleted Page leads to Template-Exception


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.3.0, 6.2.35
    • 6.2.33
    • None
    • Yes
    • Nucleus 37
    • 2
    • Yes

      Steps to reproduce

      1. Site-App
        1. select "travel"-Node
        2. click "Duplicate Item"
        3. update "/travel0/mappings/website@handlePrefix" to "/travel/about"
      2. Pages-App
        1. select "/travel/about/careers"
          1. click "Add page"
          2. Pagename "test1", Template "Basic Template"
        2. select "/travel/about/careers"
          1. click "Add page"
          2. Pagename "test2", Template "Basic Template"
        3. Edit Page "/travel/about/careers/test1"
          1. Add Component "Text and Image" in Main
          2. Edit the created Component
          3. Insert in the RichTextField the Text Link
          4. Click on Button "Link to Magnolia Page"
          5. Select "/travel/about/careers/test2"
          6. Close the page
        4. select "/travel/about/careers/test2"
        5. click "Delete Page" => "Publish Deletion"
      3. Task-App
        1. Assign Task
        2. Accept an publish Deletion
      4. reopen Pages-App
        1. check if test2 is deleted
        2. reopen check1
        3. change language to "German"
        4. => EXCEPTION

      Expected results

      Tho the page doesn't exist, no error is thrown or, at least, the message "The referenced content does not exist" is displayed.

      Actual results

      Exception is thrown



      Development notes

      Similar behavior for Link component. When you create a link component to a page and then, delete the page, the message "The referenced content does not exist" is shown for English but if you switch to German, the exception is thrown. It is weird that if at this point, you switch back to English, the Framework exception is thrown also for English. Probably, because the referenced page is still within the Link field:

      If you move to German language, Magnolia copies the dead reference to the German field:

        Acceptance criteria

          1. english-ref.png
            104 kB
          2. freemarker-error.png
            438 kB
          3. german-ref.png
            104 kB
          There are no Sub-Tasks for this issue.

              jsarf Jaromir Sarf
              ccantalapiedra Carlos Cantalapiedra
              0 Vote for this issue
              2 Start watching this issue

                Work Started:

                  Bug DoR
                  Task DoD

                    Original Estimate - Not Specified
                    Not Specified
                    Remaining Estimate - Not Specified
                    Not Specified
                    Time Spent - 3h