Fix handling of people

Bug #941091 reported by Eike
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bug-repo-syncer
Fix Released
Critical
Eike

Bug Description

Bugs that are created on Trac make the program crash.
Some bugs that are created on Trac make the program crash.

'''Crash is fixed! '''

Cause
    name: "" was internally translated to "*" which was not handled specially in people_intl2repo.

* Write tests that create such problematic bugs, and tries to synchronize them.

* Create new bug report: Unknown names are replaced by "*" on Trac.

{{{
Traceback (most recent call last):
  File "../../bsync.py", line 31, in <module>
    bsync.main()
  File "/home/eike/codedir/z-eclipse-workspace/bug_syncer/trunk/src/bug_syncer/main.py", line 96, in main
    self.do_sync(cmdinfo)
  File "/home/eike/codedir/z-eclipse-workspace/bug_syncer/trunk/src/bug_syncer/main.py", line 258, in do_sync
    syncer.synchronize_repos()
  File "/home/eike/codedir/z-eclipse-workspace/bug_syncer/trunk/src/bug_syncer/main.py", line 835, in synchronize_repos
    self.write_bugs(write_tasks)
  File "/home/eike/codedir/z-eclipse-workspace/bug_syncer/trunk/src/bug_syncer/main.py", line 801, in write_bugs
    new_ids = ctrl.create_bugs(bugs_create[repo_name])
  File "/home/eike/codedir/z-eclipse-workspace/bug_syncer/trunk/src/bug_syncer/repo_io.py", line 697, in create_bugs
    self.bug_internal2launchpad(bug, lp_task, lp_bug)
  File "/home/eike/codedir/z-eclipse-workspace/bug_syncer/trunk/src/bug_syncer/repo_io.py", line 722, in bug_internal2launchpad
    lp_assignee_name = self.people_intl2repo(my_bug.assigned_to)
  File "/home/eike/codedir/z-eclipse-workspace/bug_syncer/trunk/src/bug_syncer/repo_io.py", line 94, in people_intl2repo
    return self.people_translator.intl2repo(self.repo_name, name)
  File "/home/eike/codedir/z-eclipse-workspace/bug_syncer/trunk/src/bug_syncer/common.py", line 321, in intl2repo
    raise UnknownWordError(word)
bug_syncer.common.UnknownWordError: '*'
}}}

Eike (eike-welk)
Changed in bug-repo-syncer:
assignee: nobody → Eike (eike-welk)
importance: Undecided → Critical
milestone: none → 0.1.0
status: New → Confirmed
description: updated
summary: - dummy
+ Fix handling of people
Eike (eike-welk)
Changed in bug-repo-syncer:
status: Confirmed → In Progress
description: updated
Eike (eike-welk)
Changed in bug-repo-syncer:
status: In Progress → Fix Released
Eike (eike-welk)
summary: - Fix handling of people
+ Duplicate test bug
Eike (eike-welk)
summary: - Duplicate test bug
+ Fix handling of people
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.