[NPMCLI-23] Referencing with names with dash "-" doesn't work Created: 10/Jul/16  Updated: 22/Aug/16  Resolved: 19/Jul/16

Status: Closed
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: 0.0.1

Type: Bug Priority: Neutral
Reporter: Tomáš Gregovský Assignee: Federico Grilli
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: 0d
Time Spent: 1d 4.5h
Original Estimate: 1d

Issue Links:
Git Code Review
git code review opened NPMCLI-32 Provide better error handling when fi... 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:
Sprint: Basel 53
Story Points: 3

 Description   

$ mgnl create-component video-list -a pages/video-list
Expected a value in the form e.g. [pages/]myHome@someArea but was pages/video-list
INFO: No path option provided, component will be created in the current folder.
Error: video-list doesn't match definitionId pattern



 Comments   
Comment by Christoph Meier [ 13/Jul/16 ]

I confirm the issue - and i have found another one related to dash in component name.

create-component fails if the name of the new component contains a dash

create-page works if the name of the new page template contains a dash ... but:

add-availability fails, if the name of the target page contains a dash:

  • mgnl add-availability foobar:components/dummyComp super-page@main => fails
  • mgnl add-availability foobar:components/dummyComp myPage@main => works

So, tgregovsky, i wonder whether i should create a new ticket for the add-availability command ... but probably these issues are all related.

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