Uploaded image for project: 'ui-eholdings'
  1. ui-eholdings
  2. UIEH-489

POST/PUT request to packages/resources with invalid "customCoverage" gives 400 with stack trace

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Sprint 44, 1.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      eHoldings Sprint 44
    • Story Points:
      8

      Description

      When we make a POST to /eholdings/packages with the following request body, we get a 400 but with a stacktrace instead of an error response.

      {
      	"data": {
      		"type": "packages",
      		"attributes": {
      			"name": "123",
      			"contentType": "ejournal",
      			"customCoverage": {
      				"beginCoverage": 2003-01-01, 
      				"endCoverage": 2003-12-01
      			}
      		}
      	}
      }
      
      

      The issue with the above is that "beginCoverage" and "endCoverage" are not strings as expected by code.

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              sduvvuri Sobha Duvvuri
              Reporter:
              sduvvuri Sobha Duvvuri
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  TestRail: Runs

                    TestRail: Cases