Deny Team-names with / in the name?

26 views
Skip to first unread message

Mattias Vannergård

unread,
Mar 24, 2015, 5:33:07 AM3/24/15
to ag...@googlegroups.com
Hi!

I created a team called "CM/CI", but it gives me an error, because it destroys the pattern for URL-link.

And I can't seem to be able to remove it either, because when I try to access it, I get:

Warning: [GetTeamCommand] team: must be a valid Team name (value=CM)

Oops…

Trac detected an internal error:
UndefinedError: "team" not defined

This is probably a local installation issue.

So, how do I delete it?

And is it possible to make Agilo deny team-name with / in the string? 

BR
/Mattias

Claudio Di Cosmo

unread,
Mar 24, 2015, 9:36:30 AM3/24/15
to ag...@googlegroups.com
Hi Mattias,
Agilo actually accepts symbols like ‘/'. So you should be able to crate a ‘CM/CI’ team. Can you check the entries in your database of the tables agilo_team and agilo_team_members?
To have more info about the problem, can you enable the trac logging, remove the bad entries in the DB and try to add again the same team? So you can send me the log to check where the problem is popping out.

To enable the logging, go to the 'Logging' section, in the admin page, and set the logging type to FILE and the level to DEBUG.

Cheers,

Claudio Di Cosmo
Software Engineer
Agilo Software GmbH
Gruenberger Str. 54
10245 Berlin, Germany

claudio...@agilosoftware.com
http://www.agilosoftware.com

Follow us on twitter: http://twitter.com/agiloforscrum, http://twitter.com/agilofortrac

Amtsgericht Charlottenburg: HRB 127146
CEO Marion Eickmann, Andrea Tomasini
 

Mattias Vannergård

unread,
Mar 25, 2015, 5:39:28 AM3/25/15
to ag...@googlegroups.com
agilo_team:
"NULL" "RT"
"NULL" "CM/CI"

agilo_team_members: (I cut away the hours)
"" "mattias.vannergard" "CM/CI"
"" "yan.wang" "CM/CI"

2015-03-24 09:14:59,361 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 512, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 240, in dispatch
    content_type)
  File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1042, in render_template
    encoding='utf-8')
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/core.py", line 184, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/output.py", line 58, in encode
    for chunk in iterator:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/output.py", line 350, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/output.py", line 829, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/output.py", line 669, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/output.py", line 774, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/output.py", line 594, in __call__
    for ev in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/core.py", line 289, in _ensure
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/core.py", line 289, in _ensure
    for event in stream:
  File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1182, in _strip_accesskeys
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/core.py", line 289, in _ensure
    for event in stream:
  File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1171, in _generate
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 618, in _include
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 378, in _match
    ctxt, start=idx + 1, **vars):
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 378, in _match
    ctxt, start=idx + 1, **vars):
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 362, in _match
    content = list(content)
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 618, in _include
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 326, in _match
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 315, in _strip
    event = next()
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 558, in _flatten
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/core.py", line 289, in _ensure
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/path.py", line 588, in _generate
    subevent = next()
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 618, in _include
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 326, in _match
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 315, in _strip
    event = next()
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 558, in _flatten
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/core.py", line 289, in _ensure
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/path.py", line 588, in _generate
    subevent = next()
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 618, in _include
    for event in stream:
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 315, in _strip
    event = next()
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 578, in _flatten
    result = _eval_expr(data, ctxt, vars)
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 289, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 177, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/usr/lib/python2.7/site-packages/binary_agilo-1.3.14_PRO-py2.7.egg/agilo/scrum/team/templates/agilo_team_sprint_planning.html", line 16, in <Expression u'team.name'>
    <h1>Team "$team.name" Planning for Sprint "$sprint.name"</h1>
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 317, in lookup_attr
    val = getattr(obj, key)
  File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 278, in _die
    raise UndefinedError(self._name, self._owner)
UndefinedError: "team" not defined

BR
/Mattias

Claudio Di Cosmo

unread,
Mar 25, 2015, 8:58:06 AM3/25/15
to ag...@googlegroups.com
Hi Mattias,

On 25 March 2015 at 10:39:30, Mattias Vannergård (mattias.v...@gmail.com) wrote:

agilo_team:
"NULL" "RT"
"NULL" "CM/CI"

agilo_team_members: (I cut away the hours)
"" "mattias.vannergard" "CM/CI"
"" "yan.wang" "CM/CI"


Thank you for the information. Do you get this error when accessing the statistics page from the “Teams” section of the upper navigation bar, am I right?
It is an actual bug, I created a story and we will work on it as soon as possible. ticket: https://agilo.agilofortrac.com/ticket/1397

To delete the team you can:
- go in the admin page (be sure to be a TRAC_ADMIN user)
- click on the Teams section
- select the team that you want to remove and click on the button ‘Remove selected teams’

Let me know if you deleted it without any problem. 
If you encounter some error deleting the team, another way is to remove the data entries from the tables agilo_team and agilo_team_members in the DB.
agilo_teams_1.tiff
Reply all
Reply to author
Forward
0 new messages