-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QGIS cannot open a file if the filepath contains ".target" #59106
Comments
I was able to reproduce this on macOS QGIS LTS version `QGIS version Active Python plugins |
I can also confirm the issue both using QGIS LTR 3.34.11 and QGIS 3.38.3 (from OSGeo4W) when the file path\name contains the ".target" string. The issue occurs either trying to add the layer via drag&drop:
or using the Data Source Manager -> Raster: (notice the ".tar/get" string instead of ".target" in the error messages") The layer is not displayed in the QGIS Browser. It looks like the issue doesn't occur using QGIS 3.39.0-Master bb9a716: not sure if it is due to a fix only merged in master and not backported or to some difference in the libraries used by qgis-dev from OSGeo4W. The issue actually occurs when the file path\name contains at least one of the following strings: ".tar", ".zip", ".gz", ".tgz". The issue didn't occur using QGIS 3.22. |
This was fixed by #58240 |
I think we should close this -- it's not an issue with 3.40, and it's not enough to backport just #58240 alone. |
What is the bug or the crash?
When I try to open any raster (specifically geoTIFF in this case) in QGIS I will get this error message
Invalid Data Source: /home/user/Desktop/folder.test.target/raster.tif is not a valid or recognized data source.
However when I change the path by excluding the ".target" the file will open without a problem.
/home/user/Desktop/folder.test/raster.tif
/home/user/Desktop/folder.test-target/raster.tif
Steps to reproduce the issue
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Active Python plugins
coordinate_capture
0.2
latlontools
3.6.3
BoundingBox
2.1
db_manager
0.1.20
processing
2.12.99
MetaSearch
0.3.6
Supported QGIS version
New profile
Additional context
Tested it on different computers with slightly different QGIS versions. I am running Ubuntu 22.04 LTS on one computer and Ubuntu 24.04 LTS on another. Also the another computer I tested on it does have only BoundingBox plugin installed so I think it probably isn't plugin issue.
The text was updated successfully, but these errors were encountered: