-
Bug
-
Resolution: Unresolved
-
Low (View bug fix roadmap)
-
None
-
8.20.4
-
None
-
8.2
-
1
-
Severity 3 - Minor
-
Summary
The REST API endpoint /rest/api/2/project/{projectIdOrKey}/properties is not finding projects by projectId, caused by a change on the regex for project ID, when it allows only numbers on the project key, the /project/<ProjectID>/properties API will not work with project ID, only with the project key.
Steps to reproduce
- Change the application property jira.projectkey.pattern to accept only numbers as a project key (ie: ([A-Z_0-9][A-Z_0-9]+)).
- Call the API https://<instance>/rest/api/2/project/<ProjectID>/properties using any project.
Expected Behaviour
The project key property values, even if it is empty.
Actual Results
{"errorMessages":["The specified Project does not exist in the system."],"errors":{}}
Notes
- When using the project key, the API is able to find the projects.
- The main concern with this API is that it is used by the add-on Tempo Timesheets to get data and it is not working due to this bug.
Workaround:
- Please make sure to revert the changes made to the jira.projectkey.pattern under Jira administration > System > General configuration and Advanced settings.
It should be ([A-Z][A-Z0-9]+)
- Make sure to not have alphanumeric project keys existing in your instance.
[JSWSERVER-21574] REST API endpoint /rest/api/2/project/{projectIdOrKey}/properties is not finding projects by projectId
Status | Original: Needs Triage [ 10030 ] | New: Gathering Impact [ 12072 ] |
Introduced in Version | New: 8.2 |
Description |
Original:
h5. Summary
The REST API endpoint /rest/api/2/project/\{projectIdOrKey}/properties is not finding projects by projectId, caused by a change on the regex for project ID, when it allows only numbers on the project key, the /project/<ProjectID>/properties API will not work with project ID, only with the project key. h5. Steps to reproduce # Change the application property {{jira.projectkey.pattern}} to accept only numbers as a project key (ie: ([A-Z_0-9][A-Z_0-9]+)). # Call the API https://<instance>/rest/api/2/project/<ProjectID>/properties using any project. h5. Expected Behaviour The project key property values, even if it is empty. h5. Actual Results {code:java} {"errorMessages":["The specified Project does not exist in the system."],"errors":{}}{code} h5. Notes - When using the project key, the API is able to find the projects. - The main concern with this API is that it is used by the add-on Tempo Timesheets to get data and it is not working due to this bug. |
New:
h5. Summary
The REST API endpoint /rest/api/2/project/\{projectIdOrKey}/properties is not finding projects by projectId, caused by a change on the regex for project ID, when it allows only numbers on the project key, the /project/<ProjectID>/properties API will not work with project ID, only with the project key. h5. Steps to reproduce # Change the application property {{jira.projectkey.pattern}} to accept only numbers as a project key (ie: ([A-Z_0-9][A-Z_0-9]+)). # Call the API https://<instance>/rest/api/2/project/<ProjectID>/properties using any project. h5. Expected Behaviour The project key property values, even if it is empty. h5. Actual Results {code:java} {"errorMessages":["The specified Project does not exist in the system."],"errors":{}}{code} h5. Notes - When using the project key, the API is able to find the projects. - The main concern with this API is that it is used by the add-on Tempo Timesheets to get data and it is not working due to this bug. Workaround: - Please make sure to revert the changes made to the jira.projectkey.pattern under Jira administration > System > General configuration and Advanced settings. It should be ([A-Z][A-Z0-9]+) - Make sure to not have alphanumeric project keys existing in your instance. |
Security | Original: Reporter and Atlassian Staff [ 10751 ] |
Labels | Original: support-escalation |
Assignee | Original: Zbyszko Papierski [ zpapierski ] |
Reporter | Original: Rodrigo B. [ rbecker ] | New: Devisree Gedda [ dgedda@atlassian.com ] |
Component/s | Original: Ecosystem [ 53294 ] | |
Component/s | New: REST API [ 41893 ] | |
Key | Original: JRACLOUD-80238 | New: JSWSERVER-21574 |
Symptom Severity | Original: Severity 2 - Major [ 14431 ] | New: Severity 3 - Minor [ 15832 ] |
Affects Version/s | New: 8.20.4 [ 98191 ] | |
Project | Original: Jira Cloud [ 18514 ] | New: Jira Software Server and Data Center [ 12200 ] |
Link | New: This issue is cloned from JRACLOUD-67363 [ JRACLOUD-67363 ] |