Login as administrator
Go to https://uat.openlmis.org/#!/administration/isa/manage
Click Export button
Get 500 Whitelabel Error Page
Reproduction steps 2:
call /api/idealStockAmounts?format=csv endpoint
Which test case is associated with this bug?
This bug is coming up because the ISA search, for the CSV download, only returns the processing period id and name, and during export, the durationInMonths is trying to be calculated, which needs start and end date. The fix is to either have IdealStockAmountCsvModel not do a full object export, or have the ISA search return the start and end dates for the processing periods.
Neither reproduction steps 1 nor 2 still yield an error. Because they result in proper behavior, this ticket may be considered Done.