Hi, how would cause rest requests towards an confluence instance on https fail while rest requests towards http succeed?
An (truncated) example:
curl -D- -X GET -H "Authorization: Basic <base64 encoded user:pass>" http://mydomain/confluence/rest/api/content/12345
HTTP/1.1 200 OK
Date: Wed, 19 Oct 2016 07:36:50 GMT
Server: Apache-Coyote/1.1
X-ASEN: SEN-4713507
X-Seraph-LoginReason: OK
X-AUSERNAME: <username>
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Content-Type-Options: nosniff
Content-Type: application/json
Set-Cookie: JSESSIONID=A5CC9394A692F4333B8A13A5061693E0; Path=/confluence/; HttpOnly
Connection: close
Transfer-Encoding: chunked
{"id":"33505798", ... }
curl -D- -X GET -H "Authorization: Basic <base64 encoded user:pass>" https://mydomain/confluence/rest/api/content/12345
HTTP/1.1 404 Not Found
Date: Wed, 19 Oct 2016 07:36:44 GMT
Server: Apache-Coyote/1.1
X-ASEN: SEN-4713507
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Content-Type-Options: nosniff
Content-Type: application/json
Connection: close
Transfer-Encoding: chunked
{"statusCode":404,"data":{"authorized":false,"valid":true,"errors":[]},"message":"No content found with id: ContentId{id=12345}"}
Any ideas?
Looks like something in the https rewrite goes wrong as it returns a 404. I assume you are terminating SSL and http at a mod proxy in front of confluence, and point the traffic to the high port of tomcat after that? Is this a implementation that works while using a regular webbrowser, or is it all a new setup?
This is an existing setup (1y+), but integration via REST to update certain pages is new.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps 404 is a bit misleading as well, as the response actually tells us that nothing by that id was found... which should not mean that the request did not reach the endpoint?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.