Java snap upload automated review error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dayon! |
New
|
Undecided
|
Unassigned | ||
snapcraft (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
After uploading a Snap for arm architecture containing a jar packaged with the java/jar plugin, i get the following error from the automated review process:
package contains external symlinks: usr/lib/
command "ls -l prime/usr/
lrwxrwxrwx 3 ubuntu ubuntu 66 Jul 5 09:02 blacklisted.certs -> ../../.
lrwxrwxrwx 3 ubuntu ubuntu 27 Apr 23 10:34 cacerts -> /etc/ssl/
lrwxrwxrwx 3 ubuntu ubuntu 60 Jul 5 09:02 java.policy -> ../../.
lrwxrwxrwx 3 ubuntu ubuntu 62 Jul 5 09:02 java.security -> ../../.
-rw-r--r-- 3 ubuntu ubuntu 645 Apr 23 10:29 local_policy.jar
lrwxrwxrwx 3 ubuntu ubuntu 56 Jul 5 09:02 nss.cfg -> ../../.
-rw-r--r-- 3 ubuntu ubuntu 627 Apr 23 10:29 US_export_
It appears openjdk-
Package is built using:
Description: Ubuntu 16.04 LTS
Release: 16.04
summary: |
- Snap upload automated review error + Java snap upload automated review error |
I might point out that I've seen this dangling symlink myself and it can result in https errors and the snap failing to work under some circumstances, so the review tools are reporting a real error in the snap.
I have to manually unpack the snap (unsquashfs ./name.snap), remove the symlink, copy the real files that it expects into place and then repack the snap (snapcraft snap ./squashfs-root). I'm not sure what the correct solution for the plugin in, but this is a workaround for this bug.