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

STAC browser - relative urls not supported: Protocol "" is uknown #59406

Closed
1 of 2 tasks
ttomasz opened this issue Nov 11, 2024 · 6 comments
Closed
1 of 2 tasks

STAC browser - relative urls not supported: Protocol "" is uknown #59406

ttomasz opened this issue Nov 11, 2024 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers STAC Related to SpatioTemporal Asset Catalog

Comments

@ttomasz
Copy link

ttomasz commented Nov 11, 2024

What is the bug or the crash?

When STAC catalog has relative URLs to its children then the browser throws error Protocol "" is unknown.

I also see in debugging tools (F12) that it tries to make request to the URL exactly as it's presented i.e. without trying to resolve the relative URL based on URL from connection.

Steps to reproduce the issue

  1. Add connection to STAC catalog that has relative URLs e.g.: https://pub-a8cc9feb8bdc4fdf9cbf37078dc21b8e.r2.dev/catalog.json.
  2. Try to open the collection by clicking the little arrow

Versions

QGIS version3.40.0-Bratislava
QGIS code branchRelease 3.40
 
Libraries
Qt version5.15.10
Python version3.11.9
GDAL/OGR version3.10.0
PROJ version9.5.0
EPSG Registry database versionv11.016 (2024-08-31)
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.47.0
PDAL version2.8.1
PostgreSQL client versionunknown
SpatiaLite version5.1.0
QWT version6.1.5
QScintilla2 version2.14.1
OS versionKDE Flatpak runtime
 
Active Python plugins
QuickOSM2.2.3
cartogram33.1.5
felt3.1.5
qgis_stac1.1.2
AnotherDXF2Shape1.3.2
GTFS_Loader1.0.0
zoom_level0.3.1
qgis-maptiler-plugin3.3.2
AnimateOsm0.3.0
processing2.12.99
db_manager0.1.20
grassprovider2.12.99
MetaSearch0.3.6

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

Relative URLs may not be recommended but they are allowed according to the specification and work in STAC Web Browser: https://radiantearth.github.io/stac-browser/#/external/pub-a8cc9feb8bdc4fdf9cbf37078dc21b8e.r2.dev/catalog.json

@ttomasz ttomasz added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 11, 2024
@wonder-sk
Copy link
Member

Can you try with the nightly builds please? It should be already fixed by #59199

@wonder-sk wonder-sk added the STAC Related to SpatioTemporal Asset Catalog label Nov 11, 2024
@uclaros
Copy link
Contributor

uclaros commented Nov 11, 2024

Automatic backporting to 3.40 failed though, I'll do a manual back port

@agiudiceandrea agiudiceandrea added the Feedback Waiting on the submitter for answers label Nov 11, 2024
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Nov 26, 2024
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 25, 2024
@dwsilk
Copy link

dwsilk commented Jan 27, 2025

@uclaros I am on QGIS 3.40.2 released late December and this is still an issue, was the manual backport to 3.40 not completed?

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Jan 27, 2025
@uclaros
Copy link
Contributor

uclaros commented Feb 5, 2025

@uclaros I am on QGIS 3.40.2 released late December and this is still an issue, was the manual backport to 3.40 not completed?

Unfortunately I neglected to do the backport on time. Here's the PR for a backport to 3.40.4 hopefully :) #60469

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! Feedback Waiting on the submitter for answers STAC Related to SpatioTemporal Asset Catalog
Projects
None yet
Development

No branches or pull requests

5 participants