Skip to content
Snippets Groups Projects
Commit ee31ec30 authored by Juergen Neumann's avatar Juergen Neumann
Browse files

wip - debug upload error

parent 0c32b178
No related branches found
No related tags found
No related merge requests found
Pipeline #19840 failed
......@@ -10,11 +10,14 @@ sleep 1
declare -a PDFS=('deploy/tests/scansmpl.pdf' 'deploy/tests/true_PDF.pdf' 'deploy/tests/tesseract.pdf')
## get WSID of user's private workspace
URL='access-control/user/workspace'
WSID="$( curl -sS -H "Cookie: JSESSIONID=${SESSIONID}" -H "Accept: application/json" "${HOST}/${URL}" | jq .id )"
if [ -z "${WSID}" ]; then
echo "ERROR! Empty WSID. Upload aborted."
exit 1
else
echo "INFO: Workspace ID=${WSID}"
fi
URL="upload/%2Fworkspace-${WSID}"
for pdf in ${PDFS[@]}; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment