View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18143 | Bug reports | _ Unknown | public | 2022-05-23 19:09 | 2022-08-19 14:39 |
Reporter | ritapas | Assigned To | ollehar | ||
Priority | none | Severity | partial_block | ||
Status | assigned | Resolution | open | ||
Product Version | 3.28.x | ||||
Summary | 18143: cannot import resources for imported (lsa) survey with uploaded resources in responses | ||||
Description | if you export (lsa) a survey with uploaded resources and also import the related resources, such import fails | ||||
Steps To Reproduce | Steps to reproducecreate survey with resources in question and a file upload question. Expected resultresources appear in question and in answers Actual resultresources import throws a warning. also happens in 3.28.12 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 28 | ||||
Complete LimeSurvey version number (& build) | 3.28.8 (build 220426) | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Mozilla Firefox | ||||
Database type & version | php-mysql-5.4.16 | ||||
Server OS (if known) | Red Hat Enterprise Linux Server release 7.5 (Maipo) | ||||
Webserver software & version (if known) | httpd-2.4.6-80 | ||||
PHP Version | rh-php71 | ||||
The old big issue to set uploaded file in resources … |
|
But : user file list are pot part of survey resources ! I really think we mist not import : it's part of response not resoures The fix must be
New feature
|
|
If fileuploads are exported on resources now and app is intending to upload them, the bugfixing would be to allow them to be imported.
From my point of view, that is a reorganization, another ticket |
|
Personally i clearly not merge like this … And it don't fix the issue … You don't import the uploaded files ⋅ |
|
fu_ file is part of response, it's not a point of view here, clearly not … |
|
@c_schmitz... what do you think? |
|
I agree with that. I believe is a new feature. You said it also.
So the fix is to "not allow"? |
|
No : the fix is don't export user files as survey resources :) |
|
Gabriel an Me are unsurfe on the fix to do. Me : don't export : it's not survey ressource (and create a new fetaire import/export user file) PS : in general : whe n i have user files : size of zip get more than 50 Mo … i prefer to don't have it in ressources … |
|
Yeah, I'm a bit unsure. Gabriel's fix has no immediate security issue or danger to it, tho, right? But as Denis remarks, it's not 100% tight either, due to different settings in permissions (resource file upload vs question file upload). I guess we can both merge this and plan a more solid solution together? |
|
@DenisChenu, do you want to remove browsing response files in the resource file manager? Or what's your idea there? |
|
OK, ready for testing |
|
1st : allow to expprt wothout user file (second button) But what i want really ? Allow to save on another directory : save out of web access. It's a bug reported since years now … User with apach have .htaccess, user with nginx or IIS are not protected |
|
@ritapas maybe you can help by testing the PR? |
|
@DenisChenu, you can put uploaddir outside your web dir, no? In config.php. |
|
No because resource file is used for img source or PDF link in survey. upload/survey MUST be in web dir |
|
@gabrieljenik is the fix inside last release? |
|
OK, got it |
|
@ritapas No, in this PR I think you have dealt with PRs before, right? Thanks |
|
@gabrieljenik sorry no, but I will seek for help |
|
@ritapas You can also give us the lss and zip file needed to do the test. |
|
@ollehar sure, I am glad to help. |
|
Hello, |
|
@ollehar Maybe we can allow html? |
|
Not sure about XSS there, since HTML also includes script tags and external links. |
|
Well. JS is already accepted. If not, how shall it be handled the latest comment from ritapas? |
|
as far as I have seen since now, the index.html only contains the following: %% |
|
sorry, I meant but I thought that needed some escaping to avoid tag parsing |
|
@ollehar will leave it up to you. Should we allow it or wrap up the fix without allowing it? |
|
Pinging Carsten for comment. |
|
I think the whole PR is not the proper way to fix it. |
|
i would agree |
|
I agree that FU should be separated from responses, but that's a concept change.
Obvisouly don't agree :) haha The bug is: with the current concepts, why it doesn't work?
We could do another ticket for allowing that, but would be a bigger change. Question is: If this allows the current implemented feature to work, why would we need to block it? |
|
Maybe best is to do not add fu_XXX file in resource zip export for the 1st PR ? I'm OK to fix it like this (next week) |
|
Then the FU will not be exportable at all. |
|
Comments from chat iwth Cartsen:
Considerations:
|
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-05-23 19:09 | ritapas | New Issue | |
2022-05-23 19:09 | ritapas | File Added: ImportResources.png | |
2022-05-24 08:38 | DenisChenu | Note Added: 69994 | |
2022-05-24 08:38 | DenisChenu | Bug heat | 0 => 2 |
2022-06-09 13:54 | seccanj | Issue Monitored: seccanj | |
2022-06-09 13:54 | seccanj | Bug heat | 2 => 10 |
2022-06-09 18:16 | gabrieljenik | Assigned To | => gabrieljenik |
2022-06-09 18:16 | gabrieljenik | Status | new => assigned |
2022-06-17 10:06 | guest | Bug heat | 10 => 16 |
2022-06-17 10:06 | jamdome | Issue Monitored: jamdome | |
2022-06-17 10:06 | jamdome | Bug heat | 16 => 18 |
2022-06-22 14:59 | ritapas | Issue Monitored: ritapas | |
2022-06-22 14:59 | ritapas | Bug heat | 18 => 20 |
2022-06-30 20:39 | gabrieljenik | Status | assigned => ready for code review |
2022-06-30 20:39 | gabrieljenik | Note Added: 70640 | |
2022-06-30 20:39 | gabrieljenik | Bug heat | 20 => 22 |
2022-06-30 20:39 | gabrieljenik | Assigned To | gabrieljenik => DenisChenu |
2022-06-30 21:37 | DenisChenu | Note Added: 70652 | |
2022-06-30 21:38 | DenisChenu | Note Edited: 70652 | |
2022-06-30 21:39 | DenisChenu | Note Edited: 70652 | |
2022-06-30 21:44 | gabrieljenik | Note Added: 70653 | |
2022-06-30 21:46 | DenisChenu | Note Added: 70655 | |
2022-06-30 21:47 | DenisChenu | Note Added: 70657 | |
2022-06-30 21:49 | gabrieljenik | Note Added: 70659 | |
2022-06-30 21:58 | gabrieljenik | Note Added: 70661 | |
2022-07-01 08:32 | DenisChenu | Note Added: 70664 | |
2022-07-01 17:15 | DenisChenu | Assigned To | DenisChenu => c_schmitz |
2022-07-01 17:15 | DenisChenu | Status | ready for code review => confirmed |
2022-07-01 17:15 | DenisChenu | Note Added: 70681 | |
2022-07-01 17:15 | DenisChenu | Status | confirmed => in code review |
2022-07-29 18:38 | ollehar | Note Added: 71246 | |
2022-07-29 18:38 | ollehar | Bug heat | 22 => 24 |
2022-07-29 18:39 | ollehar | Note Added: 71247 | |
2022-07-29 18:41 | DenisChenu | Assigned To | c_schmitz => |
2022-07-29 18:41 | DenisChenu | Status | in code review => ready for testing |
2022-07-29 18:41 | DenisChenu | Note Added: 71248 | |
2022-07-29 19:02 | DenisChenu | Note Added: 71249 | |
2022-07-29 19:10 | gabrieljenik | Note Added: 71251 | |
2022-07-29 19:39 | ollehar | Note Added: 71252 | |
2022-07-29 20:38 | DenisChenu | Note Added: 71253 | |
2022-08-01 11:08 | ritapas | Note Added: 71261 | |
2022-08-01 11:08 | ritapas | Bug heat | 24 => 26 |
2022-08-01 11:09 | ollehar | Note Added: 71262 | |
2022-08-01 20:07 | gabrieljenik | Note Added: 71282 | |
2022-08-02 08:39 | ritapas | Note Added: 71286 | |
2022-08-03 13:08 | ollehar | Note Added: 71306 | |
2022-08-03 13:09 | ollehar | Assigned To | => ollehar |
2022-08-03 13:09 | ollehar | Status | ready for testing => feedback |
2022-08-03 14:22 | ritapas | Note Added: 71307 | |
2022-08-03 14:22 | ritapas | File Added: test export resources.lsa | |
2022-08-03 14:22 | ritapas | File Added: test export resources.zip | |
2022-08-03 14:22 | ritapas | Status | feedback => assigned |
2022-08-08 17:30 | ritapas | Note Added: 71385 | |
2022-08-08 17:30 | ritapas | File Added: Screenshot 2022-08-08 at 17-27-52 LimeSurvey DEV.png | |
2022-08-09 22:01 | gabrieljenik | Note Added: 71393 | |
2022-08-10 10:19 | ollehar | Note Added: 71394 | |
2022-08-10 13:55 | gabrieljenik | Note Added: 71403 | |
2022-08-10 14:02 | ritapas | Note Added: 71404 | |
2022-08-10 14:02 | ritapas | Note Added: 71405 | |
2022-08-11 20:00 | gabrieljenik | Note Added: 71415 | |
2022-08-12 10:28 | ollehar | Note Added: 71427 | |
2022-08-12 11:34 | c_schmitz | Note Added: 71431 | |
2022-08-12 11:34 | c_schmitz | Bug heat | 26 => 28 |
2022-08-12 11:35 | c_schmitz | Note Edited: 71431 | |
2022-08-12 11:43 | ritapas | Note Added: 71432 | |
2022-08-12 15:35 | gabrieljenik | Note Added: 71433 | |
2022-08-17 11:40 | DenisChenu | Note Added: 71460 | |
2022-08-17 15:19 | gabrieljenik | Note Added: 71464 | |
2022-08-19 14:39 | gabrieljenik | Note Added: 71495 |