Problem processing Capabilities with Invalid Contact Information
----------------------------------------------------------------

                 Key: GEOT-2498
                 URL: http://jira.codehaus.org/browse/GEOT-2498
             Project: GeoTools
          Issue Type: Bug
          Components: ext wms
    Affects Versions: 2.6-M1
            Reporter: Jody Garnett
            Assignee: Jody Garnett


The parsing code is tripping up when a capabilities document address 
information is not in the prescribed order.

This looks to be a simple mistake; we check the value i and were then pulling 
the value 1.
BEFORE:
{code}
                        for (int i = 0; i < value.length; i++) {
                                if (sameName(elems[1], value[i])) {
                                        String address1 = (String) 
value[1].getValue();
                                        
address.setDeliveryPoints(Collections.singleton(address1));
                                }
{code}

AFTER
{code}
                        for (int i = 0; i < value.length; i++) {
                                if (sameName(elems[1], value[i])) {
                                        String address1 = (String) 
value[i].getValue();
                                        
address.setDeliveryPoints(Collections.singleton(address1));
                                }
{code}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to