eXist-db / xst

Command line tool to interact with exist-db instances
https://npmjs.com/@existdb/xst
MIT License
17 stars 4 forks source link

False positive message when command failed #114

Closed daliboris closed 9 months ago

daliboris commented 1 year ago

What happened?

If I use xst to upload files to the colletion on eXist-db and the main collection don't exist, the upload fails and the failed steps are described in the verbose log.

But the last line of the output claims that everything went fine: created 1 collections and uploaded 1 resources in 144ms

System Information

Build: eXist-6.0.1 (51506fc97a9e5bb55fdea71fc76def2c9d402886)
Java: 1.8.0_292 (Azul Systems, Inc.)
OS: Windows 10 10.0 (amd64)

Relevant shell output

SET project=mordigital
xst upload -i "*.xml" -v ../local/data/ /db/apps/%project%-data/data/dictionaries --config %project%.xstrc

target exists: false
Uploading: ../local/data/ to /db/apps/mordigital-data/data/dictionaries
Server: https://localhost:8443
User: mordigital
Include:
 *.xml

Uploading directory tree
✘ /db/apps/mordigital-data/data/dictionaries/ could not be created! Reason: Failed to invoke method createCollection in class org.exist.xmlrpc.RpcConnection: No write permissions for /db/apps
✘ morais1_pages 157_159.xml could not be created! Reason: Failed to invoke method parseLocal in class org.exist.xmlrpc.RpcConnection: collection /db/apps/mordigital-data/data/dictionaries not found!
created 1 collections and uploaded 1 resources in 144ms
line-o commented 1 year ago

Thanks for reporting this @daliboris I will see to give this is a high priority and fix it soon.

github-actions[bot] commented 9 months ago

:tada: This issue has been resolved in version 1.9.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: