[OpenLayers-Users] proxy problem again

Markus Spring m.spring at gmx.de
Tue Jun 19 13:35:19 EDT 2007


Hi list,
sorry for adding another proxy problem post, but after several hours I still
could not figure out how to resolve this.

The setup is:
- html and OL javascript are served from test.local, which is my test laptop
  and the same machine the browser runs on
- base layer is served from radl-routing.mdeport.de
- wms overlay is served by mapserver from dream.lrrl.arch.tu-muenchen.de

Display of the map including zoom/pan runs like a charm.

Now I want to query a point via WFS:
- wfs comes, as wms, from dream.lrrl.arch.tu-muenchen.de
- proxy.cgi is set up on test.local
- hitting http://test.local/cgi/proxy.cgi forwards to the openlayers websit
- hitting http://test.local/cgi/proxy.cgi?url=http://dream.lrrl.arch....
  with a valid wfs request gives back the data in text/plain format as requested
  and identically to the direct request to the wfs server

Having the following code in my map.html however results in an error:

function singleclick (e) {
  setHTML("<p>Loading... <br>please wait...</p>");

  var url =  azdkadde.getFullRequestString(
  { REQUEST:           "GetFeatureInfo",
                         EXCEPTIONS:        "application/vnd.ogc.se_xml",
                         BBOX:              map.getExtent().toBBOX(),
                         X:                 e.xy.x,
                         Y:                 e.xy.y,
                         QUERY_LAYERS:      azdkadde.params.LAYERS,
                         RADIUS:            2,
                         WIDTH:             map.size.w,
                         HEIGHT:            map.size.h
                         } );
  setHTML('<p>'+url+'</p>');
  OpenLayers.ProxyHost = '/cgi/proxy.cgi?url=';
  OpenLayers.loadURL(url, '', this, setHTML,
                     alert('failure calling '+url));
  Event.stop(e);
}

the url is correctly written by the function setHTML, but the loadURL raises the
error as firebug shows:

[Exception... "'Permission denied to get property XULElement.accessKey' when
calling method: [nsIDOMXULLabelElement::accessKey]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
http://test.local/mapsol/mapsol.html# :: singleclick :: line 160" data: no]
[Break on this error] }
mapsol.html# (line 160)
GET
http://test.local/cgi/proxy.cgi?url=http%3A//dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max%3Fmap%3D/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map%26REQUEST%3DGetFeatureInfo%26LAYERS%3Dl1%26PROJECTION%3Depsg%253A31468%26UNITS%3Dm%26FORMAT%3Dpng%26TRANSPARENT%3Dtrue%26SERVICE%3DWMS%26VERSION%3D1.1.1%26STYLES%3D%26EXCEPTIONS%3Dapplication%252Fvnd.ogc.se_xml%26SRS%3Depsg%253A31468%26BBOX%3D4446725.885416%252C5324741.672382%252C4485302.114584%252C5345908.327618%26X%3D414%26Y%3D182%26QUERY_LAYERS%3Dl1%26RADIUS%3D2%26WIDTH%3D729%26HEIGHT%3D400
(641ms)

I already read http://en.wikipedia.org/wiki/Same_origin_policy but found no
violations of these rules in my code.

I would be glad if any knowledgable person could shed light on this.
Below the sig you find the output of the firefox dependencies information, I
could see no anomality here.

Kind regards - Markus
-- 
Stadt München
Referat für Gesundheit und Umwelt
RGU-UW11
Bayerstr. 28a
D-80335 München

Tel:   089 233-47716
Fax:   089 233-47705
Mobil: 0163 8751110

-----------------------------------------------
http://test.local/mapsol/mapsol.html# (47)	426,77 KB
 test.local (33)	397,44 KB
  html (1)	11,43 KB
   http://test.local/mapsol/mapsol.html	11,43 KB
  Stylesheet (3)	12,42 KB
   http://test.local/Q2/css/fahrradrouting_main_css.css	11,3 KB
   http://test.local/Q2/css/autocomplete.css	847 Bytes
   http://test.local/mapsol/theme/default/style.css	291 Bytes
  Script (10)	370,94 KB
   http://test.local/lib/OpenLayers.js~	179,12 KB
   http://test.local/lib-2.3/OpenLayers/Layer/MapServer/Untiled.js	8,04 KB
   http://test.local/lib/OpenLayers/Control/PanWorldZoomBar.js	1,94 KB
   http://test.local/Q2/js/lib/prototype.js	69,59 KB
   http://test.local/Q2/js/src/scriptaculous.js	2,35 KB
   http://test.local/Q2/js/src/builder.js	4,53 KB
   http://test.local/Q2/js/src/effects.js	36,98 KB
   http://test.local/Q2/js/src/dragdrop.js	29,93 KB
   http://test.local/Q2/js/src/controls.js	28,3 KB
   http://test.local/Q2/js/src/slider.js	10,16 KB
  Background (5)	2,42 KB
   http://test.local/Q2/css/images/fr_ecke_3x3_weiss.gif	45 Bytes
   http://test.local/Q2/css/images/fr_headline_verlauf_1.gif	124 Bytes
   http://test.local/Q2/css/images/fr_logo_routing.gif	1,9 KB
   http://test.local/mapsol/img/zoombar.png	Unknown
   http://test.local/Q2/css/images/fr_legende_verlauf.gif	372 Bytes
  Image (13)	235 Bytes
   http://test.local/mapsol/Radlrouting-Test_files/fr_icon_optionen.gif	Unknown
   http://test.local/Q2/images/fr_icon_drucken.gif	119 Bytes
   http://test.local/Q2/images/fr_icon_hilfe.gif	116 Bytes
   http://test.local/mapsol/img/north-mini.png	Unknown
   http://test.local/mapsol/img/west-mini.png	Unknown
   http://test.local/mapsol/img/east-mini.png	Unknown
   http://test.local/mapsol/img/south-mini.png	Unknown
   http://test.local/mapsol/img/zoom-plus-mini.png	Unknown
   http://test.local/mapsol/img/zoom-world-mini.png	Unknown
   http://test.local/mapsol/img/slider.png	Unknown
   http://test.local/mapsol/img/zoom-minus-mini.png	Unknown
   http://test.local/mapsol/img/layer-switcher-maximize.png	Unknown
   http://test.local/mapsol/img/layer-switcher-minimize.png	Unknown
  Input Image (1)	Unknown
   http://test.local/mapsol/Radlrouting-Test_files/fr_button_berechnen_2.gif	Unknown
 mx004.mdeport.de (6)	22,97 KB
  Image (6)	22,97 KB

