formkiq / formkiq-core

A full-featured Document Layer for your application, providing the functionality of a flexible document management system, including storage, discovery, processing, and retrieval. Deploys directly into your Amazon Web Services Cloud. 🌟 Star to support our work!
https://www.formkiq.com
Other
112 stars 17 forks source link

Patching documents in parallel to change their folder makes some disappear #282

Closed mfriesen closed 1 month ago

mfriesen commented 1 month ago

When you POST/PATCH multiple documents in parallel to move them from a folder to another (modify their path) while the new folder doesn't exists , some documents disappear from the console (and from the /folders search).

The process is as follow: Create two documents in the same folder

curl -X 'POST' \ 'https:///documents?siteId= \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "path": "ABCD00000000/doc1.pdf", "isBase64": true, "content": "...", }'

curl -X 'POST' \ 'https://documents?siteId= \ -H 'accept: application/json' \ -H 'Authorization: {APIKEY}' \ -H 'Content-Type: application/json' \ -d '{ "path": "ABCD00000000/doc2.pdf", "isBase64": true, "content": "..", }'

GET /folders only Returns only one document