RFR (Enhancement): 6194856: Zip Files lose ALL ownership and permissions of the files
christoph.langer at sap.com
Fri Sep 28 15:00:59 UTC 2018
Are there any reviews/comments on my proposal for adding unix/posix permissions to zip APIs?
> -----Original Message-----
> From: Langer, Christoph
> Sent: Mittwoch, 26. September 2018 09:49
> To: 'Alan Bateman' <Alan.Bateman at oracle.com>; core-libs-
> dev at openjdk.java.net; nio-dev <nio-dev at openjdk.java.net>; Xueming
> Shen <xueming.shen at oracle.com>
> Cc: Volker Simonis <volker.simonis at gmail.com>; Lindenmaier, Goetz
> <goetz.lindenmaier at sap.com>
> Subject: RE: RFR (Enhancement): 6194856: Zip Files lose ALL ownership and
> permissions of the files
> Hi Alan,
> thanks for your initial comments.
> > One initial comment is that you should be able to drop the API additions to
> > PosxFilePermissions - I think all you need there translation from
> > Set<PosixFilePermission> to internal values, it doesn't require bloating the
> > API.
> I agree, it doesn't feel right to bloat PosixFilePermissions with details needed
> for zip operations.
> I now moved this coding to the ZipUtils classes. The only drawback is the
> duplication of the code but there's already quite some duplication of coding
> between java.util.zip and jdk.nio.zipfs.
> Here is an updated webrev:
> Best regards
More information about the core-libs-dev