Ticket #3449 (closed bug: fixed)

Opened 22 months ago

Last modified 21 months ago

WMSCapabilities format may fail to correctly read BoundingBox of layers

Reported by: erilem Owned by: tschaub
Priority: major Milestone: 2.11 Release
Component: Format.WMSCapabilities Version: 2.11 RC1
Keywords: Cc:
State: Pullup

Description

The WMS specs say:

A BoundingBox inherited from the parent Layer for a particular SRS is replaced by any declaration for the same SRS in the child Layer.

The WMSCapabilities format doesn't comply with that.

Patch to come.

Attachments

patch-3449-A0.diff Download (3.8 KB) - added by erilem 22 months ago.

Change History

Changed 22 months ago by erilem

Changed 22 months ago by erilem

  • state set to Review
  • version changed from 2.10 to SVN

patch-3449-A0.diff Download fixes it, and adds new tests for both v1_1_1 and v1_3_0. Please review.

Changed 22 months ago by fredj

  • state changed from Review to Commit

while you're tuning the for loop, can you please change:

var key, j;
for (j=0; j<attributes.length; j++) {

to:

var key, j, len;
for (j = 0, len = attributes.length; j < len; j++) {

to match our wiki:"CodingStandards"

Changed 22 months ago by erilem

  • status changed from new to closed
  • resolution set to fixed

(In [12209]) WMSCapabilities format may fail to correctly read BoundingBox of layers, r=fredj (closes #3449)

Changed 21 months ago by tschaub

  • state Commit deleted
  • version changed from SVN to 2.11 RC1
  • milestone changed from 2.12 Release to 2.11 Release

Changed 21 months ago by pgiraud

  • status changed from closed to reopened
  • resolution fixed deleted

The patch breaks the tests in IE7 and IE8.

Something really weird, we (stupidly) tried to move the "BoundingBox" block above the "AuthorityURL"'s one and the tests pass.

Changed 21 months ago by bartvde

The issue is that the XML fragments in the tests are not valid according to the DTD, AuthorityURL comes after BoundingBox according to the DTD:

<!-- Nested list of zero or more map Layers offered by this server. -->
<!ELEMENT Layer ( Name?, Title, Abstract?, KeywordList?, SRS*,
                  LatLonBoundingBox?, BoundingBox*, Dimension*, Extent*,
                  Attribution?, AuthorityURL*, Identifier*, MetadataURL*, DataURL*,
                  FeatureListURL*, Style*, ScaleHint?, Layer* ) >

Changed 21 months ago by bartvde

  • status changed from reopened to closed
  • resolution set to fixed

(In [12343]) fix up tests in IE because of invalid XML fragments in WMS Capabilities 1.1.1 testcase (closes #3449)

Changed 21 months ago by bartvde

  • status changed from closed to reopened
  • state set to Pullup
  • resolution fixed deleted

Chris, I'll let you decide if you want to pullup r12343 in the 2.11 branch before the release.

Changed 21 months ago by erilem

Excellent Bart! Thank you.

It's a test-only thing so we don't need another RC. And I think we should pull this in the 2.11 branch.

Changed 21 months ago by crschmidt

  • status changed from reopened to closed
  • resolution set to fixed

(In [12353]) Merge a fix for tests (Closes #3449)

Note: See TracTickets for help on using tickets.