Re: HTTP request status text is changed


Stanley Shen <meteorping@...>
 

I created the docker image, and you can find it "meteorping2/hello".

You can push the image as an APP like "cf push stanley -o meteorping2/hello"
When the APP is ready, you can access the servlet like:
wget http://stanley.test.io/hello

And I got result
=======================================
:~ stanleyshen$ wget http://stanley.test.io/hello
--2016-05-11 15:23:16-- http://stanley.test.io/hello
Resolving stanley.test.io... 11.22.33.44
Connecting to stanley.test.io|11.22.33.44|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-05-11 15:23:17 ERROR 403: Forbidden.
=======================================

But if you access the servlet deployed in local env via "java -jar jetty-runner.jar testId.war" you will get below result:
=======================================
--2016-05-11 07:04:31-- http://127.0.0.1:8080/hello
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response... 403 my customized 413 error message
2016-05-11 07:04:31 ERROR 403: my customized 413 error message.
=======================================

And here is the Dockerfile definition:
=======================================
FROM java:8
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp

CMD java -jar jetty-runner.jar testId.war
=======================================
Thanks for investigation, let me know if you still cannot reproduce the issue.

Regards,
Stanley

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.