http://mx004.mdeport.de/ka-map/tile.php?map=hintergrund_muenchen&i=png&units=m&t=-100864&l=84224&s=150000
7,58 KB

http://mx004.mdeport.de/ka-map/tile.php?map=hintergrund_muenchen&i=png&units=m&t=-100864&l=84480&s=150000
5,14 KB

http://mx004.mdeport.de/ka-map/tile.php?map=hintergrund_muenchen&i=png&units=m&t=-101120&l=84480&s=150000
2,82 KB

http://mx004.mdeport.de/ka-map/tile.php?map=hintergrund_muenchen&i=png&units=m&t=-101120&l=84224&s=150000
5,15 KB

http://mx004.mdeport.de/ka-map/tile.php?map=hintergrund_muenchen&i=png&units=m&t=-101120&l=83968&s=150000
1,29 KB

http://mx004.mdeport.de/ka-map/tile.php?map=hintergrund_muenchen&i=png&units=m&t=-100864&l=83968&s=150000
1.020 Bytes
 dream.lrrl.arch.tu-muenchen.de (8)	6,36 KB
  Image (8)	6,36 KB

http://dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max?map=/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map&REQUEST=getmap&LAYERS=l1&PROJECTION=epsg%3A31468&UNITS=m&FORMAT=png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A31468&BBOX=4478317.118356%2C5337441.665524%2C4491863.777708%2C5350988.324875&WIDTH=256&HEIGHT=256
152 Bytes

http://dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max?map=/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map&REQUEST=getmap&LAYERS=l1&PROJECTION=epsg%3A31468&UNITS=m&FORMAT=png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A31468&BBOX=4464770.459005%2C5337441.665524%2C4478317.118356%2C5350988.324875&WIDTH=256&HEIGHT=256
655 Bytes

http://dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max?map=/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map&REQUEST=getmap&LAYERS=l1&PROJECTION=epsg%3A31468&UNITS=m&FORMAT=png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A31468&BBOX=4451223.799653%2C5337441.665524%2C4464770.459005%2C5350988.324875&WIDTH=256&HEIGHT=256
325 Bytes

http://dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max?map=/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map&REQUEST=getmap&LAYERS=l1&PROJECTION=epsg%3A31468&UNITS=m&FORMAT=png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A31468&BBOX=4437677.140302%2C5337441.665524%2C4451223.799653%2C5350988.324875&WIDTH=256&HEIGHT=256
152 Bytes

http://dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max?map=/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map&REQUEST=getmap&LAYERS=l1&PROJECTION=epsg%3A31468&UNITS=m&FORMAT=png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A31468&BBOX=4437677.140302%2C5323895.006172%2C4451223.799653%2C5337441.665524&WIDTH=256&HEIGHT=256
152 Bytes

http://dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max?map=/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map&REQUEST=getmap&LAYERS=l1&PROJECTION=epsg%3A31468&UNITS=m&FORMAT=png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A31468&BBOX=4451223.799653%2C5323895.006172%2C4464770.459005%2C5337441.665524&WIDTH=256&HEIGHT=256
1,53 KB

http://dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max?map=/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map&REQUEST=getmap&LAYERS=l1&PROJECTION=epsg%3A31468&UNITS=m&FORMAT=png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A31468&BBOX=4464770.459005%2C5323895.006172%2C4478317.118356%2C5337441.665524&WIDTH=256&HEIGHT=256
3,28 KB

http://dream.lrrl.arch.tu-muenchen.de/cgi/mapserv461max?map=/data/maps/rgu/intern/wms_test/wms_aerzte2.dfo.map&REQUEST=getmap&LAYERS=l1&PROJECTION=epsg%3A31468&UNITS=m&FORMAT=png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A31468&BBOX=4478317.118356%2C5323895.006172%2C4491863.777708%2C5337441.665524&WIDTH=256&HEIGHT=256
152 Bytes



More information about the Users mailing list