-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in export_responses_filedownload()
: caused by "/" in Qualtrics Project Name
#307
Comments
Error in
export_responses_filedownload():
caused by "/" in Qualtrics Project Nameexport_responses_filedownload()
: caused by "/" in Qualtrics Project Name
This makes sense that it would error, because the Qualtrics project name is used as a filename when you download via the API. This is related to #195 and the fix suggested there (using something like If someone is interested in submitting a PR implementing a fix in the near term, I will be happy to review! I believe the changes need to be in this function: Line 536 in 2d0fb41
The idea would be to sanitize the path either before or after unzipping. Is it possible to do this without making a copy of the file? Probably. |
Hmm, this might be harder than we think. As currently configured, the zipped file always has the unproblematic name
There appears to be no way to change that via the API--and there also doesn't appear to be any tools for on-the-fly renaming during extraction using the I suppose it might be possible to bypass this? If we use the I have no idea, though, whether an attempt to link to an internal file like that would still trigger any filesystem naming issues. I also don't have a Windows box on hand to test this case easily. @asadow, I suppose I could make something for you to test if you're up for it? |
@asadow, I've got something that might work. If you want, you can try temporarily installing from the recent commit in the draft PR using |
It worked.
|
Okay. Thoughts @juliasilge? Any other relevant scenarios we might need to test? The implementation in the draft PR was just hacked in for speed. If we actually move away from pre-extracting from the .zip file will require a redesign around the current |
I discovered through trial and error that the following error is fixed when a "/" in a project name is removed.
In my case my survey called "Grounds Shovel Route Afternoon Shift / Weekend Priorities Checklist". Renaming to "Grounds Shovel Route Afternoon Shift - Weekend Priorities Checklist" fixed the error.
May an error message be implemented that explains the incompatibility of the slash to the user?
The text was updated successfully, but these errors were encountered: