[ 
https://issues.apache.org/jira/browse/JSPWIKI-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18041632#comment-18041632
 ] 

Alex O'Ree commented on JSPWIKI-8:
----------------------------------

To get additional attributes, i think if you make a java war project, add 
jspwiki's war as a dependency and add tomcat's libraries to the project 
(assuming you're using tomcat here), then i think if you extend the web 
container authorizer then type cast the servletRequest.getUserPrinciple to 
tomcat's TomcatPrincipal, then you should be able to access all the ldap 
attributes and build out a user profile from that information.

i don't think this will fix the capitalization issue though. i thought i saw a 
setting for the jspwiki properties to tune the behavior of the capitalization 
of links.

> Links generated related to login name are incorrect (casing incorrect)
> ----------------------------------------------------------------------
>
>                 Key: JSPWIKI-8
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-8
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Templates and UI
>         Environment: linux/debian, tomcat5.5, jspwiki 2.4.73 and jspwiki 
> 2.5.139-beta, ldap/container authorization
>            Reporter: Joerg Meyer
>            Assignee: Andrew R. Jaquith
>            Priority: Minor
>             Fix For: STRIPES/JCR-3.0
>
>
> ! Background
> The tests were done using the brushed template on 2.4.73 and standard on 
> 2.5.139-beta.
> Since most issues are similar, i believe, that the template does not affect 
> the issues. However brushed template and standard template on 2.5.139-beta 
> react differently to userFavorites.
> If issues are known to exist only in the brushed template please ignore the 
> entries.
> Our corporate template is at the moment a modified css for brushed template 
> (extra vanilla) for 2.4.73, however we are trying to create a standalone 
> template for standard 2.5.139-beta.
> Note: On the results for favorites, the tests where done with either 
> jmeyerFavorites or JmeyerFavorites existing.
> When i login using my ldap name: "jmeyer" i get the following results:
> ! 2.4.73
> * "G'day, jmeyer" points to page "Jmeyer" instead of "jmeyer"
> * "This page (revision-11) was last changed on 22-Oct-07 11:18 AM, +0900 by 
> jmeyer" points to "Jmeyer" instead of "jmeyer"
> * User in "RecentChanges" is correctly "jmeyer" and points to "jmeyer"
> * "jmeyerFavorites" is correctly included, the link "Favorites" points 
> correctly to the link "jmeyerFavorites"
> * "JmeyerFavorites" does not get included, no "Favorites" box
> * creating a page with first letter lowercase will automatically "rename" it. 
> I.e. "jmeyerFavorites" to "JmeyerFavorites" (this makes it impossible to 
> create favorites)
> * if a page with first letter lowercase already exists, editing it will not 
> rename it
> * renaming any page to first letter lowercase will automatically generate a 
> page with first letter uppercase
> (this makes it impossible to rename any page to correct user pages or 
> favorites)
> * It seems that the page "jmeyer" cannot be renamed
> (this may be true for all pages starting with a lowercase letter)
> * going to a page "jmeyer" when there is only a page "Jmeyer" will resolve 
> correctly
> * going to a page "Jmeyer" when there is only a page "jmeyer" will try to 
> create the page "Jmeyer"
> * weather a page can be found or not has no impact on the link marking when 
> the case does not match exactly
> ! 2.5.139-beta
> * "G'day, jmeyer (authenticated)" points to page "Jmeyer" instead of jmeyer
> * "This page (revision-23) was last changed on 25/10 by jmeyer" points to 
> "Jmeyer" instead of "jmeyer"
> * User in "RecentChanges" is correctly "jmeyer" and points to "jmeyer"
> * "jmeyerFavorites" is correctly included, however the link "Favorites" 
> points to "JmeyerFavorites" instead of "jmeyerFavorites"
> * "JmeyerFavorites" does not get included, however "Favorites" box gets 
> created (shows this site does not exist on expanding), the link  "Favorites" 
> points to "JmeyerFavorites"
> * creating a page with first letter lowercase will automatically "rename" it 
> "jmeyerFavorites" to "JmeyerFavorites"
> * if a page with first letter lowercase already exists, editing it will not 
> rename it
> * It seems that the page "jmeyer" cannot be renamed
> * going to a page "jmeyer" when there is only a page "Jmeyer" will resolve 
> correctly
> * going to a page "Jmeyer" when there is only a page "jmeyer" will try to 
> create the page "Jmeyer"
> * renaming any page to first letter lowercase will automatically generate a 
> page with first letter uppercase
> * weather a page can be found or not has no impact on the link marking when 
> the case does not match exactly
> ! Result
> Weather page names should start with an upper case letter or not is 
> irrelevant to the the discussion of correct user names. 
> If, as in our case, the login names are generally lowercase, then none of the 
> automatically created links except the RecentChanges will be generated 
> correctly. In most cases user pages cannot be created at all.
> Changing the login name to a different field in ldap (i.e. full name) has 
> other issues, as spaces in names may get resolved in "G'day ..." however 
> RecentChanges will never have links.
> This is also not really a solution in our case, as all other applications and 
> portals throughout the company use the login name.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to