if s has leading zero, then NumberUtils will treat s as Octal format. this behavior is not what PODAAC expected.
Hence, implemented an util function to remove leading zeros
Overview of work done
Implemented util function to remove leading zeros
use the util function to remove leading zero before NumberUtils.createInteger
Handle exception and change the MetadataAggregator to throw exception while cycle or pass are missing.
Overview of verification done
re-produce the un-wanted behavior in SNDBX
tested pass value with leading zero and verify pass value through eathdata client search
tested both cycle and pass values with leading zeros and UMMG are produced as expected
tested missing pass value and MetadataAggregator will throw exception
Yes, this is the PR/branch deployed to swot-sit.
I have addressed as much commented code as I could - so far. Could you please take another round of review? Thank you!
Ticket: PODAAC-5219
Description
NumberUtils.createInteger(String s)
if s has leading zero, then NumberUtils will treat s as Octal format. this behavior is not what PODAAC expected. Hence, implemented an util function to remove leading zeros
Overview of work done
Implemented util function to remove leading zeros use the util function to remove leading zero before NumberUtils.createInteger Handle exception and change the MetadataAggregator to throw exception while cycle or pass are missing.
Overview of verification done
Tested in SIT:
N/A
PR checklist:
See Pull Request Review Checklist for pointers on reviewing this pull request