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

XDCR REST returns 500 instead of 404 for invalid paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.0
    • Cheshire-Cat
    • XDCR

    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

          For Gerrit Dashboard: MB-40850
          # Subject Branch Project Status CR V

          Activity

            People

              neil.huang Neil Huang
              neil.huang Neil Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty