Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 71083 invoked from network); 19 Jun 2008 23:00:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2008 23:00:07 -0000 Received: (qmail 97498 invoked by uid 500); 19 Jun 2008 23:00:09 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 97471 invoked by uid 500); 19 Jun 2008 23:00:09 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 97457 invoked by uid 99); 19 Jun 2008 23:00:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2008 16:00:09 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2008 22:59:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7A857234C146 for ; Thu, 19 Jun 2008 15:59:46 -0700 (PDT) Message-ID: <125642760.1213916386500.JavaMail.jira@brutus> Date: Thu, 19 Jun 2008 15:59:46 -0700 (PDT) From: "Christopher Elkins (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Updated: (ABDERA-179) AbstractEntityCollectionAdapter incorrectly returns relative URIs in Location header In-Reply-To: <985072340.1213916145241.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ABDERA-179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Elkins updated ABDERA-179: -------------------------------------- Attachment: absolution-location.patch This patch fixes AbstractEntityCollectionAdapter to return absolute URIs in the Location header when posting entry or media resources and enforces the behavior by updating related unit tests (the ones I found) to use the response location as given rather than trying to resolve it against a known URI. Additionally, it removes some redundancy by making postEntry() defer to createNonMediaEntry() in a manner similar to r663820. > AbstractEntityCollectionAdapter incorrectly returns relative URIs in Location header > ------------------------------------------------------------------------------------ > > Key: ABDERA-179 > URL: https://issues.apache.org/jira/browse/ABDERA-179 > Project: Abdera > Issue Type: Bug > Affects Versions: 0.5.0 > Reporter: Christopher Elkins > Attachments: absolution-location.patch > > > Per section 14.30 of RFC 2616, the Location header "consists of a single absolute URI". However, whether posting entry or media resources, AbstractEntityCollectionAdapter responds with a relative URL in the Location header. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.