mitre / mitre/HTTP-Proxy-Servlet

Error 500: java.lang.IllegalArgumentException: Illegal cookie attribute with IBM JDK

Open
#172 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug-unverified
Dominant language
Java
Stars
1.5k
Forks
557
PR merge metrics
No merged PRs in 30d

Description

There is an Error 500: java.lang.IllegalArgumentException: Illegal cookie attribute issue thrown with WebSphere 7 (IBM JDK 6

SRVE0293E: [Servlet Error]-[testProxy]: java.lang.IllegalArgumentException: Illegal cookie attribute
at java.net.HttpCookie.assignAttribute(HttpCookie.java:1013)
at java.net.HttpCookie.parseInternal(HttpCookie.java:921)
at java.net.HttpCookie.parse(HttpCookie.java:182)
at org.mitre.dsmiley.httpproxy.ProxyServlet.copyProxyCookie(ProxyServlet.java:537)
at org.mitre.dsmiley.httpproxy.ProxyServlet.copyResponseHeader(ProxyServlet.java:515)
at org.mitre.dsmiley.httpproxy.ProxyServlet.copyResponseHeaders(ProxyServlet.java:500)
at org.mitre.dsmiley.httpproxy.ProxyServlet.service(ProxyServlet.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831))

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in ProxyServlet.java at copyProxyCookie, then trace copyResponseHeader and copyResponseHeaders around the IBM JDK stack trace. Reproduce the Illegal cookie attribute failure on WebSphere 7 with IBM JDK 6 and identify the affected response-cookie handling. Done means the request no longer returns HTTP 500 in that environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.