You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Stefano Linguerri (JIRA)" <ji...@apache.org> on 2008/05/21 11:31:55 UTC

[jira] Created: (ABDERA-167) DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter

DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter
-----------------------------------------------------------------------------------------------------

                 Key: ABDERA-167
                 URL: https://issues.apache.org/jira/browse/ABDERA-167
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 0.4.0
            Reporter: Stefano Linguerri


the method DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter.

eg: if a CollectionAdapter is cofigured for /fooContext/atom/myfeed is matched with /fooContext/atom/atom/myfeed (atom  repeted twice).

The source and binary distribution of 0.4.0 have this bug. 
The trunk was patched Wed, 30 Apr 2008 00:20:16 GMT (see: http://mail-archives.apache.org/mod_mbox/incubator-abdera-commits/200804.mbox/%3C20080430002017.10C0C23889F8@eris.apache.org%3E)


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


[jira] Commented: (ABDERA-167) DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ABDERA-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600200#action_12600200 ] 

James M Snell commented on ABDERA-167:
--------------------------------------

Can you please provide a bit more information.  This is not enough to reproduce the problem

> DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-167
>                 URL: https://issues.apache.org/jira/browse/ABDERA-167
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Stefano Linguerri
>
> the method DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter.
> eg: if a CollectionAdapter is cofigured for /fooContext/atom/myfeed is matched with /fooContext/atom/atom/myfeed (atom  repeted twice).
> The source and binary distribution of 0.4.0 have this bug. 
> The trunk was patched Wed, 30 Apr 2008 00:20:16 GMT (see: http://mail-archives.apache.org/mod_mbox/incubator-abdera-commits/200804.mbox/%3C20080430002017.10C0C23889F8@eris.apache.org%3E)

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


[jira] Commented: (ABDERA-167) DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter

Posted by "Stefano Linguerri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ABDERA-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600455#action_12600455 ] 

Stefano Linguerri commented on ABDERA-167:
------------------------------------------

DefaultWorkspaceManager:
My abdera servlet is configured for /atom/*

   Method:
      public CollectionAdapter getCollectionAdapter(RequestContext request) {

First line of method

the code of 0.4.0:
   String path = request.getTargetBasePath() + request.getTargetPath();

assigns to path value:
   /fooContext/atom/atom/myfeed (atom repeated twice). 

So when in the method DefaultWorkspaceManager.getCollectionAdapter() path is used in: 
...
if (path.equals(href) ||
          (href != null && 
           path.startsWith(href) &&
           URI_GEN_DELIMS.contains(path.substring(href.length(), href.length() + 1)))) {    
...
this always returns false because href has value  /fooContext/atom/myfeed

the code of 0.5.0 
   String path = request.getContextPath() + request.getTargetPath();

assigns to path value:
   /fooContext/atom/myfeed (this is correct)

anyway the 0.5.0 and trunk was fixed. 
see:
http://mail-archives.apache.org/mod_mbox/incubator-abdera-commits/200804.mbox/%3C20080430002017.10C0C23889F8@eris.apache.org%3E


> DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-167
>                 URL: https://issues.apache.org/jira/browse/ABDERA-167
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Stefano Linguerri
>
> the method DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter.
> eg: if a CollectionAdapter is cofigured for /fooContext/atom/myfeed is matched with /fooContext/atom/atom/myfeed (atom  repeted twice).
> The source and binary distribution of 0.4.0 have this bug. 
> The trunk was patched Wed, 30 Apr 2008 00:20:16 GMT (see: http://mail-archives.apache.org/mod_mbox/incubator-abdera-commits/200804.mbox/%3C20080430002017.10C0C23889F8@eris.apache.org%3E)

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


[jira] Commented: (ABDERA-167) DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ABDERA-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600670#action_12600670 ] 

James M Snell commented on ABDERA-167:
--------------------------------------

Thanks.  We've got a number of bug fixes checked into the trunk at this point and will likely have a bit more.  I think it would make sense to cut a 0.4.1 release sometime in the next couple of weeks based on the current trunk.

> DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-167
>                 URL: https://issues.apache.org/jira/browse/ABDERA-167
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Stefano Linguerri
>
> the method DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter.
> eg: if a CollectionAdapter is cofigured for /fooContext/atom/myfeed is matched with /fooContext/atom/atom/myfeed (atom  repeted twice).
> The source and binary distribution of 0.4.0 have this bug. 
> The trunk was patched Wed, 30 Apr 2008 00:20:16 GMT (see: http://mail-archives.apache.org/mod_mbox/incubator-abdera-commits/200804.mbox/%3C20080430002017.10C0C23889F8@eris.apache.org%3E)

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


[jira] Resolved: (ABDERA-167) DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ABDERA-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James M Snell resolved ABDERA-167.
----------------------------------

    Resolution: Fixed

Fixed in the trunk

> DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-167
>                 URL: https://issues.apache.org/jira/browse/ABDERA-167
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Stefano Linguerri
>
> the method DefaultWorkspaceManager.getCollectionAdapter(RequestContext request) doesn't return CollectionAdapter.
> eg: if a CollectionAdapter is cofigured for /fooContext/atom/myfeed is matched with /fooContext/atom/atom/myfeed (atom  repeted twice).
> The source and binary distribution of 0.4.0 have this bug. 
> The trunk was patched Wed, 30 Apr 2008 00:20:16 GMT (see: http://mail-archives.apache.org/mod_mbox/incubator-abdera-commits/200804.mbox/%3C20080430002017.10C0C23889F8@eris.apache.org%3E)

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