Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4703

Can't create new project containing spaces in name via REST API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • jBPM 6.2.0.Final
    • Remote Services
    • None
    • NEW
    • NEW
    • Hide

      Try to create project using following command:

      curl -i -X POST -H "Content-Type:application/json" http://admin:admin@localhost:8080/jbpm-console/rest/repositories/jbpm-playground/projects/ --data '

      {"name":"My New Project","description":"My description of the project.","groupId":"org.jboss.test","version":"1.0.0"}

      '

      Show
      Try to create project using following command: curl -i -X POST -H "Content-Type:application/json" http://admin:admin@localhost:8080/jbpm-console/rest/repositories/jbpm-playground/projects/ --data ' {"name":"My New Project","description":"My description of the project.","groupId":"org.jboss.test","version":"1.0.0"} '

      Not able create new project containing white spaces in 'name' via REST API. pom.xml is created with invalid artifactID.

      Exception: 
      ERROR org.kie.workbench.common.services.backend.builder.BuildServiceImpl] (default task-1) 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 15
      

            marco.rietveld Marco Rietveld (Inactive)
            ABHIJIT_HUMBE Abhijit Humbe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: