Skip to content
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

Extract zip in file system #3627

Closed
ymarcon opened this issue May 7, 2021 · 3 comments
Closed

Extract zip in file system #3627

ymarcon opened this issue May 7, 2021 · 3 comments
Assignees

Comments

@ymarcon
Copy link
Member

ymarcon commented May 7, 2021

From a zip file in the Opal file system, possible actions could be:

  • Extract here
  • Extract in folder...

with password in option.

@ymarcon
Copy link
Member Author

ymarcon commented May 17, 2021

Error when the zip contains a folder:

2021-05-17 10:50:35,970 ERROR org.obiba.opal.web.magma.provider.UnhandledExceptionMapper - Unhandled exception
java.io.FileNotFoundException: /home/yannick/projects/opal/opal_home/fs/tmp/specimen_files/specimen_stylesheet.css (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method) ~[na:1.8.0_282]
	at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[na:1.8.0_282]
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[na:1.8.0_282]
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162) ~[na:1.8.0_282]
	at org.obiba.core.util.FileUtil.unzip(FileUtil.java:209) ~[obiba-core-1.15.2.jar:na]
	at org.obiba.opal.web.FilesResource.unzipArchive(FilesResource.java:478) ~[opal-core-ws-4.2-SNAPSHOT.jar:na]

@ymarcon
Copy link
Member Author

ymarcon commented May 17, 2021

When "Extract here..." or "Extract to..." the output folder must be the folder: <selected folder>/<archive base name> For instance when extracting foo.zip in /tmp the zip content will be in /tmp/foo (i.e. NOT in tmp).

@ymarcon
Copy link
Member Author

ymarcon commented May 21, 2021

Problem: the /files/_unzip REST point is not accessible to non-administrator users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants