View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15539 | Bug reports | Import/Export | public | 2019-11-06 11:14 | 2021-03-08 12:29 |
Reporter | Apouxx | Assigned To | gabrieljenik | ||
Priority | normal | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.25.11 | ||||
Summary | 15539: queXML PDF shows JS script | ||||
Description | The queXML PDF format shows the embedded JS script at the exported file. Link to survey : https://survey.devformation.fr/index.php/599988?lang=fr | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 12 | ||||
Complete LimeSurvey version number (& build) | 3.25.11 | ||||
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 | ||||
In my opinion : no need «Signature question with OfflineSurvey», just add |
|
Sorry i dont understand... Where do i have to add this ? |
|
Je dois ajouter script entre qui et quoi ? |
|
No, i mean : the issue is not related to OfflineSurvey See the attache survey + queXML |
|
Framadrop link https://framadrop.org/r/z50lIFF5ZB#7TqWDkG4HosZgKlRVFgfYKJeH2CIS3UKjxF9fcVJEuY= |
|
Ah I see... So what is the solution to export the photo and not the script itself ? I tried with the HTML or PDF export, it shows what's in the database such as : "[{"title":"","comment":"","filename"...etc..."}] ! The problem occurs as well in the answers recap ON LS when i try to download the photo "Sorry, this file has not been found." |
|
Apouxx, we are talking about two different issues here:
|
|
Hi Mazi, I've contacted the "support@offlinesurveys.com" yesterday, still waiting for a response from them ! |
|
I think the Upload files from OfflineSurveys is the problem : 1.The files are stocked directly in /surveyid/files/, aren't they supposed to be in /upload/surveys/surveyid/files ?
|
|
@1: Yes, they should be within the /upload/ folder. Please check if your FTP account maybe points to the wrong location. @2: If I remember correctly, that is intended for security reasons so you can grab a file from the outside by e.g. guessing a file name. Limesurvey usually maps those cryptic file names with the real names internally. |
|
Was that for the folder problem mazi, i change the root file location and i goes all good, but still cant find how to export those photos as pdf or even html... still i dont understand why the photo isnt stocked in the database.. at it's place there's [{"title":"","comment":"","filename"...etc..."}] i guess it allows the LS interface to read it... but cant read it when exporting it ! Any ideas ? still waiting for a response of offlineSurvey's support. |
|
https://survey.devformation.fr/index.php/521936?lang=fr Easier to test then the first one... still cant find a solution |
|
The upload question type used for storing photos can't embed files at any of the export formats since you never know what format an uploaded file may have (png, txt, pdf, ...). |
|
I see, that was the point of all this but if u say it's not possible... The question i was asking myself now is "How can i know easily which photo is attached to which response ?" Not easy, if not by doing it manually on each answer, I can't see any other way of doing it... It this way can take quite a long time if we have like 100 responses ! Am i right ? |
|
What would be your preferred solution? Maybe you can outline 2-3 approaches that could work for you? |
|
I'm watching at : https://manual.limesurvey.org/Development_-_File_Upload_question_type make sure to identify easily a photo attached to a specific response : As an example : 1 person is filling out the survey : He signs his answer with the signature question and sends it. Do you follow what i'm trying to say ? I dont rly know how to do this, but maybe changing the way the photo's name is built ? |
|
@Mazi : maybe signature must be set to a long text question ? But : all of this is totally unrelated of this issue … plugin feature OR LimeSurfvey feature … but not an issue. |
|
Apouxx, the mentioned approach won't work. Technically it is tricky and it is also a very special requirement. Is the name stored at the meta data of the file? The only solution I can think of is a plugin which checks all responses, grabs the uploaded file for each response and stores the image with a new file name including the name as a ZIP file you can then download. |
|
Hmm... I see. I'll try to code smthg myself then... |
|
I have updated the ticket since the actual bug is the JS shown with the export file/PDF. @cdorin, tested and confirmed, please assign. |
|
Please check if this bug still exists in the latest patch release. Thank you. |
|
Confirm in 3.25.10 … Please : test with included survey … a lss is here for testing and easy reproductability … |
|
for 3.25.11 , i create a copy after |
|
@ollehar : fixed in 4.4.3 |
|
Thanks, Denis! Do we have a fixing commit in master, or is it just incidentally working? (I tried to search in commit history, didn't find it.) |
|
Who know ? |
|
Got it, thanks. |
|
Using htmlpurifier instead of strip tags. Strip tags kept the tags internal content. |
|
Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=31147 |
|
Fixed in Release 3.25.16+210302 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2019-11-06 11:14 | Apouxx | New Issue | |
2019-11-06 11:14 | Apouxx | File Added: Screen Shot 11-06-19 at 10.23 AM.PNG | |
2019-11-06 12:02 | DenisChenu | Note Added: 54423 | |
2019-11-06 14:12 | Apouxx | Note Added: 54427 | |
2019-11-06 14:14 | Apouxx | Note Added: 54428 | |
2019-11-06 14:54 | DenisChenu | Note Added: 54430 | |
2019-11-06 14:54 | DenisChenu | File Added: limesurvey_survey_queXmlPrintScript.lss | |
2019-11-06 14:55 | DenisChenu | Note Added: 54431 | |
2019-11-06 15:26 | Apouxx | Note Added: 54432 | |
2019-11-07 08:06 | Mazi | Note Added: 54453 | |
2019-11-07 09:00 | Apouxx | Note Added: 54454 | |
2019-11-07 09:29 | Apouxx | File Added: image.png | |
2019-11-07 09:29 | Apouxx | File Added: image-2.png | |
2019-11-07 09:29 | Apouxx | Note Added: 54455 | |
2019-11-07 11:11 | Mazi | Note Added: 54458 | |
2019-11-07 16:00 | Apouxx | Note Added: 54466 | |
2019-11-12 10:58 | Apouxx | Note Added: 54535 | |
2019-11-12 11:08 | Mazi | Note Added: 54536 | |
2019-11-12 11:14 | Apouxx | Note Added: 54537 | |
2019-11-12 11:20 | Mazi | Note Added: 54538 | |
2019-11-12 11:28 | Apouxx | Note Added: 54539 | |
2019-11-12 11:46 | DenisChenu | Note Added: 54540 | |
2019-11-12 11:59 | Mazi | Note Added: 54541 | |
2019-11-12 14:12 | Apouxx | Note Added: 54547 | |
2019-11-12 14:29 | Mazi | Summary | queXML PDF and Signature question with OfflineSurvey => queXML PDF shows JS script |
2019-11-12 14:29 | Mazi | Description Updated | |
2019-11-12 14:29 | Mazi | Note Added: 54548 | |
2019-11-14 21:23 | cdorin | Assigned To | => cdorin |
2019-11-14 21:23 | cdorin | Status | new => assigned |
2020-12-28 18:51 | cdorin | Assigned To | cdorin => |
2020-12-28 18:51 | cdorin | Priority | none => normal |
2020-12-28 18:51 | cdorin | Status | assigned => confirmed |
2020-12-28 18:51 | cdorin | Sync to Zoho Project | => |Yes| |
2021-02-08 17:34 | ollehar | Assigned To | => ollehar |
2021-02-08 17:34 | ollehar | Status | confirmed => feedback |
2021-02-08 17:34 | ollehar | Note Added: 62033 | |
2021-02-09 08:01 | DenisChenu | Note Added: 62053 | |
2021-02-09 08:01 | DenisChenu | File Added: Capture d’écran du 2021-02-09 08-00-42.png | |
2021-02-09 08:01 | DenisChenu | File Added: Capture d’écran du 2021-02-09 08-00-57.png | |
2021-02-09 08:06 | DenisChenu | Product Version | 4.0.0-RC6 => 3.25.11 |
2021-02-09 08:06 | DenisChenu | Complete LimeSurvey version number (& build) | 4.0.0-RC6 (191022) => 3.25.11 |
2021-02-09 08:06 | DenisChenu | Browser | => not relevant |
2021-02-09 08:06 | DenisChenu | Database & DB-Version | phpMyAdmin MySQL libmysql - mysqlnd 5.0.11-dev => not relevant |
2021-02-09 08:06 | DenisChenu | Server OS (if known) | => not relevant |
2021-02-09 08:06 | DenisChenu | Webserver software & version (if known) | => not relevant |
2021-02-09 08:06 | DenisChenu | PHP Version | 5.6.40-12+ubuntu18.04.1+deb.sury.org+1 => not relevant |
2021-02-09 08:06 | DenisChenu | Note Added: 62054 | |
2021-02-09 08:06 | DenisChenu | Status | feedback => confirmed |
2021-02-09 08:10 | DenisChenu | Note Added: 62055 | |
2021-02-09 12:11 | ollehar | Note Added: 62063 | |
2021-02-09 12:12 | DenisChenu | Note Added: 62064 | |
2021-02-09 12:12 | ollehar | Severity | crash => block |
2021-02-09 12:12 | ollehar | Sync to Zoho Project | Yes => |Yes| |
2021-02-09 12:17 | ollehar | Note Added: 62065 | |
2021-02-09 13:46 | cdorin | Assigned To | ollehar => |
2021-02-09 13:46 | cdorin | Sync to Zoho Project | Yes => |Yes| |
2021-02-17 16:33 | gabrieljenik | Note Added: 62317 | |
2021-02-22 11:40 | gabrieljenik | Changeset attached | => LimeSurvey 3.x-LTS b11f9911 |
2021-02-22 11:40 | gabrieljenik | Note Added: 62428 | |
2021-02-22 11:40 | gabrieljenik | Assigned To | => gabrieljenik |
2021-02-22 11:40 | gabrieljenik | Resolution | open => fixed |
2021-02-25 19:59 | ollehar | Status | confirmed => resolved |
2021-03-08 12:29 | lime_release_bot | Sync to Zoho Project | Yes => |Yes| |
2021-03-08 12:29 | lime_release_bot | Note Added: 62880 | |
2021-03-08 12:29 | lime_release_bot | Status | resolved => closed |