Bug report #4350

Handle HTML content in RSS feed for OpenSearch results

Added by Augustus Kling almost 9 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:GUI
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:14287

Description

QGIS should be able to display RSS feeds properly for WMS searches. The release notes for QGIS 1.5 state that QGIS should be able to query OpenSearch enabled services.

Searching for services does work and QGIS is able to display the search results but displays HTML tags to the user instead of rendering them as a browser would do. Rendering HTML seems to work for some tags though when the description column is hovered with the mouse.

Steps to reproduce (QGIS 1.7):
  • Open Settings › Options… › Network from the menu
  • Put a search service in the box labelled “WMS search address” such as http://www.mapmatters.org/search?search=%1&bbox={geo:box?}&page={startPage?}&count={count?}&format=rss
  • Search a WMS layer by clicking: Layer › Add WMS layer… › Server Search
  • Put a search string and click Search. The query “landuse” yields some results for the mentioned search server.
  • The column Description shows HTML code instead of the rendering.
  • Hover the column Description with the mouse and see that QGIS renders some tags such as <b> or <br> in the tooltip.
Expected behavior:
  • The column Description shows a rendering similar to what a browser would show instead of presenting the tags.
  • When a feed refers to images, these are rendered within the cell in the Description column to allow for easy reasoning on the suitability of the search result.
Further things noted:
  • Double-clicking the search results should do the same as clicking the button “Add selected row to WMS list” below the search results
  • After s WMS was added (is visible in the layers tab), the parameters of the URI from the search result should have an effect. Choosing a layer automatically would be sensible.

Note that you need to replace {searchTerms} with %1 in the search server URI to make parameter replacement work in QGIS. According to http://www.opensearch.org/Specifications/OpenSearch/1.1 QGIS should replace the string {searchTerms} instead of %1.

The feed mentioned above does render nicely in Firefox or Akregator for example.

History

#1 Updated by Tim Sutton almost 9 years ago

  • Target version changed from Version 1.7.1 to Version 1.7.2

#2 Updated by Giovanni Manghi over 8 years ago

  • Target version changed from Version 1.7.2 to Version 1.7.3

#3 Updated by Giovanni Manghi over 8 years ago

  • Target version changed from Version 1.7.3 to Version 1.7.4

#4 Updated by Paolo Cavallini over 8 years ago

  • Crashes QGIS or corrupts data set to No
  • Affected QGIS version set to master
  • Target version changed from Version 1.7.4 to Version 1.8.0

#5 Updated by Paolo Cavallini almost 8 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

#6 Updated by Jürgen Fischer about 6 years ago

  • Target version changed from Version 2.0.0 to Future Release - Lower Priority

#7 Updated by Giovanni Manghi over 3 years ago

  • Easy fix? set to No
  • Regression? set to No

#8 Updated by Giovanni Manghi over 1 year ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF