Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

XHR Precondition Failed with versionMismatch when removing default group in application access

Mahmoud Al-Qudsi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 28, 2018

Under "Application Access" in the admin panel, attempting to remove a group that currently has the "default" column checked results in a declined XHR (status 412 precondition failed).

For example, with two groups present for an application, both set to "default", the outgoing payload is quite straightforward:

{{

{"groups":["jira-administrators","jira-users"],"defaultGroups":["jira-users"],"selectedByDefault":true}

}}

The response received:

{{

{"errorMessages":[],"errors":{"versionMismatch":"The page is out of date, please refresh the page."}}

}}

 

The page is then refreshed, but nothing changes.

 

This was tested under Jira 7.8.1

1 answer

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2018

There always has to be at least one group that is setup to be the default group for each application access within Jira.   Hence if there is only one group set to default, the option on the page to remove that group becomes greyed out because you are not expected to be able to remove it.

I have installed 7.8.1 and setup application access to use two different groups.  I then set both of these to default.  However anytime I try to remove either of these groups from this application access section, Jira does so for me without any error.  So I have not been able to replicate the problem you are reporting here.

I need more information about what steps you are taking to generate this error, and where exactly are you seeing this?  Do you see this on the Jira page?  Or is this in the browser console?

Suggest an answer

Log in or Sign up to answer