RFR: 8229887: ZIP FS cannot replace an entry in a that was added via the STORED method

Langer, Christoph christoph.langer at sap.com
Wed Sep 4 07:22:46 UTC 2019


Hi Lance,

thanks for your comments. I’ve requested the patches for jdk13u and jdk11u then. By default they’d reach the Jan 2020 update release, so they’ll get some time to bake in there. Actually, since this patch fixes a regression that has been introduced just recently, I could imagine that the fix would even be a candidate for the October patches. It looks quite obvious and I don’t think that there’s a huge performance risk. But I don’t want to take this decision on my own ��

Best regards
Christoph

From: Lance Andersen <lance.andersen at oracle.com>
Sent: Dienstag, 3. September 2019 23:00
To: Langer, Christoph <christoph.langer at sap.com>
Cc: Alan Bateman <Alan.Bateman at oracle.com>; nio-dev <nio-dev at openjdk.java.net>
Subject: Re: RFR: 8229887: ZIP FS cannot replace an entry in a that was added via the STORED method

Hi Christoph,

On Sep 3, 2019, at 3:10 PM, Langer, Christoph <christoph.langer at sap.com<mailto:christoph.langer at sap.com>> wrote:

Hi Lance, Alan,

would you mind if I take care of backporting this fix to jdk13u and jdk11u?

I think that is your call as to when you are ready to backport.  I might wait a bit longer myself o.  While I am comfortable with the fix, it might give a bit more time to make sure there are no additional speed bumps.

Best
Lance


Thanks
Christoph

From: nio-dev <nio-dev-bounces at openjdk.java.net<mailto:nio-dev-bounces at openjdk.java.net>> On Behalf Of Lance Andersen
Sent: Mittwoch, 21. August 2019 16:46
To: Alan Bateman <Alan.Bateman at oracle.com<mailto:Alan.Bateman at oracle.com>>
Cc: nio-dev <nio-dev at openjdk.java.net<mailto:nio-dev at openjdk.java.net>>
Subject: Re: RFR: 8229887: ZIP FS cannot replace an entry in a that was added via the STORED method


On Aug 20, 2019, at 7:34 AM, Alan Bateman <Alan.Bateman at oracle.com<mailto:Alan.Bateman at oracle.com>> wrote:

On 19/08/2019 21:48, Lance Andersen wrote:


Hi

The following patch for JDK-8229887<https://bugs.openjdk.java.net/browse/JDK-8229887> addresses an issue introduced by the performance fix inhttps://bugs.openjdk.java.net/browse/JDK-8222532 resulting in an error when trying to replace an entry in a ZIP/JAR file that was added with no-compression.

The webrev can be found at http://cr.openjdk.java.net/~lancea/8229887/webrev.00/index.html

The update to ZipFileSystem looks good.

Thank you Alan



I think the test needs a bit of work and needs to test updating zip files where all entries are stored, all entries are deflated, and a mix of the two. I've created a test that does this if you need it.

A revised webrev can be found at: http://cr.openjdk.java.net/~lancea/8229887/webrev.01/index.html

This cleans up the existing test and adds some additional tests that were contributed by Alan.

Mach5 tier1-3 are all clean

Best
Lance




-Alan

<image001.gif><http://oracle.com/us/design/oracle-email-sig-198324.gif>

<http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com<mailto:Lance.Andersen at oracle.com>






[cid:image001.gif at 01D56302.4FCCE490]<http://oracle.com/us/design/oracle-email-sig-198324.gif>

<http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com<mailto:Lance.Andersen at oracle.com>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190904/dc23b3ff/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 658 bytes
Desc: image001.gif
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190904/dc23b3ff/image001-0001.gif>


More information about the nio-dev mailing list