Export jobs is failed when "Package fields to export" or "Titles fields to export" are without chosen options in multi-select

Description

Preconditions: Authorized user with the following permissions:
"eHoldings: Can view providers, packages, titles detail records",
"Agreements: Search & view agreements",
"Notes: Can view a note",
"Export manager: All".

Steps to Reproduce:

  1. Log into https://bugfest-nolana.int.aws.folio.org/ 

  2. Go to eHoldings app => "Package" toggle

  3. Fill in the input field with the search query, to retrieve some records

  4. Click on the "Selected"/ "Not selected" status in "Selection status" accordion 

  5. Click on "Package" record on list

  6. Click on the "Actions" button and select "Export title package (CSV)" 

  7. Click on the radio buttons placed next to multi-select dropdowns

  8. Choose for "Package fields to export" some options from the expanded dropdown

  9. Leave "Titles fields to export" without changes

  10. Go to "Export manager" app and verify that new row with "Job ID" value matched to "Job ID" from previous step is displayed at export jobs list.

  11. Check status of export job.

Expected Results: Status should be "Successful"
Actual Results: The job is failed with the following error: "null (NullPointerException)".

**
Notes:
1) The same issue is reproduced when exporting "Title+Package" record.
2) The same result is getting in cases when following options are chosen:

p

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

9

blocks

Checklist

hide

TestRail: Results

Activity

Show:

Valery_PilkoDecember 1, 2022 at 8:47 AM

Verified at Nolana BF env - works as expected.
See attached screencast:

cc:  

Oleksii PetrenkoDecember 1, 2022 at 12:31 AM

Deployed to Nolana bf. Please proceed with verification

Valery_PilkoNovember 29, 2022 at 8:59 AM

Verified at Snapshot environment - works as expected.
The issue from the previous comment is fixed.
See attached screencast:

Valery_PilkoNovember 28, 2022 at 7:37 AM

Hi  
The "null (NullPointerException)" error still appears only in the following scenario_06:
Export of "Title+Package" record: All Package fields to export, ** No * *Title fields to export.

Steps to reproduce:
1. Go to "eHoldings" app => "Package" toggle
2. Fill in the search box with any "Package" name, to retrieve any records (e.g.: "Wiley").
3. Click on the "Search" button.
4. Open any "Package" record by clicking on it in the result list.
5. Scroll down to the "Titles" accordion and open any "Title" record by clicking on it.
6. Click on the "Actions" >> "Export title package (CSV)".
7. Click on the radio button placed under "Title fields to export" (see attached screenshot for example).

8. Click on the "Export" button.

9. Go to the "Export Manager" app and verify that the export job is finished successfully.
Expected result: Export job is finished successfully.
Actual result: Export job if failed with the following error: "null (NullPointerException)"
Additional information: See attached screencast:

Other scenarios work as expected:
1) Export of "Package" record: All Package fields to export, ** All * *Title fields to export;
2) Export of "Package" record: All Package fields to export, ** No * *Title fields to export;
3) Export of "Package" record: No Package fields to export, ** All * *Title fields to export;
4) Export of "Title+Package" record: All Package fields to export, ** All * *Title fields to export;
5) Export of "Title+Package" record: No Package fields to export, ** All * *Title fields to export;

cc:  **

Viacheslav KolesnykNovember 17, 2022 at 11:01 AM

It's needed to add verification of package/title fields presence in `EHoldingsCsvFileWriter` before writing anything to file.

NullPointer is appearing in the following places:

Must be covered by unit-tests.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Nolana (R3 2022) Bug Fix

RCA Group

Missing integration/unit test

Affected releases

Nolana (R3 2022)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 17, 2022 at 8:12 AM
Updated January 5, 2023 at 11:13 PM
Resolved November 29, 2022 at 11:11 AM
TestRail: Cases
TestRail: Runs