Bug #52104
closedException: No such workspace defined
100%
Description
My backend is broken due to the following error after logging in into Backend with non-admin user:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: No such workspace defined | InvalidArgumentException thrown in file /html/typo3/typo3_src-6.0.10/typo3/sysext/workspaces/Classes/Service/WorkspaceService.php in line 102. Requested URL: http://www.somethin.org/typo3/backend.php
The $title is FALSE and so the exception is thrown.
The $wsId is INT (-99)
Updated by Philipp Gampe almost 11 years ago
- Status changed from New to Needs Feedback
What did you do before the error occured? Did you update TYPO3 CMS?
Updated by Ralle Büchnitz almost 11 years ago
There was an Update from 6.0.5 to 6.0.10 before.
BUT I didn't used that minor login for a longer time. So I can't say whether this is related to the update.
Additional data:- I dont really use the workspaces
- Workspace Installtation happened earlier through the upgrade wizard in install tool
- I created a new non-admin-user and this one works fine
If you want to know more about it tell me. Anyway, i'm going to use the new user and you can close this ticket if you like.
Updated by Thorsten Kahler almost 11 years ago
- Assignee set to Ralle Büchnitz
The mentioned "non-admin user" is lacking access to any workspace. See comment in classs BackendUserAuthentication
:
// User workspace. -99 is ERROR (none available), -1 is offline, 0 is online, >0 is custom workspaces.
public $workspace = -99;
Please check workspace permissions for that user. Can the issue be fixed by giving the user access to any workspace?
Updated by Thorsten Kahler almost 11 years ago
- TYPO3 Version changed from 6.1 to 6.0
Ralle Büchnitz wrote:
There was an Update from 6.0.5 to 6.0.10 before.
I change the TYPO3 version according to reporter comment.
Updated by Philipp Gampe almost 11 years ago
- Status changed from Needs Feedback to Accepted
- Assignee deleted (
Ralle Büchnitz) - Target version set to 6.2.0
- Complexity set to easy
Relic of the old draft workspace. The checkboxes in the backend user records fill a bitmask. If you have a user who does not have access to the life workspace, the value will be 2 while it should be 0. To change that, you cannot simple check/uncheck the checkbox, but you have to check all checkboxes at least twice (and uncheck in between) to change the value to 0 (no live) and then to 1 (live).
We need a migration wizard here that adapts the bitmasks of all backend users.
Updated by Nicole Cordes almost 11 years ago
- Category deleted (
Workspaces) - Assignee set to Nicole Cordes
The problem is a wrong calculation of workspace permission bit mask. After any change to the user record is it stored with a wrong value in the database. This was triggered because the second item (Draft workspace) was removed in the mean time.
Updated by Gerrit Code Review almost 11 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24650
Updated by Gerrit Code Review almost 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/24653
Updated by Gerrit Code Review almost 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/24654
Updated by Nicole Cordes almost 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 13c6602ede2518ec537458bd028c7c48f6aa104d.
Updated by Gerrit Code Review almost 11 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/24655
Updated by Gerrit Code Review almost 11 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at https://review.typo3.org/24656
Updated by Nicole Cordes almost 11 years ago
- Status changed from Under Review to Resolved
Applied in changeset 6371e46c2c7e9eb7e54bbb61bb2d6717db0de8c9.
Updated by Ralph-Diether Marzusch Marzusch over 7 years ago
- Related to Bug #80901: Missing workspace causes exception when "Edit Live" flag is cleared in user settings added
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed
Updated by Georg Ringer about 2 months ago
- Related to Bug #97129: No such workspace defined after create a new user and assigning usergroups to users added