jira-importer opened a new issue, #975: URL: https://github.com/apache/httpcomponents-client/issues/975
**[Christian Hargraves](https://issues.apache.org/jira/secure/[email protected])** opened **[HTTPCLIENT-7](https://issues.apache.org/jira/browse/HTTPCLIENT-7?redirect=false)** and commented Under iPlanet Enterprise App Server SP3, to keep session, the container writes a cookie to a different path than the requested resource. For example, /NASApp/ebanking/Authenticate is requested, and iPlanet writes a cookie called Gx_jst to the path /NASApp/System. HttpClient doesn't like this. I looked through the cookie spec, but I couldn't find anywhere that said you couldn't write a cookie with a path different or lower than the resource requested. My request still suceeds so it's not a big deal, I guess this is just a warning and that the cookies are still being kept track of? The following is the stack trace I get: .ERROR [main] org.apache.commons.httpclient.HttpMethod - processResponseHeaders( HttpState,HttpConnection): 16 Jan 2002 06:09:54,923 org.apache.commons.httpclient.HttpException: Bad Set-Cookie header: GX_jst=fc7c7 23d662d6165; path=/NASApp/System, GX_jst=fc7c723d662d6165; path=/NASApp/ebanking Header targets a different path, found "/NASApp/System" for "/NASApp/ebanking/L istAccounts" at org.apache.commons.httpclient.Cookie.parse(Cookie.java:728) at org.apache.commons.httpclient.HttpMethodBase.processResponseHeaders(H ttpMethodBase.java:1022) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB ase.java:855) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j ava:430) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav a:257) at org.apache.commons.latka.http.RequestImpl.execute(Unknown Source) at org.apache.commons.latka.xml.RequestHandler.startElement(Unknown Sour ce) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.commons.latka.Latka.runTests(Unknown Source) at org.apache.commons.latka.Latka.runCommandLine(Unknown Source) at org.apache.commons.latka.Latka.main(Unknown Source) I am assuming, that you read all the Set-Cookie headers in and when throwing an exception you spit them out comma-delimited. --- No further details from [HTTPCLIENT-7](https://issues.apache.org/jira/browse/HTTPCLIENT-7?redirect=false) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
