Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D026BDC49 for ; Thu, 13 Sep 2012 09:11:04 +0000 (UTC) Received: (qmail 87423 invoked by uid 500); 13 Sep 2012 09:11:04 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 87371 invoked by uid 500); 13 Sep 2012 09:11:03 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 87341 invoked by uid 99); 13 Sep 2012 09:11:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 09:11:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jukka.zitting@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vc0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 09:10:56 +0000 Received: by vcbfk26 with SMTP id fk26so6726476vcb.1 for ; Thu, 13 Sep 2012 02:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=tIQPHfkQUS5CVrGXwlD3HiGCBb0YtaSDVHcZf4qkOk8=; b=v4yww2WFCjIh+qyDzyRJsNuydj03153RXmQFZPuf2+R7bXIOhJPRBM/OHqA4e7SnD8 xkEgVZh7jpaM41T0CQc1THTOPg4N6UkkJ/+yjra9D2MCWDWPHcRcJG4jciGNRcl5Qjht rUAMSNnDRd8oYAbvS/IH/Bq1intA07IKhcjl+Bw6djCtbAlAdUOWK59y9b3UB/sazh2u yJujaBD461MWQnzOq5t2Y2Tqq+chiMue+yG/yA2Hk/c+IoWIbAknAZW4Q6K2WKjQQyxG ijMAqO+KIDHtm/9o9wWehGpKpTXhq8hfUnwgyIkluxSCBkRBVqsPzVGSCPArKOcUh642 XSgA== Received: by 10.220.214.208 with SMTP id hb16mr838084vcb.56.1347527435226; Thu, 13 Sep 2012 02:10:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.91.194 with HTTP; Thu, 13 Sep 2012 02:10:15 -0700 (PDT) In-Reply-To: <9C0FC4C8E9C29945B01766FC7F9D389816FE0B22BF@eurmbx01.eur.adobe.com> References: <9C0FC4C8E9C29945B01766FC7F9D389816FE0B22BF@eurmbx01.eur.adobe.com> From: Jukka Zitting Date: Thu, 13 Sep 2012 11:10:15 +0200 Message-ID: Subject: Re: namespace remapping To: oak-dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Thu, Sep 13, 2012 at 10:47 AM, Marcel Reutegger wrote: > remapping an existing namespace prefix in the namespace registry > somewhat breaks existing content. say we create a node foo:test, > save it and then remap prefix 'foo' to 'bar' in the namespace registry. > reading the same node again will still return foo:bar, however 'foo' > is not valid namespace prefix anymore. Was this done on purpose > or this a bug? The idea, not implemented yet, of how such things should be handled is to have a commit hook that looks out for changes in registered namespace prefixes and either a) simply rejects them, or b) goes through all existing content (potentially with a query to save time) and automatically updates all names and paths that contain modified prefixes. Or the hook could just go through all content and reject the prefix change if any content still refers to the old prefix (i.e. the client would be responsible for removing or remapping all affected content). Alternatively we can implement namespace remappings by having two sets of mappings. One for the original prefix mappings used in content and another for prefix changes applied later. Those extra prefix changes would not affect content in the repository itself, but would just be applied as implicit session-local namespace remappings in all future sessions. BR, Jukka Zitting