-
Notifications
You must be signed in to change notification settings - Fork 65
Description
As of today, users at the BGS are unable to upload a new project to the Merging maps server using the QGIS plugin. The error arises from the following sequence:
- Create new project
- Add our field data capture layers and styles
- Click "Create a new Mergin Maps project"
- Click "Use current QGIS project as is"
- Provide a project name
- Click "Finish"
The progress bar shows that the upload progresses to 100% but then a QGIS dialog containing the following is displayed:
Client error: Detail: Unsupported file type detected: _field_data_capture/styles/_lnk_rock_project.qml. Please remove the file or try compressing it into a ZIP file before uploading.
HTTP Error: 400
URL: https://app.merginmaps.com/v1/project/push/finish/8b2316f9-6d65-46c7-876a-9539a0e20e40
Method: POST
I can reproduce this issue artificially by created a new, empty project and adding this one file to the project folder. Uploading this minimal project raises the error above.
If this file is removed from the project it will upload successfully. Note that there are many QML files in our project and the others are all okay. The content of this file has not changed for several months and has been uploaded with many projects over the past few months.
The most recent new project created by a BGS geologist was about 7 days ago. I noticed that your server code was tagged with a new release about three days ago following this #510 PR (related to the /project/finish endpoint, though I cannot see the issue that is related to as it is on your server-private repository.
I have attached the file that is creating the issue, though I have had to change the extension from .qml to .txt to allow it to be uploaded to github. Added: the problem can be reproduced with an empty project containing this text file as it is named below, i.e. it is not that it is a QML file that is the issue.