[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-net-dev
Subject: Re: RFR: JDK-8243376: java.net.SocketPermission.implies(Permission p) spec is mismatching with imple
From: Jayashree S Kumar <duke () openjdk ! java ! net>
Date: 2021-12-20 8:07:28
Message-ID: iKwBWvl-G5WDh4mzhGLvW14AdhxVqLu5FtV9tjfm9kI=.02678dae-956a-452e-9940-2d197fe44aba () github ! com
[Download RAW message or body]
On Wed, 10 Mar 2021 17:32:30 GMT, Jayashree S Kumar <duke@openjdk.java.net> wrote:
> > Issue
> >
> > https://bugs.openjdk.java.net/browse/JDK-8243376
> >
> > Problem
> >
> > The scenario is:
> > - Some specified target hostname resolves to two IP addresses (always the same \
> > address pair).
> > - The DNS resolved order of the two ip addresses changes (a usual LoadBalancer \
> > type behavior).
> > - The CNAME of the two ip addresses differ.
> >
> > In SocketPermission class(void getIP() method), it internally resolves and saves \
> > only the first IP address resolved, not all the IP addresses \
> > resolved.
> > - Depending on when the implier/implied SocketPermission hostname is resolved, \
> > the resolved addresses order differs, and the internally saved IP address \
> > mismatches, resulting on SocketPermission#implies() false.
> >
> > Michael McMahon kindly reviewed and suggested changes: \
> > https://mail.openjdk.java.net/pipermail/net-dev/2020-May/014001.html
>
> Jayashree S Kumar has updated the pull request incrementally with one additional \
> commit since the last revision:
> Jcheck Review: Corrected the tab error
Hi Vyom, Thanks a lot for reaching out.
We have reopened to try and write the additional tests in \
"jdk/java/net/SocketPermission/Equals.java" for equal & hashCode method.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1916
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic