Add error code if default note type "General note" is not exists

Description

Purpose/Overview:

If the default note type with name "General note" does not exist mod-ebsconet returns 500 error without clear reason of failure. In scope of this story we should provide new error code for this case instead of NullPointerException.

Code to provide default "General note" type in mod-notes: Link 

Code in mod-ebsconet that relies on the General note: Link

Acceptance criteria:

  • New error code is added for case when "General note" type is not presented in the system

  • Users can clearly understand the reason of failure of PUT operation 

Environment

None

Potential Workaround

None

Attachments

3

Checklist

hide

TestRail: Results

Activity

Show:

Serhii_Nosko February 6, 2024 at 7:18 AM

Tested on https://folio-snapshot.dev.folio.org/ , looks good.

When default note type = “General note” EbscoNet PUT method returns successful 200 status

After this lets change default note type for example to “General note changed”

And EbscoNet service returns error code with 404 that is expected:

After changing back to “General note” EbscoNet updated the line successfully again, closing this story.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

Quesnelia (R1 2024)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created January 17, 2024 at 8:43 AM
Updated February 6, 2024 at 7:19 AM
Resolved February 6, 2024 at 7:19 AM
TestRail: Cases
TestRail: Runs