JDK-6575825 : CookieStore Javadoc is insufficient
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: other
  • Submitted: 2007-06-29
  • Updated: 2010-04-02
  • Resolved: 2009-06-25
Related Reports
Duplicate :  
Description
Sun's default CookieStore implementation only stores cookies which have their domains set, and the expiry date should be in NETSCAPE_COOKIE_DATE_FORMAT which is "EEE, dd MMM yyyy HH:mm:ss 'GMT'".

These details have been provided by SUN in their Cookie Support reference documentation but not in the CookieStore Javadoc. We feel that this level of documentation is insufficient, and that the relevant Javadoc should be updated appropriately.

Comments
EVALUATION The fix CR 6644726 introduced more date formats that should cover what is out there. So no need to document the limitation any more.
25-06-2009

EVALUATION This is the common problem of implementation versus specification. Sun's default CookieStore implementation is restrictive as stated in the bug description. We do not want to specify suboptimal behavior or impose Sun's implementation on the specification. We need to think a little more about if/where in the specification we could add an implementation note about this.
18-12-2007