[Geoserver-devel] [jira] Created: (GEOS-67) FeatureResponse throws ClassCastException when trying to cast a non-blocking FeatureSource

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-67

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GEOS-67
    Summary: FeatureResponse throws ClassCastException when trying to cast a non-blocking FeatureSource
       Type: Bug

     Status: Open
   Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
  Remaining: Unknown

    Project: GeoServer
Components:
             WFS
             ArcSDE
   Fix Fors:
             1.1.1
   Versions:
             1.1.1

   Assignee: Jody Garnett
   Reporter: Gabriel Roldán

    Created: Sun, 25 Jan 2004 11:45 AM
    Updated: Sun, 25 Jan 2004 11:45 AM

Description:
When performing a GetFeature request, FeatureResponse class obtains the propper FeatureSource but directly cast it to a FeatureLocking without checking if the returning FeatureSource actually implements it.

This affects ArcSDE datastore, wich currently does not implements write access nor locking, and will affect any other non-blocking DataStore.

The cast is done at line 282 in FeatureResponse.java:
               
source = (FeatureLocking) meta.getFeatureSource();

As it seems to take care of currently locked features, I don't have the courage of putting my hands on although it seems pretty trivial. So it is for you, Jody :slight_smile:

---------------------------------------------------------------------
JIRA INFORMATION:
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