Skip to content
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

projects saved inside a GPKG do not show in browser if the datasource is a network drive #33057

Closed
gioman opened this issue Nov 25, 2019 · 13 comments · Fixed by #33265
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! QGIS Browser

Comments

@gioman
Copy link
Contributor

gioman commented Nov 25, 2019

I have a GPKG with a project saved in it:

if the GPKG is in "c" the browser shows correctly the project and the layers.

If the datasource is in a network drive (i.e. \vboxsrv) mapped as a drive letter then the project does not show, but layers do (and they load ok).

Tested on 3.10 and master on Windows.

@gioman gioman added Bug Either a bug report, or a bug fix. Let's hope for the latter! QGIS Browser labels Nov 25, 2019
@pigreco
Copy link
Sponsor Contributor

pigreco commented Nov 25, 2019

#32689 (comment) - 2.3) same problem

@elpaso
Copy link
Contributor

elpaso commented Nov 27, 2019

@gioman windows only?

@gioman
Copy link
Contributor Author

gioman commented Nov 27, 2019

windows only?

@elpaso I have observed it only on Windows as at the moment I have no way to test a network drive on Linux.

@elpaso
Copy link
Contributor

elpaso commented Nov 27, 2019

@gioman my bet is that on Linux it will work smoothly, as usual :)

@gioman
Copy link
Contributor Author

gioman commented Nov 27, 2019

@gioman my bet is that on Linux it will work smoothly, as usual :)

@elpaso mine too :)

@elpaso
Copy link
Contributor

elpaso commented Nov 28, 2019

I've tested on windows with mixed results: I've been able to reproduce the issue but only once, the first time I tried. Then I quit QGIS and retried several times and the project was correctly visible in the browser. I really don't know what's possibly going wrong.
I checked also for phantom .wal and .shm but the directory was clean.

@rouault do you have any clue about what could be the root cause of this issue?

@PedroVenancio
Copy link
Contributor

Hi,

Looking here at this issue, it's not necessary to be in a network drive. Just putting the GPKG file in another partition (D:), the project becomes hidden. The same GPKG in C:\ shows the Project.

gpkg

However, opening from Project -> Open From -> GeoPackage... it opens the project from the geopackage saved at C:\ or at D:.

Going thru Data Source Manager -> GeoPackage, the project is not listed in none of the drives, but here I believe that's just as it should be, because it is not supposed to open a project from data source manager, right?

elpaso added a commit to elpaso/QGIS that referenced this issue Dec 6, 2019
@elpaso
Copy link
Contributor

elpaso commented Dec 6, 2019

Can someone please test this patch? A standalone windows build will be available in about one hour at: https://github.com/elpaso/QGIS/commit/3dcbde9c4df561edd9f85b1ef4246cf61096b76a/checks?check_suite_id=345563237 (Artifact link at the top right)

@gioman
Copy link
Contributor Author

gioman commented Dec 8, 2019

Can someone please test this patch?

@elpaso works!

@PedroVenancio
Copy link
Contributor

Confirmed also here @elpaso, it works!

@gioman
Copy link
Contributor Author

gioman commented Dec 8, 2019

A standalone windows build

@elpaso by the way I don't know what mumbo-jumbo you did to create this master build that does not need any install, but it is a very convenient way to test on Windows/master, thanks!

@elpaso
Copy link
Contributor

elpaso commented Dec 8, 2019

Np, that's all explained here: https://github.com/qgis/QGIS/tree/master/ms-windows/mxe No python unfortunately, but for some kind of testing it's just fine.

@pedrogeo
Copy link

Hi,

It seems to works as gioman and PedroVenancio said but I just have test it with the nightly build of Qgis today and the issue remains.
Is it expected that this issue will be resolved in 3.12 version ?

Pierre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! QGIS Browser
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants