-
Notifications
You must be signed in to change notification settings - Fork 75
Labels
Milestone
Description
Description
If a space is located in the "middle" of a custom photo name string, the mobile app encounters a synchronization error when trying to sync to the server. This issue occurs when the space is not at the beginning or end of the string, but at the start of the filename.
Environment
Staging
Application (+ app version, build, operating system)
- Android mobile app, replicable also on iOS devices
- App build: 687611
Steps to reproduce
- Open QGIS with Mergin Maps plugin
- Configure custom photo name setting with a string containing a space at the start of the filename, for example:
'sa ni*tized/' + ' f<i>l?e:n\"a:m|e.ext" ' + '-' || now() - Open Mergin Maps mobile app on a mobile device
- Record a feature with a photo using this custom naming configuration
- Attempt to synchronize the project to the server
Actual results
- Synchronization fails when space appears at the start of the filename of the custom photo name string
- Example failing case:
' f - Error occurs during sync process to server
Expected results
- Custom photo name should be properly sanitized when the file name starts with a space
- All valid custom photo name configurations should sync successfully
Screenshots or logs
Conclusion
Created by GitHub Copilot and supervised by a human test analyst.