[MGNLPCK-43] Upload fails when node is missing "/" at start of path Created: 18/Aug/11  Updated: 09/Sep/11  Resolved: 09/Sep/11

Status: Closed
Project: Packager (closed)
Component/s: None
Affects Version/s: 4.0.5
Fix Version/s: 4.0.6

Type: Bug Priority: Minor
Reporter: Ondrej Chytil Assignee: Ondrej Chytil
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File stacktrace.txt    
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Steps to reproduce:

  • create package including node with path nodename (instead of /nodename which works)
  • backup - no issue here
  • try to upload this file - see stacktrace


 Comments   
Comment by Ralf Hirning [ 23/Aug/11 ]

The real error is that the backup includes these paths. But to avoid problems now the leading "/" will be inserted if missing

Comment by Jan Haderka [ 07/Sep/11 ]

Current solution seems bit convoluted. Also it seems like something that was done in thousands other places, so there should be utility method to do already, e.g. info.magnolia.cms.util.PathUtil.addLeadingSlash(String path)

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