View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18364 | Bug reports | Ergonomy | public | 2022-09-20 15:18 | 2022-09-23 18:30 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | low | Severity | minor | ||
Status | assigned | Resolution | open | ||
Product Version | 5.4.x | ||||
Summary | 18364: Strange error return when there are issue about permission | ||||
Description | When permission is saved : there are a strange error if user can not have access | ||||
Steps To Reproduce | Steps to reproduceNeed 2 browser (or hack HTML) In Browser 1 : As superadmin Create an user with user/create permission right Expected resultSee a error about right Actual resultSee a ezrror with numbe, | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 5.4.1 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | not relevant | ||||
Database type & version | not relevant | ||||
Server OS (if known) | not relevant | ||||
Webserver software & version (if known) | not relevant | ||||
PHP Version | not relevant | ||||
Potential fix : https://github.com/LimeSurvey/LimeSurvey/pull/2603/files#diff-6f1c5976e0d24b8aa7349798b9a06c59081576fef190ed5a0a7a7cf6a947caedR432-R441 |
|
Again too big fix? What about changing return type |
|
? There are no fix currently ? the line show replace
by
BUT : personalty i' for a Throw 403 error !
Because in this case : when there are error : nothing is shown … (best is to throw error in this case : same result for user except if he look at console). |
|
Hm, then there's also an error in which permissions are shown in the GUI? If you can get to a 403 without hacking. |
|
How ? Not currently (fixed). But : current situation : throw a 500 and show nothing to user |
|
Oh... Why you waste my time like this, Denis... T_T |
|
I really don't understand your point of view here ! Why discuss ? There are an issue |
|
Oh : you're right about 2 browse : but very rare issue … superadmin remove your right during your action … |
|
I report with CLEAR way to reproduce … Speaking of time wasting … |
|
Nope, I missed the "hack" part. |
|
2 solutions : Create a private renderError on this class just to show something without updating JS : quickest Tell me your choice ;) |
|
My choice would be to fix things that are completely bonkers first, before giving hackers nice error messages xD |
|
:D Yes : but other part are hard to fix for dev whe this part is broken ;) |
|
Then : just a 403 error without updating anything else is OK ? |
|
Yeah sure |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-09-20 15:18 | DenisChenu | New Issue | |
2022-09-20 15:18 | DenisChenu | File Added: Peek 20-09-2022 15-15.gif | |
2022-09-20 15:18 | DenisChenu | Note Added: 71856 | |
2022-09-20 15:18 | DenisChenu | Bug heat | 0 => 2 |
2022-09-23 16:31 | ollehar | Note Added: 71906 | |
2022-09-23 16:31 | ollehar | Bug heat | 2 => 4 |
2022-09-23 16:32 | ollehar | Priority | none => normal |
2022-09-23 16:43 | DenisChenu | Note Added: 71909 | |
2022-09-23 16:47 | ollehar | Note Added: 71910 | |
2022-09-23 17:01 | ollehar | Note Edited: 71910 | |
2022-09-23 17:01 | DenisChenu | Note Added: 71911 | |
2022-09-23 17:01 | ollehar | Note Added: 71912 | |
2022-09-23 17:04 | DenisChenu | Note Added: 71913 | |
2022-09-23 17:05 | DenisChenu | Note Added: 71914 | |
2022-09-23 17:06 | DenisChenu | Note Added: 71915 | |
2022-09-23 17:18 | ollehar | Priority | normal => low |
2022-09-23 17:19 | ollehar | Note Added: 71918 | |
2022-09-23 17:51 | DenisChenu | Note Added: 71923 | |
2022-09-23 17:52 | ollehar | Note Added: 71924 | |
2022-09-23 17:52 | DenisChenu | Note Added: 71925 | |
2022-09-23 17:53 | DenisChenu | Note Added: 71926 | |
2022-09-23 17:55 | ollehar | Note Added: 71927 | |
2022-09-23 18:30 | DenisChenu | Assigned To | => DenisChenu |
2022-09-23 18:30 | DenisChenu | Status | new => assigned |