Details
-
Bug
-
Resolution: Fixed
-
Major
-
Cheshire-Cat
-
Untriaged
-
1
-
No
Description
Normal nomenclature is that 404 should be returned for an invalid path. XDCR REST port currently returns 500.
neil.huang@NeilsMacbookPro:~/source/couchbase/goproj/src/github.com/couchbase/goxdcr/tools$ curl -v -s -X GET -u Administrator:wewewe http://127.0.0.1:13000/xdcefe
|
* Trying 127.0.0.1...
|
* TCP_NODELAY set
|
* Connected to 127.0.0.1 (127.0.0.1) port 13000 (#0)
|
* Server auth using Basic with user 'Administrator'
|
> GET /xdcefe HTTP/1.1
|
> Host: 127.0.0.1:13000
|
> Authorization: Basic QWRtaW5pc3RyYXRvcjp3ZXdld2U=
|
> User-Agent: curl/7.64.1
|
> Accept: */*
|
>
|
< HTTP/1.1 500 Internal Server Error
|
< Content-Type: text/plain; charset=utf-8
|
< X-Content-Type-Options: nosniff
|
< Date: Mon, 10 Aug 2020 23:35:05 GMT
|
< Content-Length: 40
|
<
|
Invalid path, /xdcefe, in http request.
|
* Connection #0 to host 127.0.0.1 left intact
|
* Closing connection 0
|
Attachments
Issue Links
- backports to
-
MB-47126 [BP 6.6.3] - XDCR REST returns 500 instead of 404 for invalid paths
-
- Closed
-