The Upload button in the Files pane allows users to upload ZIP files, and it automatically decompresses the file. A ZIP file can contain a symbolic link, for example if the ZIP was created with the linux zip utility with the --symlinks argument. The parallel unzip utility can restore them, but RStudio appears to use its own implementation of unzip that does not do this. I suggest the Upload button be configurable, either by the server admin or user, so it can point to the linux unzip utility. Essentially, allow it to invoke unzip(..., unzip = '/usr/bin/unzip') rather than unzip(..., unzip = 'internal'). Perhaps the choice should simply reflect the R_UNZIPCMD env variable?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
stalebot
added
the
stale
Issues which have been closed automatically due to inactivitiy.
label
Feb 5, 2021
The Upload button in the Files pane allows users to upload ZIP files, and it automatically decompresses the file. A ZIP file can contain a symbolic link, for example if the ZIP was created with the linux zip utility with the
--symlinksargument. The parallel unzip utility can restore them, but RStudio appears to use its own implementation of unzip that does not do this. I suggest the Upload button be configurable, either by the server admin or user, so it can point to the linux unzip utility. Essentially, allow it to invokeunzip(..., unzip = '/usr/bin/unzip')rather thanunzip(..., unzip = 'internal'). Perhaps the choice should simply reflect the R_UNZIPCMD env variable?I am submitting this enhancement request as directed by an RStudio employee in the community forum.
The text was updated successfully, but these errors were encountered: