Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-24413

Absolute image and space references to a renamed page are not updated in pages moved along with it

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Create a top-level page red.
      2. Create a child page green under red and upload an image example.png to it.
      3. Create a child page blue under green with the following content:
        [[image:red.green.WebHome@example.png]]
        
        [[green>>doc:red.green.WebHome]]
        
        [[green space>>space:red.green]]
        
      4. Rename red to pink, keeping "Update links" checked (default).
      5. View pink.green.blue.

      Actual result: the image is no longer displayed. Only the document link has been updated; the image reference and the space link still target the old location:

      [[image:red.green.WebHome@example.png]]
      
      [[green>>doc:pink.green.WebHome]]
      
      [[green space>>space:red.green]]
      

      Expected result: all three references are updated:

      [[image:pink.green.WebHome@example.png]]
      
      [[green>>doc:pink.green.WebHome]]
      
      [[green space>>space:pink.green]]
      

      Notes:

      • The problem happens when the page holding the reference is itself moved by the same rename (e.g. a child of the renamed page) and the reference is absolute. When the page holding the reference is not part of the move, the reference is updated correctly.
      • Page names don't matter: it reproduces with plain names as well as with names containing spaces, dashes or underscores.
      • It doesn't matter whether the image reference is typed (attach:red.green.WebHome@example.png) or not.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              ecojocariu Eleni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: