noobaa-core icon indicating copy to clipboard operation
noobaa-core copied to clipboard

[NSFS] Fix list objects ordering to follow AWS S3

Open tangledbytes opened this issue 5 months ago • 0 comments

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:

  1. ./node_modules/.bin/mocha src/test/unit_tests/test_namespace_fs.js
  2. ./node_modules/.bin/jest src/test/unit_tests/jest_tests/js_utils.test.js
  • [ ] Doc added/updated
  • [x] Tests added

tangledbytes avatar Sep 03 '24 08:09 tangledbytes