gvSIG bugs #3592

java.net.URISyntaxException in GetLegendGraphic request

Added by Antonio Falciano about 9 years ago. Updated over 8 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:José Badía
Category:WMS
Target version:2.3.0-2409 (rev. org.gvsig.desktop-2.0.115)
Severity:Minor Add-on version:
gvSIG version:2.2.0 Add-on build:
gvSIG build:2313 Add-on resolve version:
Operative System: Add-on resolve build:
Keywords: Proyecto:
Has patch: Hito:
Add-on name:Unknown

Description

Steps in order to reproduce the bug:
  • create a view defined in EPSG:4326;
  • add the world borders as reference layer;
  • for instance, zoom on Sicily and set the view scale as 1:50.000;
  • connect to http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map WMS service;
  • choose the "[CB.IGM25000.33] Copertura regioni zona WGS84-UTM33" layer
  • choose "image/png; mode=8bit" ad image format, EPSG:4326, "text/plain" and click on Ok.
  • wait until you're bored and then close gvSIG.

Result: a java.net.URISyntaxException in GetLegendGraphic request occurs (see gvSIG.log in attachment) due to an illegal char (space) in the request URI (image format). Furthermore, in the same URI the layer name is truncated (CB.IGM25000. instead of CB.IGM25000.33).

java.net.URISyntaxException in GetLegendGraphic request.zip - gvSIG.log and tmp-andami folder (45.9 KB) Antonio Falciano, 06/11/2015 05:57 PM

Associated revisions

Revision 4174
Added by José Badía over 8 years ago

refs #3592
removing whitespaces from url

History

#1 Updated by Álvaro Anguix over 8 years ago

  • Target version set to 98
  • Assignee set to José Badía

#2 Updated by José Badía over 8 years ago

  • Status changed from New to Awaiting response

Problem with the URI is fixed, but nothing is displayed in the view.

I've tried to follow the steps on description but I can't see nothing in the new layer loaded (Am I doing something wrong or is this the correct result?)

These are the petitions I get using gvSIG
  • GetMap
    http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map&&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=CB.IGM25000.33&CRS=EPSG:4326&BBOX=5.21068,5.21068,19.8652,19.8652&WIDTH=200&HEIGHT=200&FORMAT=image/png;%20mode=8bit&STYLES=default&TRANSPARENT=TRUE&EXCEPTIONS=XML
    
  • GetLegendGraphic
    http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map&version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=CB.IGM25000.&format=image/png;%20mode=24bit&STYLE=default
    

Following this links on a browser we can see that it gets a transparent image
Besides it looks that it works, I think that something could be wrong because gvSIG toolbar shows a "Drawing message" continuosly.

#3 Updated by Antonio Falciano over 8 years ago

Hi José,
the requests you have posted above are right. In detail, the legend of such layer is a blank one.
Instead, try with this WMS layer with legend:
http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/Carta_geologica.map
If the URI issue is fixed, it should work fine now.

#4 Updated by José Badía over 8 years ago

  • Status changed from Awaiting response to Fixed

Works perfect! Thanks

#5 Updated by Joaquín del Cerro Murciano over 8 years ago

  • Target version changed from 98 to 2.3.0-2409 (rev. org.gvsig.desktop-2.0.115)

#6 Updated by Álvaro Anguix over 8 years ago

  • Status changed from Fixed to Closed

I close it, but at this moment I can't test it, because the server doesn't work.

Also available in: Atom PDF