-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
When using the endpoint: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-admin-key/#api-admin-key-post we can see that isn't mandatory to pass the durationInMinutes, and a standard value of 10 minutes is set if this is empty.
However, a 404 error is issued when not passing this body parameter.
Steps to Reproduce
- Create a POST request against the https://\
{your-domain}
/wiki/api/v2/admin-key endpoint without the durationInMinutes body parameter.
Expected Results
You should receive a successfull message of the admin key creation.
Actual Results
The below exception is thrown in the backend logs:
java.lang.NullPointerException: Cannot invoke ".....durationInMinutes()" because "request" is null
Workaround
Insert the body parameter in the POST request. Something like:
{"durationInMinutes":60}