[MAGNOLIA-6305] Reordering pages uses wrong path for template availibility check. Created: 17/Jul/15  Updated: 21/Jul/15  Resolved: 21/Jul/15

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.5.25
Fix Version/s: 4.5.26

Type: Bug Priority: Neutral
Reporter: Trang Truong Assignee: Trang Truong
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
supersession
supersedes MGNLSTK-1476 Reordering pages uses wrong path for ... Closed
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:

 Description   

Related to https://jira.magnolia-cms.com/browse/MGNLSTK-1476.

  • The solution is fixed by checking pasteType to determine the targetPath is subPage or parentPage.


 Comments   
Comment by Federico Grilli [ 20/Jul/15 ]

Please, remove the eclipse specific //$NON-NLS-1$ comment at WebsiteTreeHandler.isCopyOrMoveAvailable(..)

Comment by Trang Truong [ 20/Jul/15 ]

Removed the eclipse special characters

Comment by Federico Grilli [ 20/Jul/15 ]

Apparently this causes an integration test to fail https://jenkins.magnolia-cms.com/job/magnolia-bundle_4.5-branch/987/console See below, it looks as if the path were an empty string.

 
[INFO] --- gmaven-plugin:1.5:execute (activation-test) @ magnolia-integration-tests ---
[INFO] [talledLocalContainer] 2015-07-20 15:00:07,862 ERROR magnolia.module.admininterface.AdminTreeMVCHandler: can't copy
[INFO] [talledLocalContainer] javax.jcr.RepositoryException: Invalid path:
...
[INFO] [talledLocalContainer] 	at  info.magnolia.module.admininterface.trees.WebsiteTreeHandler.isCopyOrMoveAvailable(WebsiteTreeHandler.java:219)

Generated at Mon Feb 12 04:13:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.