If we are parsing a URL that has been urldecoded and we have a comma in the path - that will trigger the split, and thus the resulting URL will be malformed. Need to check out if there is a pagination standard, and see if we can find a library/snippet to do this for us, so we don't have to hand-roll this kind of logic.
This was uncovered by https://github.com/pederhan/harbor-cli/issues/34.
This happens due to the way pagination headers are parsed:
https://github.com/pederhan/harborapi/blob/27900ab5e98c6dc2b7dbb04212414f4edc8d988e/harborapi/utils.py#L203-L210
If we are parsing a URL that has been urldecoded and we have a comma in the path - that will trigger the split, and thus the resulting URL will be malformed. Need to check out if there is a pagination standard, and see if we can find a library/snippet to do this for us, so we don't have to hand-roll this kind of logic.