You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2010/01/11 13:58:54 UTC

[jira] Created: (JCR-2458) Allow basic regexp in namespace prefix of index-rule

Allow basic regexp in namespace prefix of index-rule
----------------------------------------------------

                 Key: JCR-2458
                 URL: https://issues.apache.org/jira/browse/JCR-2458
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-core
            Reporter: Marcel Reutegger
            Priority: Minor


Currently a regular expression is limited to the local name, which makes fallback declarations that should match everything else difficult to write. I.e. you have to write a line per namespace in the node type registry, which bloats the index-rule unnecessarily.

Currently:

<property isRegexp="true">.*</property>

will only match properties with the empty namespace URI.

I propose we allow a basic regular expression in the prefix. That is the match all pattern: '.*' (dot star).

The following would match any property, including any namespace:

<property isRegexp="true">.*:.*</property>


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


[jira] Updated: (JCR-2458) Allow basic regexp in namespace prefix of index-rule

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

Marcel Reutegger updated JCR-2458:
----------------------------------

    Fix Version/s:     (was: 2.1.0)
                   2.0.0

Merged into 2.0 branch in revision: 898056

> Allow basic regexp in namespace prefix of index-rule
> ----------------------------------------------------
>
>                 Key: JCR-2458
>                 URL: https://issues.apache.org/jira/browse/JCR-2458
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: JCR-2458.patch, JCR-2458.patch
>
>
> Currently a regular expression is limited to the local name, which makes fallback declarations that should match everything else difficult to write. I.e. you have to write a line per namespace in the node type registry, which bloats the index-rule unnecessarily.
> Currently:
> <property isRegexp="true">.*</property>
> will only match properties with the empty namespace URI.
> I propose we allow a basic regular expression in the prefix. That is the match all pattern: '.*' (dot star).
> The following would match any property, including any namespace:
> <property isRegexp="true">.*:.*</property>

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


[jira] Updated: (JCR-2458) Allow basic regexp in namespace prefix of index-rule

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

Marcel Reutegger updated JCR-2458:
----------------------------------

    Attachment: JCR-2458.patch

Fixed typo in test.

> Allow basic regexp in namespace prefix of index-rule
> ----------------------------------------------------
>
>                 Key: JCR-2458
>                 URL: https://issues.apache.org/jira/browse/JCR-2458
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>         Attachments: JCR-2458.patch, JCR-2458.patch
>
>
> Currently a regular expression is limited to the local name, which makes fallback declarations that should match everything else difficult to write. I.e. you have to write a line per namespace in the node type registry, which bloats the index-rule unnecessarily.
> Currently:
> <property isRegexp="true">.*</property>
> will only match properties with the empty namespace URI.
> I propose we allow a basic regular expression in the prefix. That is the match all pattern: '.*' (dot star).
> The following would match any property, including any namespace:
> <property isRegexp="true">.*:.*</property>

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


[jira] Updated: (JCR-2458) Allow basic regexp in namespace prefix of index-rule

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

Marcel Reutegger updated JCR-2458:
----------------------------------

    Status: Patch Available  (was: Open)

> Allow basic regexp in namespace prefix of index-rule
> ----------------------------------------------------
>
>                 Key: JCR-2458
>                 URL: https://issues.apache.org/jira/browse/JCR-2458
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>         Attachments: JCR-2458.patch
>
>
> Currently a regular expression is limited to the local name, which makes fallback declarations that should match everything else difficult to write. I.e. you have to write a line per namespace in the node type registry, which bloats the index-rule unnecessarily.
> Currently:
> <property isRegexp="true">.*</property>
> will only match properties with the empty namespace URI.
> I propose we allow a basic regular expression in the prefix. That is the match all pattern: '.*' (dot star).
> The following would match any property, including any namespace:
> <property isRegexp="true">.*:.*</property>

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


[jira] Updated: (JCR-2458) Allow basic regexp in namespace prefix of index-rule

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

Marcel Reutegger updated JCR-2458:
----------------------------------

    Attachment: JCR-2458.patch

Proposed patch.

> Allow basic regexp in namespace prefix of index-rule
> ----------------------------------------------------
>
>                 Key: JCR-2458
>                 URL: https://issues.apache.org/jira/browse/JCR-2458
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>         Attachments: JCR-2458.patch
>
>
> Currently a regular expression is limited to the local name, which makes fallback declarations that should match everything else difficult to write. I.e. you have to write a line per namespace in the node type registry, which bloats the index-rule unnecessarily.
> Currently:
> <property isRegexp="true">.*</property>
> will only match properties with the empty namespace URI.
> I propose we allow a basic regular expression in the prefix. That is the match all pattern: '.*' (dot star).
> The following would match any property, including any namespace:
> <property isRegexp="true">.*:.*</property>

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


[jira] Updated: (JCR-2458) Allow basic regexp in namespace prefix of index-rule

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

Marcel Reutegger updated JCR-2458:
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0
           Status: Resolved  (was: Patch Available)

Applied patch with minor changes (added license header to test config files).

svn revision: 898042

> Allow basic regexp in namespace prefix of index-rule
> ----------------------------------------------------
>
>                 Key: JCR-2458
>                 URL: https://issues.apache.org/jira/browse/JCR-2458
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: JCR-2458.patch, JCR-2458.patch
>
>
> Currently a regular expression is limited to the local name, which makes fallback declarations that should match everything else difficult to write. I.e. you have to write a line per namespace in the node type registry, which bloats the index-rule unnecessarily.
> Currently:
> <property isRegexp="true">.*</property>
> will only match properties with the empty namespace URI.
> I propose we allow a basic regular expression in the prefix. That is the match all pattern: '.*' (dot star).
> The following would match any property, including any namespace:
> <property isRegexp="true">.*:.*</property>

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