[LIVECOPY-296] Relink doesn't work for links outside of website workspace Created: 18/Nov/21  Updated: 16/Dec/21  Resolved: 08/Dec/21

Status: Closed
Project: Live Copy
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.7

Type: Bug Priority: Major
Reporter: Claudius Witte Assignee: Thuy To
Resolution: Fixed Votes: 0
Labels: maintenance, quickwin
Remaining Estimate: Not Specified
Time Spent: 0.5d
Original Estimate: Not Specified

Attachments: Text File stacktrace1.txt     Text File stacktrace2.txt    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Global Maintenance 3
Story Points: 1

 Description   

Timebox 1SP: Verify if fixed in 3.2.7.

Environment
Magnolia: 6.2.12
Livecopy: 3.2.6

Steps to reproduce

  • Create a component with an attribute linkfield to another workspace in the dialog
    • Examples:
    • form:
        properties:
          - name: downloadCategory
            required: true
            $type: linkField
            datasource:
              $type: jcrDatasource
              workspace: constants
      
    • name: imageLink
      $type: damLinkField
      i18n: true
      showOptions: true
      preview: true
      
  • Create a page add this component with a valid link
  • Create a live copy for this page
  • Click 'Relink all pages to live copy pages'

Expected Result
Links outside of website workspace shouldn't change when relinking the page.

Actual Result
Relinking fails.
stacktrace1.txt
stacktrace2.txt

Probably the problem is that the function LiveCopyUtils#getNodeByIdentifier searches only in the workspace website.


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