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

REST call to delete UDF library returns non-JSON

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • js-evaluator
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      calling the REST API to delete a Javascript UDF library, e.g.,

      curl -v -X DELETE -u Administrator:password http://localhost:9091/_p/query/evaluator/v1/libraries/newLib2
      

      claims to be returning JSON, but instead returns a non-JSON value:

      < HTTP/1.1 200 OK
      < Cache-Control: no-cache,no-store,must-revalidate
      < Content-Type: application/json
      < Date: Fri, 19 Nov 2021 18:16:12 GMT
      < Expires: Thu, 01 Jan 1970 00:00:00 GMT
      < Pragma: no-cache
      < Server: Couchbase Server
      < Transfer-Encoding: chunked
      < X-Content-Type-Options: nosniff
      < X-Frame-Options: DENY
      < X-Permitted-Cross-Domain-Policies: none
      < X-XSS-Protection: 1; mode=block
      < 
      * Connection #0 to host localhost left intact
      {status: "OK"}
      

      Instead it should be returning:

      {"status": "OK"}
      

      Attachments

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

        Activity

          People

            eben Eben Haber
            eben Eben Haber
            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