You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Christopher Elkins (JIRA)" <ji...@apache.org> on 2008/06/03 21:20:44 UTC

[jira] Created: (ABDERA-173) AbstractEntityCollectionAdapter.postMedia() returns wrong URI in Location header

AbstractEntityCollectionAdapter.postMedia() returns wrong URI in Location header
--------------------------------------------------------------------------------

                 Key: ABDERA-173
                 URL: https://issues.apache.org/jira/browse/ABDERA-173
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 0.4.0, 0.5.0
            Reporter: Christopher Elkins


Per section 9.6 of RFC 5023, "successful responses to creation requests MUST include the URI of the Media Link Entry in the Location header." However, AbstractEntityCollectionAdapter.postMedia() returns the URI of the Media Resource. Confusingly, createMediaEntry(), which otherwise has the same code, behaves as expected.

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


[jira] Resolved: (ABDERA-173) AbstractEntityCollectionAdapter.postMedia() returns wrong URI in Location header

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

James M Snell resolved ABDERA-173.
----------------------------------

    Resolution: Fixed

checked in

> AbstractEntityCollectionAdapter.postMedia() returns wrong URI in Location header
> --------------------------------------------------------------------------------
>
>                 Key: ABDERA-173
>                 URL: https://issues.apache.org/jira/browse/ABDERA-173
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0, 0.5.0
>            Reporter: Christopher Elkins
>         Attachments: AbstractEntityCollectionAdapter.java.patch
>
>
> Per section 9.6 of RFC 5023, "successful responses to creation requests MUST include the URI of the Media Link Entry in the Location header." However, AbstractEntityCollectionAdapter.postMedia() returns the URI of the Media Resource. Confusingly, createMediaEntry(), which otherwise has the same code, behaves as expected.

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


[jira] Updated: (ABDERA-173) AbstractEntityCollectionAdapter.postMedia() returns wrong URI in Location header

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

Christopher Elkins updated ABDERA-173:
--------------------------------------

    Attachment: AbstractEntityCollectionAdapter.java.patch

This patch fixes postMedia() by simply deferring to createMediaEntry().

> AbstractEntityCollectionAdapter.postMedia() returns wrong URI in Location header
> --------------------------------------------------------------------------------
>
>                 Key: ABDERA-173
>                 URL: https://issues.apache.org/jira/browse/ABDERA-173
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0, 0.5.0
>            Reporter: Christopher Elkins
>         Attachments: AbstractEntityCollectionAdapter.java.patch
>
>
> Per section 9.6 of RFC 5023, "successful responses to creation requests MUST include the URI of the Media Link Entry in the Location header." However, AbstractEntityCollectionAdapter.postMedia() returns the URI of the Media Resource. Confusingly, createMediaEntry(), which otherwise has the same code, behaves as expected.

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