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
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Cheshire-Cat
    • 7.0.0
    • 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

            Build couchbase-server-7.0.0-2833 contains goxdcr commit 6ea4bb7 with commit message:
            MB-40850 - return 404 status code for REST calls pointing to invalid REST paths

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-2833 contains goxdcr commit 6ea4bb7 with commit message: MB-40850 - return 404 status code for REST calls pointing to invalid REST paths

            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