Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-47126

[BP 6.6.3] - XDCR REST returns 500 instead of 404 for invalid paths

    XMLWordPrintable

Details

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pavithra.mahamani Pavithra Mahamani (Inactive)
              neil.huang Neil Huang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty