BritishGeologicalSurvey / pyagsapi

pyagsapi - An AGS Utilities API with AGS v4.x Schema Validation & Converter for .ags<-->.xslx files
https://britishgeologicalsurvey.github.io/pyagsapi/
GNU Lesser General Public License v3.0
12 stars 2 forks source link

Convert reports success even if file isn't converted. #75

Open KoalaGeo opened 1 year ago

KoalaGeo commented 1 year ago

41563.ags has duplicate headers so is unreadable by the python library.

Running this through the converter

curl -X 'POST' \
  'http://localhost:5000/convert/' \
  -H 'accept: application/x-zip-compressed' \
  -H 'Content-Type: multipart/form-data' \
  -F 'files=@41563.ags' \
  -F 'sort_tables=false'`

== 200 response

content-disposition: attachment; filename=results.zip 
 content-type: application/x-zip-compressed 
 date: Mon,27 Feb 2023 09:59:12 GMT 
 server: uvicorn 
 transfer-encoding: chunked `

Zip with conversion log: image

Expected Behavior

Report file is unreadable and don't return a zip.