AW: 8276774 Solution Proposal for Cookie stored in CookieHandler not sent if user headers contain cookie
pierre.viret at postfinance.ch
pierre.viret at postfinance.ch
Mon Nov 8 16:41:41 UTC 2021
Hi Daniel
Thank you very much for your feedback.
To allow user cookies to override system cookies would be a new feature, this was not performed in the java11 version neither if I get it right.
I think that to implement this in the collectCookies method would imply quite a bit of parsing as the header cookie values may contain several cookie-value pairs, and I personally would let it be as it is possible to solve this by implementing an appropriate "java.net.CookiePolicy" for the "java.net.CookieManager" whether shouldAccept method must return false for the cookies we don’t want to get managed / added automatically.
This Issue is about a bug fix of high priority "Major loss of function", so I would like to get a rapid solution if possible ;-). On my humble opinion, adding a new feature could be performed in another, separate issue with lower priority.
Regards,
Pierre
Remarque concernant la sécurité:
Ce courriel provenant de PostFinance est signé. Vous trouverez d'autres informations à ce sujet sous:
https://www.postfinance.ch/e-signature.
Ne divulguez jamais vos éléments de sécurité à des tiers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5744 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20211108/3c02e5e0/smime.p7s>
More information about the net-dev
mailing list