Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 6191 invoked from network); 29 Apr 2008 17:41:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2008 17:41:43 -0000 Received: (qmail 36810 invoked by uid 500); 29 Apr 2008 17:41:39 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 36788 invoked by uid 500); 29 Apr 2008 17:41:39 -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 36761 invoked by uid 99); 29 Apr 2008 17:41:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 10:41:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jasnell@gmail.com designates 209.85.132.243 as permitted sender) Received: from [209.85.132.243] (HELO an-out-0708.google.com) (209.85.132.243) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 17:40:54 +0000 Received: by an-out-0708.google.com with SMTP id b38so3538ana.83 for ; Tue, 29 Apr 2008 10:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=XD58zVVZOXUosQmnGSqU71niEbm6NEbbY7Exq9v6JmA=; b=S2jCWHzdAlLg9vf33OY6BuebwbB3vxzhEzzxuPxRG+M5QRWH+qxkzjnxxBAZB5OSvzeL9OVNTycd9P8PUIQQg0PXDHOMNX8DO7QybicOdxlvun114BEZW2Vo1Ye1PXKttZU0uBwF1XIljXs+a2EHAfa8XBk/9/fUtvCIkBamFHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=EP0QpWQIUywZle4oBgKzSICIP6vFckEnK/1fDshH6f2ABl8VEU+YkSDxD1d13TAsLnarD3taBIhk6ZWAsgs4AXtpgBLYwJgv9TUeDww8d2y1LlodYvff06IzaalHPN+8d6NgkEypKzlYyjqh5ar2yMJ0XYn43r4NtgeVMa1nTok= Received: by 10.101.70.15 with SMTP id x15mr1962020ank.116.1209490867718; Tue, 29 Apr 2008 10:41:07 -0700 (PDT) Received: from ?192.168.2.2? ( [67.181.217.27]) by mx.google.com with ESMTPS id c78sm169981hsa.19.2008.04.29.10.41.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 29 Apr 2008 10:41:06 -0700 (PDT) Message-ID: <48175DAF.60207@gmail.com> Date: Tue, 29 Apr 2008 10:41:03 -0700 From: James M Snell User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org Subject: Re: [jira] Commented: (ABDERA-146) Bad entry edit link created in my server when using a provider base path References: <1562250313.1208230264773.JavaMail.jira@brutus> <1285805819.1208268424991.JavaMail.jira@brutus> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I likely won't be able to get to this (or the other issues in jira) until at least the end of this week. I'll be able to let you know my thoughts then. - James David Primmer wrote: > Any comment on this going into .4? It is a bad breakage of routes. If > .4 is not possible, then possibly a snapshot pushed up here: > http://people.apache.org/repo/m2-snapshot-repository > > thanks. > > davep > > On Tue, Apr 15, 2008 at 7:07 AM, Remy Gendron (JIRA) wrote: >> [ https://issues.apache.org/jira/browse/ABDERA-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589091#action_12589091 ] >> >> Remy Gendron commented on ABDERA-146: >> ------------------------------------- >> >> David, your fix is OK I think for the RouteManager itself. >> >> However, there was still an issue in the DefaultWorkspaceManager. Following the fix in the RouteManager, the workspace could no longer find the requested adapter as now the two paths would not match. >> >> I am proposing a patch for the DefaultWorkspaceManager. With it, all of my unit tests are green in the four combinations of root servlet path/specific servlet path and root application context/specific application context. >> >> I think this needs to be included in the 0.4.0 branch if it is to become an RC1. >> >> Thanks again David. >> >> > Bad entry edit link created in my server when using a provider base path >> > ------------------------------------------------------------------------ >> > >> > Key: ABDERA-146 >> > URL: https://issues.apache.org/jira/browse/ABDERA-146 >> > Project: Abdera >> > Issue Type: Bug >> > Affects Versions: 0.4.0 >> > Reporter: Remy Gendron >> > Attachments: route_manager.patch >> > >> > >> > My Abdera servlet is not mapped to the root of my application context. It is mapped to /atom/*, so that my application context can host multiple servlets and a static HTML site at the root path. >> > Thus, I create my provider with a base of /atom/. This in turn creates the following route: /atom/:collection/:entry >> > When I GET an entry, the resolving part goes well. However, the generated edit link for this entry duplicates the base part of the URI. >> > RouteManager.urlFor(RequestContext, Object, Object) line: 158 >> > SpringProvider(AbstractProvider).urlFor(RequestContext, Object, Object) line: 102 >> > ServletRequestContext(AbstractRequestContext).urlFor(Object, Object) line: 184 >> > MovieAdapter(AbstractCollectionAdapter).getHref(RequestContext) line: 82 >> > MovieAdapter(AbstractEntityCollectionAdapter).getFeedIriForEntry(T, RequestContext) line: 548 >> > MovieAdapter(AbstractEntityCollectionAdapter).getEntryFromCollectionProvider(RequestContext) line: 721 >> > MovieAdapter(AbstractEntityCollectionAdapter).getEntry(RequestContext) line: 316 >> > SpringProvider(AbstractProvider).process(RequestContext) line: 155 >> > The last stack frame (urlFor) is where I believe the error is. The route expands properly and includes the provider base path. However, the getTargetBasePath() call concatenates the application context with the servlet path, the servlet path being equal to the provider base path. >> > Real values used in my tests: >> > application context: /imdb >> > provider base: /atom/ >> > adapter href: movies >> > GET URI: http://localhost:8080/imdb/atom/movies/12345 >> > The generated edit URI is: http://localhost:8080/imdb/atom/atom/movies/12345 >> > Thanks for looking into this. >> > Remy >> >> -- >> This message is automatically generated by JIRA. >> - >> You can reply to this email to add a comment to the issue online. >> >> >