ciur / papermerge

Open Source Document Management System for Digital Archives (Scanned Documents)
https://papermerge.com
Apache License 2.0
2.55k stars 267 forks source link

[UI] Extracting pages shows wrong node list on the target #563

Closed ciur closed 11 months ago

ciur commented 12 months ago

Docker Image: 3.0dev15

Steps to Reproduce:

In order to reproduce the bug, open UI in two pane mode: viewer on the left and commander on the right. Set as target folder as some folder in home. For better illustration make sure the target folder is empty but inbox folder has lots of nodes (documents or folders). In left panel (which has as root - inbox folder) open some document from the inbox. On the right panel, open target folder (make sure it is empty). Select some pages from the document viewer (in left penel) and drop them on the right panel (commander). Check "extract each page into separate document".

Expected: The target folder show extracted pages Actual: The target folder now shows all nodes (documents/folders) of the inbox!

Discussion: The "messed up node list on the target" is just frontend issue as after refreshing (in UI) the target folder - it will contain the correct file list (extracted pages).

extract-pages-messes-up-target-folder-node-list

ciur commented 12 months ago

Continuing the above scenario, if you select all but one page and extract them, the result is as in picture below :

Screenshot from 2023-12-02 07-46-08