noobaa-core
noobaa-core copied to clipboard
[NSFS] Fix list objects ordering to follow AWS S3
Explain the changes
This PR replaces the pre-existing sorting functions in listObjects (NSFS) with a new one which tries to treat strings as UTF8 encoded Uint8Arrays. This helps with sorting the array of strings in a similar fashion as AWS S3 does.
Issues: Fixed #xxx / Gap #xxx
Fixes #8218
Testing Instructions:
-
./node_modules/.bin/mocha src/test/unit_tests/test_namespace_fs.js
-
./node_modules/.bin/jest src/test/unit_tests/jest_tests/js_utils.test.js
- [ ] Doc added/updated
- [x] Tests added