-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
WCS tab in Data Source Manager broken (both 3.26 and master)? #49513
Comments
i can confirm that this is broken with 3.26.2 on OpenBSD. |
i can add some new connections via the explorer, they show in the wcs tab in the source manager, and i can connect to them. Adding a new connection in the source manager fails, as in "doesnt show up in the connection list". |
the "working" WCS connections added by right clicking on WCS in the explorer looks like this in QGIS3.ini:
the ones added via the wcs tab in the data source manager have a weird
|
somehow i think it's a regression from a bit in #48192 but i havent dug deeper yet. |
also i have a weird if i manually edit QGIS3.ini, adding "-wcs" suffix to the broken connection, it shows as "qgis" in the selector. So, to my understanding, when adding a new WCS connection via the data source manager, an extra "connections-\qgis" is added as a prefix in the settings group. Not that if that matters, this is on OpenBSD but would probably be the same on linux or windows ? |
QGIS/src/gui/qgsowssourceselect.cpp Lines 273 to 285 in f425778
QGIS/src/gui/qgsnewhttpconnection.cpp Line 41 in 5718203
Another leftover from #48192
which is a non-breaker as there is not a / at beginning
|
wip patch being tested here, thanks to @nicogodet : Index: src/gui/qgsowssourceselect.cpp
--- src/gui/qgsowssourceselect.cpp.orig
+++ src/gui/qgsowssourceselect.cpp
@@ -273,7 +273,7 @@ QgsNewHttpConnection::ConnectionType connectionTypeFro
void QgsOWSSourceSelect::mNewButton_clicked()
{
const QgsNewHttpConnection::ConnectionType type = connectionTypeFromServiceString( mService );
- QgsNewHttpConnection *nc = new QgsNewHttpConnection( this, type, "/qgis/connections-" + mService.toLower() + '/' );
+ QgsNewHttpConnection *nc = new QgsNewHttpConnection( this, type, mService.toUpper() );
if ( nc->exec() )
{
@@ -287,7 +287,7 @@ void QgsOWSSourceSelect::mNewButton_clicked()
void QgsOWSSourceSelect::mEditButton_clicked()
{
const QgsNewHttpConnection::ConnectionType type = connectionTypeFromServiceString( mService );
- QgsNewHttpConnection *nc = new QgsNewHttpConnection( this, type, "/qgis/connections-" + mService.toLower() + '/', mConnectionsComboBox->currentText() );
+ QgsNewHttpConnection *nc = new QgsNewHttpConnection( this, type, mService.toUpper(), mConnectionsComboBox->currentText() );
if ( nc->exec() )
{ |
backport fix for qgis/QGIS#49513
What is the bug or the crash?
After adding a new 'WCS connection' in the dialog, it does not show up in the 'connections dropdown'.
When you add a new connection via the browser, it works though.
Also: when you add it, and give it a name 'test', you do not see it, but if you start over with making a new one, you are asked: 'Should the excisting connection test be overwritten?'..
So it look's like it IS there.
Steps to reproduce the issue
Use the following public WCS url to reproduce (tested here on a recent master and 3.26)
https://geodata.nationaalgeoregister.nl/ahn3/wcs?request=GetCapabilities&service=WCS:
Another observation: when you added the WCS connection successfully via the Browser, all is working fine: 4 layers are shown, and you can load one (please zoom in A LOT on EPSG:28992)
BUT (!) when you open that connection in the Dats Source Dialog, the name is in the dropdown, but if you want to 'edit' the connection, the URL is emtpy?
Versions
My QGIS 3.22 is working FINE !
My QGIS 3.24 is working FINE !
BUT My QGIS 3.26 has this issue:
And my Master has this issue:
AND
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: