You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2008/02/17 18:22:34 UTC

[jira] Created: (SLING-251) Add mapping for user homes

Add mapping for user homes
--------------------------

                 Key: SLING-251
                 URL: https://issues.apache.org/jira/browse/SLING-251
             Project: Sling
          Issue Type: Improvement
          Components: Resource
            Reporter: Tobias Bocanegra


it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:

http://host/~/test

would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
i don't think that the reverse mapping is needed.

the user home root resource (i.e. "/home") needs to be configurable.

possible default values for the user root are:
/home
/users
/people

but i prefer "/home"

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


Re: [jira] Created: (SLING-251) Add mapping for user homes

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Feb 20, 2008 5:42 PM, Tobias Bocanegra <to...@day.com> wrote:

> ...after rethinking this, i suggest that only the /~${userId}/ mapping is
> performed but not the /~/ one.
> the later could still go into the ujax post servlet....

+1 to this, let's keep the magic level low.

-Bertrand

Re: [jira] Created: (SLING-251) Add mapping for user homes

Posted by Tobias Bocanegra <to...@day.com>.
hi the only problem i see is the cacheabilty and un RESTful ness of
this mapping.
because you can never cache the response, unless you personalize the
cache for that user,
and the resource is not addressed RESTful, since it depends on the current user.

after rethinking this, i suggest that only the /~${userId}/ mapping is
performed but not the /~/ one.
the later could still go into the ujax post servlet.

regards, toby

On 2/20/08, Felix Meschberger <fm...@gmail.com> wrote:
> Hi all,
>
> I want to start implementing SLING-251 [1] which would add mapping "~"
> to user homes like in *nix systems.
>
> Consider the repository users have their repository area, where an
> application may store per-user preferences or where users may store
> temporary data or whatever the application likes to do with such user
> homes.
>
> I intended to implement this feature such, that
>
>         * /~/... and ~/... resolve to some resource below the home of
>         the user owning the ResourceResolver (aka the
>         session.getUserID() underneath the ResourceResolver)
>
>         * /~joe/... and ~joe/... resolve to some resource below the home
>         of the named user (joe in this example). If the named user does
>         not have a home location, no resource is found
>
> Initially, the mapping of "~" to the home location (e.g. /home
> or /users) would be configurable in the ResourceResolver.
>
> This is a rather small change to the ResourceResolver implementation.
> The problem is, that we will probably not be able to remove it later if
> this feature proves to be problematic. For this reason, I would like to
> gather some input on what others think about this.
>
> Thanks and Regards
> Felix
>
>
> [1] https://issues.apache.org/jira/browse/SLING-251
>
>
>
>


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Re: [jira] Created: (SLING-251) Add mapping for user homes

Posted by Felix Meschberger <fm...@gmail.com>.
Hi all,

I want to start implementing SLING-251 [1] which would add mapping "~"
to user homes like in *nix systems.

Consider the repository users have their repository area, where an
application may store per-user preferences or where users may store
temporary data or whatever the application likes to do with such user
homes.

I intended to implement this feature such, that

        * /~/... and ~/... resolve to some resource below the home of
        the user owning the ResourceResolver (aka the
        session.getUserID() underneath the ResourceResolver)
        
        * /~joe/... and ~joe/... resolve to some resource below the home
        of the named user (joe in this example). If the named user does
        not have a home location, no resource is found

Initially, the mapping of "~" to the home location (e.g. /home
or /users) would be configurable in the ResourceResolver.

This is a rather small change to the ResourceResolver implementation.
The problem is, that we will probably not be able to remove it later if
this feature proves to be problematic. For this reason, I would like to
gather some input on what others think about this.

Thanks and Regards
Felix


[1] https://issues.apache.org/jira/browse/SLING-251




[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570715#action_12570715 ] 

Felix Meschberger commented on SLING-251:
-----------------------------------------

URI templates is definitely something we are envisioning for support in Sling, that is true. This is also required as soon as we try to implement JSR-311 (should we ever), which defines the code to be called in terms of URI templates. For the moment, this is something different.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570631#action_12570631 ] 

Alexander Klimetschek commented on SLING-251:
---------------------------------------------

Oh, my previous comment's formulation is somewhat misleading: truly restful services are driven by the client, because we don't wanna have states on the server (hypermedia as the engine of application state, if you remember ;-)). That way the client should be able to build the final URL for a new resource. But the server is the one that knows about the URI structure of its resources and hence there is a need to pass that information to the client - in a simple way. This is what URI templates are for - simple strings but with certain placeholders to be filled in by the client.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570411#action_12570411 ] 

Tobias Bocanegra commented on SLING-251:
----------------------------------------

