Cursor does not work properly in new searchv2 #116

Closed
opened 2025-12-28 18:00:13 +00:00 by sami · 2 comments
Owner

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:
Image Image
  • ObjectsPerPage=2 – all pages work fine:
Image
  • ObjectsPerPage=3 – first page works, but the last one won't load:
Image Image
  • ObjectsPerPage=4 – one page works fine:
Image

Expected Behavior

everything works

Context

REST API NeoFS v0.11.1 (t5)
panel-fs-neo-org

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: <img width="375" alt="Image" src="https://github.com/user-attachments/assets/4e4be238-a426-4870-8f64-86984a7be078" /> <img width="375" alt="Image" src="https://github.com/user-attachments/assets/b102b588-d652-4535-8cfa-05c63d1a5fcf" /> - `ObjectsPerPage=2` – all pages work fine: <img width="375" alt="Image" src="https://github.com/user-attachments/assets/78f805ba-4424-4128-a6eb-a27259a73492" /> - `ObjectsPerPage=3` – first page works, but the last one won't load: <img width="375" alt="Image" src="https://github.com/user-attachments/assets/5f5a6304-ecce-4167-933a-6ea6c7bad7fd" /> <img width="375" alt="Image" src="https://github.com/user-attachments/assets/b102b588-d652-4535-8cfa-05c63d1a5fcf" /> - `ObjectsPerPage=4` – one page works fine: <img width="375" alt="Image" src="https://github.com/user-attachments/assets/b7a1f8b4-d5c8-494e-adfc-7858383f50d8" /> ## Expected Behavior everything works ## Context REST API NeoFS v0.11.1 (t5) [panel-fs-neo-org](https://github.com/nspcc-dev/panel-fs-neo-org)
sami 2025-12-28 18:00:13 +00:00
  • closed this issue
  • added the
    bug
    S4
    I4
    U1
    labels
Author
Owner

@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.

@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.
Author
Owner

@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

@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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-rest-gw#116
No description provided.