Bug #82969
closedJavascript Error in Backend
Added by Markus Günther about 7 years ago. Updated about 6 years ago.
100%
Description
When you create an non admin backend user and don`t add access to modules. You get JS errors in the backend.
I know that it is not useful to have a user without that permissions. But the backend allow users to do this and then
it should not happen that you get such errors in your console.
At the moment it seems that all versions are effected.
Files
Bildschirmfoto 2017-11-15 um 06.04.06.png (734 KB) Bildschirmfoto 2017-11-15 um 06.04.06.png | Markus Günther, 2017-11-15 06:05 | ||
Bildschirmfoto 2017-11-15 um 06.13.56.png (495 KB) Bildschirmfoto 2017-11-15 um 06.13.56.png | Markus Günther, 2017-11-15 06:14 | ||
Bildschirmfoto 2017-11-15 um 06.15.46.png (336 KB) Bildschirmfoto 2017-11-15 um 06.15.46.png | Markus Günther, 2017-11-15 06:16 |
Updated by Frank Nägler about 7 years ago
- Category set to Backend JavaScript
- Status changed from New to Needs Feedback
Hey Markus,
can you please add more info like the conrete error message or a console output?
Updated by Markus Günther about 7 years ago
Hi Frank,
it is a bit different on each TYPO3 version.
Steps to reproduce the failure:
- Create a new backend user
- Enter only a username and password because these are the only mandatory fields
- save and close
- Switch to the backend user and then you have the errors on all backends
In the current master you get an exception for the module, which is right. But also the JS error that the autocomplete has no options.
I would expect to have just the exception ;)
In TYPO3 version 7.6 you get JS errors because the backend is guessing that you have module available, but that is not the case and because
the fields are not mandatory this can happen to regular backend users.
I understand the problem is that you can get the access rights from a group or a single user.
But excerpt solving the JS issues it would be nice to prevent that you are able to create a user that has no module permissions.
Updated by Markus Günther about 7 years ago
Attached screenshot of TYPO3 version 7 LTS
Updated by Markus Günther about 7 years ago
Attached screenshot version 8.
For my local version 7.x instance I already adjusted the JS so that you don't get the errors anymore.
But my last patch is far in the past and I first need to go thru the contribution tutorial.
For patching it.
And I bet it did not change, that I first need to tackle master, then backport to version 8 and then 7. Although version 7 is not really a backport.
Updated by Markus Günther about 7 years ago
It turns out that after solving an autocomplete issue a new issue lead to another JS error.
In the issue https://forge.typo3.org/issues/83041 I describe that the Admin tools are visible to editors without permissions. And then we have module data in the menu but should not have
any module data. And then the request to the module fails with a code 500.
So this issue ends in another JS error for TYPO3 version 9.
Updated by Gerrit Code Review about 7 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54692
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54694
Updated by Gerrit Code Review about 7 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54692
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54696
Updated by Gerrit Code Review about 7 years ago
Patch set 3 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54692
Updated by Gerrit Code Review about 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54694
Updated by Gerrit Code Review about 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54694
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54710
Updated by Markus Günther about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7c7e4edb0425b3dc67516995c5856888a0c8a0d2.
Updated by Gerrit Code Review about 7 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54714
Updated by Gerrit Code Review almost 7 years ago
Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54714
Updated by Gerrit Code Review almost 7 years ago
Patch set 3 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54714
Updated by Gerrit Code Review almost 7 years ago
Patch set 4 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54714
Updated by Markus Günther almost 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset 26f68b8ae8de29754ae7b74cd06dfa9a9268b105.
Updated by Andreas Kienast over 6 years ago
- Related to Bug #84335: LiveSearch: Cannot read property 'options' on undefined added