View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|16471||Bug reports||_ Unknown||public||2020-07-08 16:10||2020-11-30 14:08|
|Summary||16471: Inserted div by CBaseListView contains wrong URL|
The div 'keys' inserted by CBaseListView uses the request URL which misses the baseUrl if a reverse proxy mode is used. This results in error when logging in, deleting responses, filtering responses etc.
|Steps To Reproduce|
I submit a pull request to fix this issue.
In framework/zii/widgets/CBaseListView.php change:
|Tags||No tags attached.|
|Complete LimeSurvey version number (& build)||4.3.0+200616|
|I will donate to the project if issue is resolved||No|
|Sync to Zoho Project|
|Database & DB-Version||15.1 Distrib 10.1.44-MariaDB|
|Server OS (if known)|
|Webserver software & version (if known)|
Even without proxy : see https://www.yiiframework.com/doc/api/1.1/CHttpRequest#getUrl-detail "
Else : i think we need baseUrl not absolute URL
Proxy issue ?
It's better if we don't force url … and keep relative URL
If i don't make error : you can force baseUrl with
I have the feeling this will faile if LS in a subfolder.
Yes, the path seems to be wrong if LS is installed ina subfolder.
How is this "keys" div used for?
Please take into account we are updating a base thing from Yii.
What are we tryingto accomplish?
Hi! Sorry for my late response, but I only managed to look into this issue again today.
We had the folling issue:
Navigating manually to proxyUrl/index.php/admin after login loads all ressources just fine.
(-) $returnUrl = App()->user->getReturnUrl(array('/admin'));
Now this fixes our issue. I do not remeber if we had any other issue which made me suggest changes to Yii. So I believe that this is the "real" issue. Sorry for confusion.
On step #3, can you please describe which is the full url that you are getting and which is the full url that you are expecting?
The change that you suggest breaks the feature of allowing the user to return to the url which was intended to lad before the login screen appeared.
Here is the full call stack (example):
"custom/path" is ignored, while all other requests work fine and include the path.
Browser history works fine of course.
Interestingly, filter options when looking at survey responses have the same problem too.
For example, filter for completed answers only leads to wrong POST:
As far as I understand multiviews, the suggested related buck relies on rewrites done by apache which it should not be doing. In our case, however, the limesurvey application uses wrong URLs.
I still believe the problem related to using YII "getUrl".
*sorry for typo: I meant bug but cannot edit the post?
PS : i have a lot of instance in subfolder : then it's not related to only the subfolder ....
proxy issue in my opinion.
I think this is about reverse proxy.
Still, we were not able to reproduce it with reverse proxy.
Says exactly the same as here.
As to be cleat, please @jatoko can you confirm you have applied this configuration?
We will continue reviewing and trying to reproduce after.
|2020-07-08 16:10||jatoko||New Issue|
|2020-07-08 16:45||DenisChenu||Note Added: 58800|
|2020-07-08 16:46||DenisChenu||Note Added: 58801|
|2020-07-08 16:50||DenisChenu||Note Added: 58802|
|2020-10-15 22:37||gabrieljenik||Note Added: 60220|
|2020-10-16 01:00||gabrieljenik||Note Added: 60221|
|2020-10-16 01:00||gabrieljenik||File Added: image.png|
|2020-11-01 12:31||jatoko||Note Added: 60484|
|2020-11-26 20:22||gabrieljenik||Note Added: 60767|
|2020-11-26 20:23||gabrieljenik||Note Edited: 60767||View Revisions|
|2020-11-27 00:18||jatoko||Note Added: 60770|
|2020-11-27 07:59||DenisChenu||Note Added: 60772|
|2020-11-27 10:51||jatoko||Note Added: 60779|
|2020-11-27 10:51||jatoko||File Added: ls_bug.png|
|2020-11-27 10:51||jatoko||File Added: ls_bug2.png|
|2020-11-27 10:53||jatoko||Note Added: 60780|
|2020-11-27 10:59||DenisChenu||Note Added: 60781|
|2020-11-27 11:00||DenisChenu||Note Added: 60782|
|2020-11-27 20:31||gabrieljenik||Note Added: 60790|
|2020-11-30 14:08||gabrieljenik||Note Added: 60805|