incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: [jira] Commented: (JSPWIKI-266) Add ability to restrict account creation
Date Tue, 16 Dec 2008 21:02:42 GMT
If you use command line, take a look at the man page for patch. You  
can remove leading directories from a patch file with the -px option.

       -pnum  or  --strip=num
           Strip the smallest prefix containing num leading slashes  
from each file name found in the patch file.   A
           sequence  of  one  or  more  adjacent slashes is counted as  
a single slash.  This controls how file names
           found in the patch file are treated, in case you keep your  
files in a different directory than the person
           who sent out the patch.  For example, supposing the file  
name in the patch file was

              /u/howard/src/blurfl/blurfl.c

           setting -p0 gives the entire file name unmodified, -p1 gives

              u/howard/src/blurfl/blurfl.c

           without the leading slash, -p4 gives

              blurfl/blurfl.c

           and  not  specifying -p at all just gives you blurfl.c.   
Whatever you end up with is looked for either in
           the current directory, or the directory specified by the -d  
option.

Hope this helps,

Craig

On Dec 16, 2008, at 10:34 AM, Prashanth Srikanthan (JIRA) wrote:

>
>    [ https://issues.apache.org/jira/browse/JSPWIKI-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657098

> #action_12657098 ]
>
> Prashanth Srikanthan commented on JSPWIKI-266:
> ----------------------------------------------
>
> I am not sure if I am asking this question at the right place. But,  
> here it goes.... How do I use this .patch file? Are there any links  
> that you guys can point me to that tells me how to do this.? Thanks.  
> Prashanth
>
>> Add ability to restrict account creation
>> ----------------------------------------
>>
>>                Key: JSPWIKI-266
>>                URL: https://issues.apache.org/jira/browse/JSPWIKI-266
>>            Project: JSPWiki
>>         Issue Type: New Feature
>>         Components: Authentication&Authorization
>>           Reporter: Aaron Hamid
>>           Assignee: Andrew Jaquith
>>        Attachments: limitprofilecreation.patch
>>
>>
>> This is a formal feature request (because I could not find an  
>> existing issue) for the "Admin Creates User Profiles" Idea here:
>> http://www.jspwiki.org/wiki/IdeaAdminCreatesUserProfiles
>> Once way to implement it would be, that a different permission,  
>> "createProfile", be added, still configurable in the jspwiki.policy  
>> file. This way the desired policy could be configured such that the  
>> admin group has the "createProfile" permission, while the  
>> Authenticated have their "editProfile" permission.
>> Workarounds are presented here http://www.jspwiki.org/wiki/AllowOnlyAdministratorCreateUserAccounts

>>  but have drawbacks, including allowing arbitrary junk accounts or  
>> forcing security to be configured external to the application.
>> The proposal above, a new "createProfile" permission, seems like a  
>> straightforward way to address this concern directly in the product  
>> expanding its usefulness without weird workarounds.
>
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message