Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3274

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 6.1.0
    • Business Central
    • 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:

        1. Sourcefile.jar
          22 kB
        2. TestPatch.jar
          43 kB

            marco.rietveld Marco Rietveld (Inactive)
            rhn-support-abhumbe Abhijit Humbe
            Lukáš Petrovický Lukáš Petrovický (Inactive)
            Lukáš Petrovický Lukáš Petrovický (Inactive)
            Abhijit Humbe, Marco Rietveld (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: