abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James M Snell (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (ABDERA-87) Null ResponseContext in call to AbstractServiceProvider.end()
Date Wed, 06 Feb 2008 17:51:08 GMT

     [ https://issues.apache.org/jira/browse/ABDERA-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James M Snell resolved ABDERA-87.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4.0

After the refactoring, this should no longer be an issue. Please confirm.

> Null ResponseContext in call to AbstractServiceProvider.end()
> -------------------------------------------------------------
>
>                 Key: ABDERA-87
>                 URL: https://issues.apache.org/jira/browse/ABDERA-87
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Jim Ancona
>             Fix For: 0.4.0
>
>         Attachments: AbstractServiceProvider_end.patch
>
>
> Several of the calls to the end() method in AbstractServiceProvider have a null ResponseContext
 parameter because of the way the try/finally blocks are coded. This bug also affects calls
to CollectionProvider.end()
> For example:
> public ResponseContext getEntry(RequestContext request) {
>       CollectionProvider provider = null;
>       ResponseContext response = null;
>       try {
>         IRI entryBaseIri = resolveBase(request).resolve("./");
>         provider = getCollectionProvider(request);
>         provider.begin(request);
>         
>         return provider.getEntry(request, entryBaseIri);
>       } catch (ResponseContextException e) {
>         response = createErrorResponse(e);
>         return response;
>       } finally {
>         end(provider, request, response);
>       }
>     }
> should be:
>     public ResponseContext getEntry(RequestContext request) {
>       CollectionProvider provider = null;
>       ResponseContext response = null;
>       try {
>         IRI entryBaseIri = resolveBase(request).resolve("./");
>         provider = getCollectionProvider(request);
>         provider.begin(request);
>         
>         response = provider.getEntry(request, entryBaseIri);
>       } catch (ResponseContextException e) {
>         response = createErrorResponse(e);
>       } finally {
>         end(provider, request, response);
>       }
>       return response;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message