-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
6.1.0
-
None
Description of problem:
Not able create new project containing spaces in 'name' via REST API. It results in an invalid artifactID being generated in the pom.xml file.
~~~~~
ERROR [org.kie.workbench.common.services.backend.builder.BuildServiceImpl] (http-localhost.localdomain/127.0.0.1:8080-3) org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] 'artifactId' with value 'My New Project' does not match a valid id pattern. @ line 6, column 15
: java.lang.RuntimeException: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] 'artifactId' with value 'My New Project' does not match a valid id pattern. @ line 6, column
~~~~~
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Start BPMS 6.1 server instance.
2. Use following command to create new project:
curl -i -X POST -H "Content-Type:application/json" http://admin:admin12#@localhost:8080/business-central/rest/repositories/repository1/projects/ --data '
{"name":"My New Project","description":"My description of the project.","groupId":"org.jboss.test","version":"1.0.0"}'
Actual results:
project created with invalid artifactId.
Expected results:
Project should be created with valid artifactId.
Additional info: