Opened 18 years ago

Last modified 15 years ago

#1534 new defect

When CONNECTION missing MS not using "wms_onlineresource"

Reported by: jdoyon@… Owned by: dmorissette
Priority: high Milestone: 6.0 release
Component: WMS Client Version: 4.8
Severity: normal Keywords:
Cc: jmckenna@…, havard.tveite@…

Description (last modified by dmorissette)

Hello,

As per the WMS Client HowTo:

Note that if the CONNECTION parameter value is not set the the value of the
"wms_onlineresource" metadata will be used. If both CONNECTION and
"wms_onlineresource" are set then the "wms_onlineresource" metadata takes
precedence.

We just tried using this feature without success.  We HAD to put the CONNECTION
parameter in.

I'd also suggest that the default behavior should be reversed: Where both
methods are used, the CONNECTION parameter should override the
wms_onlineresource (local scope overrides global scope)?

Usage scenario:

I have a mapfile that uses a lot of remote WMS layers from the same server, but
a couple that are from other servers.  I could set a "wms_onlineresource" in the
WEB object, and override with CONNECTION in those few layers that come from a
different server.  This fits the common "local overrides global" model.

I search Bugzilla for "onlineresource" and didn't find anything pertaining to
this, so hopefully it IS a bug, and not a duplicate :)

Thanks,
J.F.

Change History (10)

comment:1 by assefa, 18 years ago

Cc: mapserver-bugs@… added
Owner: changed from mapserverbugs to jmckenna@…
Version: 4.64.8
The documentation should be changed to indicate that the connection has always
precedence on wms_onlineresource.  This refects what is in the code.

Assigned to Jeff.

comment:2 by jmckenna@…, 18 years ago

Daniel and i had a quick look at this, and even though the code in mapwmslayer.c
at first appears to accept either a CONNECTION or a layer "wms_onlineresource"
metadata value, in fact it never does use the onlineresource metadata (if i
remember correctly, setting a dummy DATA value will get it to use the
onlinresource metadata).

Daniel is on it, and will probably be removing the "wms_onlineresource" layer
metadata option.

I have commented out the note in the client-howto, pending the result of
Daniel's changes.

comment:3 by dmorissette, 17 years ago

Cc: havard.tveite@… added

comment:4 by dmorissette, 17 years ago

*** Bug 2000 has been marked as a duplicate of this bug. ***

comment:5 by dmorissette, 17 years ago

Cc: jmckenna@… added
Milestone: 5.0 release
Owner: changed from jmckenna@… to dmorissette
wms_onlineresource doesn't work by itself without a CONNECTION or DATA line
because msLayerIsVisible() checks that one of data, connection, tileindex, etc
is set. In the case of a WMS layer with just wms_onlineresource the tests fail
because there is no connection or data line in the layer definition and the
layer is not drawn.

We should fix this inconsistency for 5.0

comment:6 by dmorissette, 17 years ago

Description: modified (diff)
Milestone: 5.0 release5.2 release

comment:7 by dmorissette, 16 years ago

Milestone: 5.2 release5.4 release

comment:8 by dmorissette, 15 years ago

Milestone: 5.4 release6.0 release

comment:9 by sdlime, 15 years ago

Milestone: 6.0 release5.6.0 release

comment:10 by dmorissette, 15 years ago

Milestone: 5.6 release6.0 release
Note: See TracTickets for help on using tickets.