[Mapbender-users] RedirectMatch bei OWSPROXY fehlerhaft?

Robert Walter robert-walter at gmx.de
Wed Jul 6 09:43:34 EDT 2011


english below

Hallo Liste,

ich habe hier ein kleines Problem mit dem RedirectMatch für den OWSPROXY in der Mapbender Version 2.6. Läuft unter Apache/2.2.16 (Debian).

Der Ausdruck im Apache sieht so aus:
RedirectMatch ^.*owsproxy.([^i][\w\d]+)\/([\w\d]+)\/?$ http://localhost/owsproxy/http/index.php?sid=$1\&wms=$2\&

Dies sollte meines Erachtens aus folgender URL:
http://localhost/owsproxy/3fdc169a06e06e7c9fbe31d52d71e23a/53e4f66d8d5fd010e4a82b63ef0c0d8c?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=ebene01&STYLES=default,default&SRS=EPSG:25833&BBOX=...

diese machen:
http://localhost/owsproxy/http/index.php?sid=3fdc169a06e06e7c9fbe31d52d71e23a&wms=53e4f66d8d5fd010e4a82b63ef0c0d8c&?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=ebene01&STYLES=default,default&SRS=EPSG:25833&BBOX=...

Ich erhalte allerdings nur:
http://localhost/owsproxy/http/index.php?sid=3fdc169a06e06e7c9fbe31d52d71e23a&wms=53e4f66d8d5fd010e4a82b63ef0c0d8c&

Das heißt, die Parameter nach dem Match-Teil werden abgeschnitten. Das führt beim OWSPROXY zu der Meldung "No wfs data available.", da die Variable $reqParams['request'] dann leer ist.
Ist der Redirect-Befehl hier falsch oder sehe ich das falsch?

Gruß Robert


Hi list,

I have a problem with the RedirectMatch for OWSPROXY in Mapbender 2.6. Apache Webserver is version 2.2.16 with 

The redirect expression is:
RedirectMatch ^.*owsproxy.([^i][\w\d]+)\/([\w\d]+)\/?$ http://localhost/owsproxy/http/index.php?sid=$1\&wms=$2\&

The following URL:
http://localhost/owsproxy/3fdc169a06e06e7c9fbe31d52d71e23a/53e4f66d8d5fd010e4a82b63ef0c0d8c?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=ebene01&STYLES=default,default&SRS=EPSG:25833&BBOX=...

should transformed to:
http://localhost/owsproxy/http/index.php?sid=3fdc169a06e06e7c9fbe31d52d71e23a&wms=53e4f66d8d5fd010e4a82b63ef0c0d8c&?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=ebene01&STYLES=default,default&SRS=EPSG:25833&BBOX=...

but my server delivers:
http://localhost/owsproxy/http/index.php?sid=3fdc169a06e06e7c9fbe31d52d71e23a&wms=53e4f66d8d5fd010e4a82b63ef0c0d8c&

So the last parameter behind the matched part are clipped and the OWSPROXY-script shows an error ("No wfs data available.") because the variable $reqParams['request'] is empty.
Is this a problem of the redirect expression?

bye Robert

-- 
NEU: FreePhone - kostenlos mobil telefonieren!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the Mapbender_users mailing list