Invalid field name with unsupported characters accepted; project uploads but mobile app hangs when opening
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
Riproduci il problema nel QGIS plugin creando un campo denominato Photo_: con un Attachment widget, configurando il pattern degli allegati mostrato e sincronizzando il progetto. Inizia tracciando dove vengono convalidati i nomi dei campi o gli schemi del progetto prima della sincronizzazione. Il completamento dovrebbe impedire l’uso di nomi non supportati prima della sincronizzazione oppure segnalarlo chiaramente, con una copertura per i caratteri riportati e un comportamento che eviti di produrre un progetto mobile inutilizzabile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
A layer field whose name contains invalid / unsupported characters (tested: Photo_: — characters like : | ? " *) is not rejected or warned about by the QGIS plugin. The project syncs successfully to the server. When the project is downloaded in the Mergin Maps mobile app (Android/iOS) and opened, the app stays in an indefinite “opening” state (spinner) until forcibly killed. This creates a hidden data integrity / usability issue: plugin allows creation + upload of a schema that mobile cannot handle gracefully.
Environment
PROD
Application (+ app version, build, operating system)
- QGIS version: 3.40.5-Bratislava
- Plugin version: 2025.3.3
- Desktop OS: macOS Sequoia 15.6 (reported)
- Mobile platforms: Android + iOS (both hang)
Steps to reproduce
- In QGIS, create a new Mergin Maps project.
- Add a new layer and create a text field named exactly:
Photo_:(an example containing a colon; other disallowed characters like| ? " *likely similar). - Set the field’s widget to Attachment.
- Open Mergin Maps plugin settings and define a custom attachment naming pattern referencing that field, e.g.:
@layer_name + '-' + @mm_username + '-' + format_date(now(),'ddMMyy_hhmm') - Sync the project to the server — sync completes without validation error.
- On mobile (Android or iOS), download the project.
- Attempt to open the project.
Actual results
- QGIS plugin shows no validation warning about the field name.
- Sync succeeds; project is present on server.
- Mobile app: after tapping the project to open, it remains stuck “opening” (spinner) indefinitely; no user-facing error, necessitating force-closing the app.
- Project content never loads.
Expected results
- Plugin should proactively validate field names (especially for layers with attachment widgets) and block or warn if unsupported characters are present before allowing sync.
- Either:
- (Blocking) Prevent sync until offending field names are renamed, listing all invalid characters detected.
- (Sanitizing) Automatically map / escape invalid characters (with a clear transformation note) so mobile can open the schema.
- Mobile app should not hang; if schema is invalid it should display a clear error (e.g., “Project schema contains unsupported field name: ‘Photo_:’”).
Screenshots or logs
Conclusion
Created by GitHub Copilot and supervised by a human test analyst.
- Lingua principale
- Python
- Stelle
- 45
- Fork
- 21
- Merge medio
- 3g 13h
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MerginMaps/qgis-plugin
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
MerginMaps/qgis-plugin#953 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MerginMaps/qgis-plugin#848 · 1 commento ·
-
Project history and Remove locally fail in projects with long paths on Windows (> 260 characters)Apertabug windows
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
MerginMaps/qgis-plugin#967 ·
-
View changes and schema check use the wrong base copy for GeoPackages in subfoldersForse già presa @harminius l’ha presa 6 giorni fa. Apertabug
MerginMaps/qgis-plugin#963 · 1 assegnatario ·
-
Error when syncing project.Forse già presa @harminius l’ha presa 7 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 54/100
MerginMaps/qgis-plugin#960 · 2 commenti · 1 assegnatario ·
Tutte le issue di MerginMaps/qgis-plugin
Issue simili
-
HassSetVolumeRelative reports no targets (empty success list) although the volume was changedApertaintegration: media_player
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
home-assistant/core#193344 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
daniel-ospina/tortoise#13607 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno