You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When a completed document is reopened, the verification screen uses a cursor value beyond the document’s total page count and continuously requests a non-existent page.
For a 7-page document, the frontend repeatedly sends:
GET /documents/{id}/pages?from=8&limit=5
The backend returns 200 OK with an empty items array, but the frontend immediately repeats the same request.
The expected navigation behavior was discussed with the Product Owner. When a completed document is opened, the verification screen should open the first page with a non-success status. If there are no such pages, it should open the last document page.
Preconditions
The document has the done status.
The document contains at least one page with a non-success status.
Steps to Reproduce
Open the Documents page.
Open the completed document.
Open DevTools → Network.
Observe the page displayed on the verification screen.
Observe requests to /documents/{id}/pages.
Expected Behavior
The verification screen opens the first page with a non-success status.
If the document has no pages with a non-success status, its last page is opened.
The frontend does not request a page number greater than the document’s total page count.
Requests are not repeated indefinitely when the API returns an empty items array.
Actual Behavior
The screen displays “Preparing the next page”.
The frontend continuously sends GET /documents/{id}/pages?from=8&limit=5.
Description
When a completed document is reopened, the verification screen uses a cursor value beyond the document’s total page count and continuously requests a non-existent page.
For a 7-page document, the frontend repeatedly sends:
GET /documents/{id}/pages?from=8&limit=5
The backend returns 200 OK with an empty items array, but the frontend immediately repeats the same request.
The expected navigation behavior was discussed with the Product Owner. When a completed document is opened, the verification screen should open the first page with a non-success status. If there are no such pages, it should open the last document page.
Preconditions
Steps to Reproduce
Expected Behavior
Actual Behavior
Environment
Additional Information
The expected behavior was discussed with the Product Owner:
chrome_NZkiPlwRfM.mp4