MILESTONE_CREATE and MILESTONE_ADMIN permission view issue

36 views
Skip to first unread message

Dani-Blr

unread,
Jun 7, 2012, 2:55:26 PM6/7/12
to Trac Users
Hi All,

I have only MILESTONE_MODIFY and MILESTONE_VIEW in my trac user
permission list.
But I need to configure basic permissions MILESTONE_CREATE and
probably MILESTONE_ADMIN to a user.
My issue here is I don't see these permissions in my trac admin user
permissions list.

Can any one please help me on this?

Thanks,
Dani.

Laws, Aaron

unread,
Jun 7, 2012, 7:50:26 PM6/7/12
to trac-...@googlegroups.com
Yo.
> --

I'll use "ta" to mean /python/scripts/trac-admin. Cd to your trac env directory (so that pwd returns the directory of your trac environment).
ta . permission list
should give you the permissions of all users in the system including an handy list at the bottom "Available actions:"
ta . permission list | grep MILESTONE_CREATE
and
ta . permission list | grep MILESTONE_ADMIN
should return something. If they don't then your problem is far beyond me. If they do, run
ta . permission add <user> <permission>
where user is the user for whom you want to add the permission and permission is either MILESTONE_CREATE or MILESTONE_ADMIN.

Good luck!

Aaron

Dani-Blr

unread,
Jun 8, 2012, 11:43:04 AM6/8/12
to Trac Users
No luck Aaron.
Please find the following. No result came after the commands.

[root@srvr01 cm]# trac-admin . permission list | grep MILESTONE_CREATE
[root@srvr01 cm]# trac-admin . permission list | grep MILESTONE_ADMIN
[root@srvr01 cm]#

The trac was moved from another server where I could still see these
permissions.
The new server, these permissions are missing.
Any other thoughts on this ?
I am new to trac and helped to move this to new server.
Any help from anyone would greatly appreciated.

The move to the new server happened around 6 months back and I didn't
get any questions after the move about the server.
In fact all records are existing in Trac - but the permission are
missing which should be a part of standard configuration.

Waiting for responses.

Thanks,
Dani.

Laws, Aaron

unread,
Jun 8, 2012, 2:07:32 PM6/8/12
to trac-...@googlegroups.com
Ahh...

> -----Original Message-----
> From: Dani-Blr
> Sent: Friday, June 08, 2012 11:43 AM
> To: Trac Users
> Subject: [Trac] Re: MILESTONE_CREATE and MILESTONE_ADMIN permission
> view issue
>
> No luck Aaron.
> Please find the following. No result came after the commands.
>
> [root@srvr01 cm]# trac-admin . permission list | grep MILESTONE_CREATE
> [root@srvr01 cm]# trac-admin . permission list | grep MILESTONE_ADMIN
> [root@srvr01 cm]#
>
> The trac was moved from another server where I could still see these
> permissions.
> The new server, these permissions are missing.
> Any other thoughts on this ?
> I am new to trac and helped to move this to new server.
> Any help from anyone would greatly appreciated.
>
> The move to the new server happened around 6 months back and I didn't
> get any questions after the move about the server.
> In fact all records are existing in Trac - but the permission are
> missing which should be a part of standard configuration.
>
> Waiting for responses.
>
> Thanks,
> Dani.
>

There is another route. You can create the permissions yourself by ignoring the fact that they're not in that list:

ta . permission add user MILESTONE_ADMIN

because I think that TRAC checks for them whether they're there or not.

I am a little curious what the output to

ta . permission list

is (just the part about available actions, perhaps

ta . permission list | awk '/Available/,$2=""'

? )
Good providence!

Aaron

Dani-Blr

unread,
Jun 8, 2012, 6:52:51 PM6/8/12
to Trac Users
hmm ...that didn't work either.

[root@srvr01 cm]# trac-admin . permission add <user> MILESTONE_ADMIN
TracError: MILESTONE_ADMIN is not a valid action.

[root@srvr01 cm]# trac-admin . permission list | awk '/Available/,
$2=""'
Available
BROWSER_VIEW, CONFIG_VIEW, EMAIL_VIEW, FILE_VIEW,
LOG_VIEW, PERMISSION_GRANT, PERMISSION_REVOKE,
REPORT_ADMIN, REPORT_DELETE, REPORT_MODIFY,
REPORT_SQL_VIEW, SEARCH_VIEW, TICKET_ADMIN, TICKET_APPEND,
TICKET_CHGPROP, TICKET_EDIT_CC, TICKET_EDIT_COMMENT,
TICKET_EDIT_DESCRIPTION, TICKET_VIEW, TIMELINE_VIEW,
TRAC_ADMIN, WIKI_ADMIN, WIKI_CREATE, WIKI_DELETE,
WIKI_MODIFY, WIKI_VIEW


Please help me...

Thanks,
Dani,


[root@atld-rcsvn03 claimsmonitor]# trac-admin . permission add
dvarghese MILESTONE_ADMIN
TracError: MILESTONE_ADMIN is not a valid action.
Message has been deleted
Message has been deleted

RjOllos

unread,
Jun 13, 2012, 9:00:24 PM6/13/12
to trac-...@googlegroups.com
On Friday, June 8, 2012 3:52:51 PM UTC-7, Dani-Blr wrote:
hmm ...that didn't work either.

[root@srvr01 cm]# trac-admin . permission add <user> MILESTONE_ADMIN
TracError: MILESTONE_ADMIN is not a valid action.


Are you able to navigate to a Milestone? I get the same error if the milestone module is not enabled. Here it is shown as enabled:


Reply all
Reply to author
Forward
0 new messages