[Mapbender-users] RedirectMatch bei OWSPROXY fehlerhaft?

Uli Rothstein (WhereGroup) uli.rothstein at wheregroup.com
Wed Jul 6 10:24:17 EDT 2011


Hallo,

soweit ich das einschätze, liegt das am Suhosin-Patch. In diesem Fall
habe ich das immer nur mit der redirect-Variante zum Laufen gebracht.

Viele Grüße
Uli

On 06.07.2011 15:43, Robert Walter wrote:
> 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
> 


-- 


********************************************
AGIT 2011
6.-8. Juli 2011 in Salzburg
Treffen Sie die WhereGroup an Stand Nr. 30
http://www.agit.at
********************************************
---------------------------------------
Ulrich Rothstein
WhereGroup GmbH & Co. KG
Eifelstraße 7
53119 Bonn
Germany

Fon: +49 (0)228 / 90 90 38 - 17
GSM: +49 (0)151 19168518
Fax: +49 (0)228 / 90 90 38 - 11

mailto:uli.rothstein at wheregroup.com
gpg: http://www.wheregroup.com/keys/uli.rothstein.wheregroup.asc	
www.wheregroup.com

Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com


Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---------------------------------------


More information about the Mapbender_users mailing list