You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2008/09/01 15:04:44 UTC

[jira] Created: (SLING-637) Add regexp based mapping rules

Add regexp based mapping rules
------------------------------

                 Key: SLING-637
                 URL: https://issues.apache.org/jira/browse/SLING-637
             Project: Sling
          Issue Type: New Feature
          Components: JCR Resource
    Affects Versions: JCR Resource 2.0.2
            Reporter: Carsten Ziegeler
            Assignee: Carsten Ziegeler
             Fix For: JCR Resource 2.0.4


Currently the url mapping in the jcr resolver is path based.
it would be nice to provide some regexp rewriting rules, for instance to beautify urls.

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


[jira] Commented: (SLING-637) Add regexp based mapping rules

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627482#action_12627482 ] 

Carsten Ziegeler commented on SLING-637:
----------------------------------------

Hmm, no I don't think that this could be used for SLING-249, sorry. The reg exp are executed on the resulting path and are not taking any additional information into account, like host etc.


> Add regexp based mapping rules
> ------------------------------
>
>                 Key: SLING-637
>                 URL: https://issues.apache.org/jira/browse/SLING-637
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Resource
>    Affects Versions: JCR Resource 2.0.2
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.0.4
>
>
> Currently the url mapping in the jcr resolver is path based.
> it would be nice to provide some regexp rewriting rules, for instance to beautify urls.

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


[jira] Closed: (SLING-637) Add regexp based mapping rules

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

Carsten Ziegeler closed SLING-637.
----------------------------------

    Resolution: Fixed

Add regexp for resource resolution. All configured regexp are applied before the mapping is tested.

> Add regexp based mapping rules
> ------------------------------
>
>                 Key: SLING-637
>                 URL: https://issues.apache.org/jira/browse/SLING-637
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Resource
>    Affects Versions: JCR Resource 2.0.2
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.0.4
>
>
> Currently the url mapping in the jcr resolver is path based.
> it would be nice to provide some regexp rewriting rules, for instance to beautify urls.

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


Re: [jira] Commented: (SLING-637) Add regexp based mapping rules

Posted by Carsten Ziegeler <cz...@apache.org>.
Vidar S. Ramdal (JIRA) wrote:
> 
> Still a great feature. I made some attempts at implementing SLING-249, but put it away after running into problems with resolution of sling.include()d stuff.
>  If these problems are taken into account when implementing URL rewriting, I'd like to try to extend it to take the host header into the equation.
> 
Hi,

if you have a patch available just attach it to the bug. Then someone of
the developers has a chance to review it and perhaps might detect the
problem and help.

Carsten
-- 
Carsten Ziegeler
cziegeler@apache.org

[jira] Commented: (SLING-637) Add regexp based mapping rules

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627538#action_12627538 ] 

Vidar S. Ramdal commented on SLING-637:
---------------------------------------

Still a great feature. I made some attempts at implementing SLING-249, but put it away after running into problems with resolution of sling.include()d stuff.
 If these problems are taken into account when implementing URL rewriting, I'd like to try to extend it to take the host header into the equation.

> Add regexp based mapping rules
> ------------------------------
>
>                 Key: SLING-637
>                 URL: https://issues.apache.org/jira/browse/SLING-637
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Resource
>    Affects Versions: JCR Resource 2.0.2
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.0.4
>
>
> Currently the url mapping in the jcr resolver is path based.
> it would be nice to provide some regexp rewriting rules, for instance to beautify urls.

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


[jira] Commented: (SLING-637) Add regexp based mapping rules

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627462#action_12627462 ] 

Vidar S. Ramdal commented on SLING-637:
---------------------------------------

This would be highly useful. Could this also be used to implement SLING-249?

> Add regexp based mapping rules
> ------------------------------
>
>                 Key: SLING-637
>                 URL: https://issues.apache.org/jira/browse/SLING-637
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Resource
>    Affects Versions: JCR Resource 2.0.2
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.0.4
>
>
> Currently the url mapping in the jcr resolver is path based.
> it would be nice to provide some regexp rewriting rules, for instance to beautify urls.

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