[Geoserver-devel] [jira] Created: (GEOS-325) DescribeResponse doesn't support booleans

DescribeResponse doesn't support booleans
-----------------------------------------

         Key: GEOS-325
         URL: http://jira.codehaus.org/browse/GEOS-325
     Project: GeoServer
        Type: Bug
  Components: WFS
    Versions: 1.3.0-beta
    Reporter: Paolo Rizzi
Assigned to: Chris Holmes

A call to the WFS getDescribeFeature service, for a FeatureType
with no explicit schema defined, ends up calling:
   String org.vfny.geoserver.responses.wfs.DescribeResponse.generateFromSchema(FeatureType schema)

that calls:
   org.geotools.gml.producer.FeatureTypeTransformer.transform(schema, writer);

that in the end calls:
   org.geotools.gml.producer.FeatureTypeTransformer$FeatureTypeTranslator.encode(AttributeType attribute)

This method is missing support for the Boolean type (and maybe for others), so an excpetion is thrown.
I fixed this bug (for Boolean only), but I'm unsure if the org.geotools.gml.producer package is to be replaced by something better altogether or will stay with us a little more.

Bye
Paolo Rizzi

--
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

     [ http://jira.codehaus.org/browse/GEOS-325?page=all ]
     
Justin Deoliveira reopened GEOS-325:
------------------------------------

     Assign To: Justin Deoliveira (was: Chris Holmes)

apply changes at geotools level

DescribeResponse doesn't support booleans
-----------------------------------------

         Key: GEOS-325
         URL: http://jira.codehaus.org/browse/GEOS-325
     Project: GeoServer
        Type: Bug
  Components: WFS
    Versions: 1.3.0-beta
    Reporter: Paolo Rizzi
    Assignee: Justin Deoliveira
     Fix For: 1.3.0 RC6
Attachments: DescribeResponse.java, DescribeResponse.java, FeatureTypeTransformer.java

A call to the WFS getDescribeFeature service, for a FeatureType
with no explicit schema defined, ends up calling:
   String org.vfny.geoserver.responses.wfs.DescribeResponse.generateFromSchema(FeatureType schema)
that calls:
   org.geotools.gml.producer.FeatureTypeTransformer.transform(schema, writer);
that in the end calls:
   org.geotools.gml.producer.FeatureTypeTransformer$FeatureTypeTranslator.encode(AttributeType attribute)
This method is missing support for the Boolean type (and maybe for others), so an excpetion is thrown.
I fixed this bug (for Boolean only), but I'm unsure if the org.geotools.gml.producer package is to be replaced by something better altogether or will stay with us a little more.
Bye
Paolo Rizzi

--
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