Bug 1243693
| Summary: | Can't create new project containing spaces in name via REST API | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Abhijit humbe <abhumbe> | ||||||
| Component: | Business Central | Assignee: | Marco Rietveld <mrietvel> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | Lukáš Petrovický <lpetrovi> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 6.1.0 | CC: | abhumbe, mrietvel, smcgowan | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2015-08-25 07:33:23 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Abhijit humbe
2015-07-16 06:15:29 UTC
No spaces in the project id (which is the artifactId of the artifact) is an (apache) maven constraint, as shown in the stack trace above. As far as I can tell, there is no good solution to this problem. Abhijit, because of this, I'd like to close this. Would that be okay? Is there another solution you have in mind? Created attachment 1052980 [details]
Sourcefile
Created attachment 1052981 [details]
TestPatch
Attached patch files are not tested by Red Hat QA team.Its not supported ,recommended to use in production environment, it can be used in development environment. Abhijit, what happens in this situation: 1. Client creates project with name "MyProjName". 2. Client creates project with name "My Proj Name" What do you think should happen in this case? Marco, 1. Client creates project with name "MyProjName". Project created successfully with "Project Name" `MyProjName` and artifactId is set to "MyProjName". 2. Client creates project with name "My Proj Name" Project created successfully with "Project Name"--> `My Proj Name` and artifactId is set to "MyProjName" As per my understanding its correct behaviour. Please share thoughts on this. Abhijit, The behavior you describe above is not technically possible: artifactIds must be unique. In step 2, an error would be thrown because the "MyProjName" project already exists. The UI has different behavior than what you describe above. In the UI, the following happens: 1. Client creates project with name "MyProjName". -> Project created successfully. 2. Client creates project with name "My Proj Name" -> Project name is corrected to "MyProjName" and shown to the user. -> If the user then proceeds, an error is thrown that the project already exists. Unfortunately, the REST API is not interactive in the same way that the UI is. I'm not sure what a better behavior for the REST API would be for this. What do you think? Do you have any ideas for what the REST API should do in this case? Marco Rietveld <marco.rietveld> updated the status of jira JBPM-4703 to Resolved |