mirror of
https://github.com/nspcc-dev/neofs-rest-gw.git
synced 2026-03-01 04:29:14 +00:00
Cursor does not work properly in new searchv2 #116
Labels
No labels
I2
I3
I3
I4
S2
S3
S3
S4
U0
U1
U2
U3
U3
U3
U4
blocked
bug
config
documentation
enhancement
feature
go
help wanted
question
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-rest-gw#116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mike-petrov on GitHub (May 8, 2025).
Originally assigned to: @smallhive on GitHub.
When I use our new search v2, sometimes it doesn't process the cursor it created. I suspect it depends on the name of the file, and especially on where it stands.
Current Behavior
For the example, I'm using 4 objects in a container (888.jpg, IMG_1123.jpeg, cat.jpg, errfwre.jpg) and locally in the panel I can change the limit of objects on the page:
ObjectsPerPage=1– first three pages work, but the last one won't load:ObjectsPerPage=2– all pages work fine:ObjectsPerPage=3– first page works, but the last one won't load:ObjectsPerPage=4– one page works fine:Expected Behavior
everything works
Context
REST API NeoFS v0.11.1 (t5)
panel-fs-neo-org
@roman-khimov commented on GitHub (May 8, 2025):
Cursor is passed as is from NeoFS to REST user in this case, JSON shouldn't affect it. However it certainly works at the NeoFS level as well. Needs to be checked.
@mike-petrov commented on GitHub (May 12, 2025):
Turns out the problem was that the parameter is passed in url and it had to be encoded, solved by adding the function
encodeURIComponent()\cc @smallhive