# Bug OP-9482 - Auto-unlocking editing of locked wiki pages no longer works (500 server error) - informative only, fixed in OP 12.0.1

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-9482

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.0.1 |
| Observed in versions | 11.4.0 |
| Sprint | 12.0.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.4.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

**Informative Bug report only, because apparently undocumented but fixed**

**Environment**:

Your OpenProject Version: **11.4.1 tested to be buggy**, **12.0.1 tested to work** / ~~Cloud Edition~~ (not tested)

Operating System / Browser / OpenProject language: Docker image (Linux) / Firefox / English and German tested

### **Logs**

Are there errors in the browser console? ([Click here for information on how to open your browser's console](https://webmasters.stackexchange.com/a/77337)) For a local installation: Are there relevant logs output by `openproject logs` (packaged installation) ([click here for details](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable

### **Steps to reproduce:**

1.  \[Start with a fresh OP instance or use an existing one with Version 11.4.1\]
2.  Login as admin, project admin or any user with "protect wiki pages" and "edit wiki pages" rights (I will refere to such an user as "*privileged user*" here.)
3.  Go to an existing wiki page or create a new one and add some content
4.  Lock the page (\[...\] =\> Lock)
5.  Edit the page and click "Save"

### **Actual Behavior in OP 11.4.1**

The *privileged user* sees this error:

> \[Error 500\] An error occurred on the page you were trying to access. If you continue to experience problems please contact your OpenProject administrator for assistance.

### **Expected Behavior and fixed behavior in OP 12.0.1**

The behaviour that I have seen in previous versions and again in OP 12.0.1:

The *privileged user* user can edit the page because some auto-unlock method allows him to do so.

Another sensible expectation would be that the *privileged user* sees an useful error messages that allows him to understand that we has to unlock the page before editing it.

I searched all bug reports here and went through the release notes but did not find any entry that matches this problem.

  - <https://www.openproject.org/docs/release-notes/12-0-0/>
  - <https://www.openproject.org/docs/release-notes/12-0-1/>

\=\> So I created this report as post-mortem documentation
