Changing Alias of Requirement prevents creation of new requirements

5 views
Skip to first unread message

Lorin Hochstein

unread,
Apr 2, 2012, 2:50:18 PM4/2/12
to ag...@googlegroups.com
In our setup, we changed the alias of "Requirement" to "Project", but otherwise didn't change the ticket type. Once we changed this alias, we were no longer able to create new Project tickets, we would get this error:

Warning: No permission to create or edit a project.

I tracked this error message down to this method in agilo/ticket/web_ui.py (line 530)

    def validate_ticket(self, req, ticket):
        if not ticket.exists:
            typename = ticket.get_type()
            permission_name = 'CREATE_%s' % typename.upper()
            permission_name = getattr(Action, permission_name, permission_name)
            if permission_name not in req.perm(ticket.resource):
                msg = _("No permission to create or edit a %s.")  % typename
                return [(None, msg)]

Apparently, it was returning "project" for typename. I thought that it would have returned the field shown as "Type" on the Manage Types page (which was still "requirement"), rather than "project", which was just defined as the alias.

We're running Agilo (open source) 0.9.7.

Take care,

Lorin Hochstein

Stefano Rago

unread,
Apr 16, 2012, 3:33:15 AM4/16/12
to ag...@googlegroups.com
Hi Lorin,

Renaming is definitely an area that needs improvement. We are aware of this kind of issue and have plans to fix it.
Thanks for pointing it out.

Cheers


Stefano Rago

Reply all
Reply to author
Forward
0 new messages