Failed to post space property with 404

Hi, community,

Our app fails to create space property on some sites with a 404 error when calling the API by the app privilege.

The space exists. (The app calls get space API before the request. And it works.) And, I think space permission is set correctly.

I can’t find why it happens because the condition doesn’t match the ones in the document.

Some customers reported the problem, while others can work.
Retrying the same requests after a while doesn’t work.

Please help!

Request

"method": "post",
"url": "/rest/api/space/KEY/property",
"body": {
  "key": "com.ricksoft-inc.plugins.space-sync-for-confluence:synchronizing",
  "value": "true",
}

Response

"status": 404,
"data": {
  "statusCode": 404,
  "data": {
    "authorized": true,
    "valid": false,
    "errors": [
      {
        "message": {
          "key": "spaceproperty.invalid.space",
          "args": [
            "KEY"
          ]
        }
      }
    ],
    "successful": false
  },
  "message": "com.atlassian.confluence.api.service.exceptions.NotFoundException: Cannot create new space property: JsonSpaceProperty{id='null', key='com.ricksoft-inc.plugins.space-sync-for-confluence:synchronizing', space=ExpandedReference{idProperties={key=KEY}, of=some(Space{key='KEY', name='null'})}, version=null}"
}

Space Permission

1 Like

We’re encountering the same issue.

Atlassian, any info on this?

1 Like

Hi @ademoss ,

Can you please raise a ticket at Jira Service Management for us to check?

If possible, please provide a few examples with timestamps as well.

We would also like to know if this started recently or if it’s been an issue since time, if you know of course.

Thanks,
Caterina

@ccurti

Ticket is DEVHELP-14381
It contains details about a Confluence instance, and timing where/when we saw this.

For everybody’s visibility, we haven’t been able to understand the root cause of this problem.

If the permissions are set as expected and you can reproduce the issue, please reach out to us so that we can further investigate this.

To do so, we will most likely need to get access to the site which can only be done via a ticket in the customer support portal (Atlassian Support). Please reference this ticket and let the support team know that they can reach out to me since I have some context already and can help.

And of course, if you have any more relevant information please share them here as well so that other community members can benefit from those.

Cheers,
Caterina

1 Like