[GLASSFISH-19415] Response content length is set zero , causing many pages failure in admin console Created: 06/Dec/12  Updated: 11/Dec/12  Resolved: 11/Dec/12

Status: Resolved
Project: glassfish
Component/s: rest-interface
Affects Version/s: 4.0_b66
Fix Version/s: 4.0_b67_ms7

Type: Bug Priority: Critical
Reporter: Anissa Lam Assignee: Jason Lee
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Many of the console pages has stopped working due to the missing information from the Response.
This error has been there for quite a while, and reproducible in latest build.

Here is what I am seeing. Notice that Content-Length is set to zero.
The command actually goes through fine, domain.xml get updated correctly. However, the response it sent back is missing info.

Also please confirm if the returned 201 status is what it suppose to be. It is setting some attribute, nothing should be 'created'.

~ 2) curl -s -S --user admin: -H 'Accept: application/json' -H 'X-Requested-By: foo' -X POST -vsS -d 'applicationRoot=$

{com.sun.aas.instanceRoot}/applications' -d locale=null -d 'logRoot=${com.sun.aas.instanceRoot}

/ABClog' -d version=anilam-private http://localhost:4848/management/domain

  • About to connect() to localhost port 4848 (#0)
  • Trying ::1... connected
  • Connected to localhost (::1) port 4848 (#0)
  • Server auth using Basic with user 'admin'
    > POST /management/domain HTTP/1.1
    > Authorization: Basic YWRtaW46
    > User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
    > Host: localhost:4848
    > Accept: application/json
    > X-Requested-By: foo
    > Content-Length: 134
    > Content-Type: application/x-www-form-urlencoded
    >
    < HTTP/1.1 201 Created
    < Date: Thu, 06 Dec 2012 20:11:10 GMT
    < Content-Length: 0 <============================== BUG
    <
  • Connection #0 to host localhost left intact
  • Closing connection #0


 Comments   
Comment by Anissa Lam [ 11/Dec/12 ]

Jason has checked in a fix and i verified that it is working as before. Console back to normal now.

Generated at Sat May 23 14:04:07 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.