well, yes. but with the /* pattern in the ujax post servlet that allows automatic creation of resources, the RESTfulnes is already broken, right? so adding an additional pattern for the current user does not make things worse.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569879#action_12569879 ] 

Jukka Zitting commented on SLING-251:
-------------------------------------

Couldn't we solve the same needs much more generally with a symlink mechanism?

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570371#action_12570371 ] 

Jukka Zitting commented on SLING-251:
-------------------------------------

Also, a truly "restful" design would have the server sending the URL of the "upload resource" to the client instead of the client constructing the URL based on some predefined pattern.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569818#action_12569818 ] 

Jukka Zitting commented on SLING-251:
-------------------------------------

Is this a form of vanity URLs or an answer to a problem that has no other solution? In other words, what's the reason not to use http://host/home/tripod/test?


> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570341#action_12570341 ] 

Jukka Zitting commented on SLING-251:
-------------------------------------

Ah, I see what you mean.

Is there a use case for user home URLs that don't contain the username?

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570333#action_12570333 ] 

Tobias Bocanegra commented on SLING-251:
----------------------------------------

i see what you mean, but the symlink is not dynamic, i.e.

/~ needs to link to /home/${session.getUserId()}



> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569878#action_12569878 ] 

Felix Meschberger commented on SLING-251:
-----------------------------------------

Ah, I forgot, we could limit knowledge of where user homes are actually stored to a single location -- the ResourceResolver. Otherwise we would spread this knowledge and make it impossible (do we want that actually ?) to modify this.

We could even think of ideas of some configuration in the User Setup, which points at the user home. Just like in *nix, where the user home directory is stored in the passwd entry for the user and need not actually be below /home (or /users or whatever).

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570369#action_12570369 ] 

Jukka Zitting commented on SLING-251:
-------------------------------------

Doesn't the client always know the username of the current user?

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570629#action_12570629 ] 

Alexander Klimetschek commented on SLING-251:
---------------------------------------------

It's restful as long as the server directs the the client where to put it, either by asking the server where to put it (POST /new, response redirect /some/resource) or if the server sends a guideline to the client. The latter is emerging in the form of so-called "URI templates", which Joe Gregorio at IBM is working on and which might get into HTML5's WebForms 2.0:

http://blog.welldesignedurls.org/2007/01/03/about-uri-templates/
http://bitworking.org/projects/URI-Templates/
http://bitworking.org/projects/URI-Templates/draft-gregorio-uritemplate-02.txt

That's something Sling might support as well, ie. in the ujax clientside javascripts.

Just my 2 cents...

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Resolved: (SLING-251) Add mapping for user homes

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

Felix Meschberger resolved SLING-251.
-------------------------------------

    Resolution: Won't Fix

I think we can write off this issue because we can probably not encode the actual location of the user home inside the ResourceResolver.

We can still reopen, if we find a solution or may assign it to some other component.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570317#action_12570317 ] 

Tobias Bocanegra commented on SLING-251:
----------------------------------------

symlinks are not dynamic.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570370#action_12570370 ] 

Tobias Bocanegra commented on SLING-251:
----------------------------------------

maybe, yes. but this allows to build more generic CMS components.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569876#action_12569876 ] 

Felix Meschberger commented on SLING-251:
-----------------------------------------

It is somewhere in the middle of vanity URL and specialized mapping. Of course the mapping case could easily be handled by something like 

     "/~/" --> "/home/"

But this would only influence the ResourceResolver.resolve methods. To also influence the ResourceResolver.getResource() methods we would have to build in some mechanism to recognize the ~ character. We could also imaging mapping

      ~fmeschbe/...

to /home/fmeschbe/... same as in *nix.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570733#action_12570733 ] 

Felix Meschberger commented on SLING-251:
-----------------------------------------

> Doesn't the client always know the username of the current user?

Probably not if the user name is transferred to the server as HTTP Header authentication.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570360#action_12570360 ] 

Tobias Bocanegra commented on SLING-251:
----------------------------------------

yes, if you want to upload stuff into the users' home:

POST /~/upload/*

without need to know the exact location of the user home and the userid on the client.

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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


[jira] Commented: (SLING-251) Add mapping for user homes

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570326#action_12570326 ] 

Jukka Zitting commented on SLING-251:
-------------------------------------

> symlinks are not dynamic. 

And configuration is?

The most straightforward solution to having user homes visible in the URL space is simply to put them within the normal content subtree. Then you need no extra configuration or symlinks to make them available.

If that is not an option, or if you want vanity URLs or other customization, you always need to configure such mappings somewhere. Why not do it in the content tree?

> Add mapping for user homes
> --------------------------
>
>                 Key: SLING-251
>                 URL: https://issues.apache.org/jira/browse/SLING-251
>             Project: Sling
>          Issue Type: Improvement
>          Components: Resource
>            Reporter: Tobias Bocanegra
>
> it would be very practical to have a mapping to 'user homes'. i.e. like the unix tilde expansion:
> http://host/~/test
> would resolve to a resource: /home/tripod/test (if the request is authenticated as 'tripod').
> i don't think that the reverse mapping is needed.
> the user home root resource (i.e. "/home") needs to be configurable.
> possible default values for the user root are:
> /home
> /users
> /people
> but i prefer "/home"

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