[Bug 659763] Re: bzr smart server can't handle UTF-8 user names, gives UnknownErrorFromSmartServer

Launchpad Bug Tracker 659763 at bugs.launchpad.net
Fri Jun 17 06:29:11 UTC 2011


** Branch linked: lp:~ubuntu-branches/ubuntu/natty/bzr/natty-proposed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/659763

Title:
  bzr smart server can't handle UTF-8 user names, gives
  UnknownErrorFromSmartServer

Status in Bazaar Version Control System:
  Fix Released
Status in Bazaar 2.3 series:
  Fix Released
Status in “bzr” package in Ubuntu:
  Fix Released
Status in “bzr” source package in Natty:
  Fix Committed

Bug description:
  I have an ä (LATIN SMALL LETTER A WITH DIAERESIS) in my name, so it is the GECOS-field on savannah.gnu.org,
  UTF-8 decoded.
  When I tried to commit to bzr+ssh://jhd@bzr.savannah.gnu.org/emacs/emacs-23 (bound branch), I get an error back that says
    Unable to determine your name. Please use "bzr whoami" to set it (se log below).

  I have used bzr whoami so the message is at least incorrect.  Changing my name in savannah so that ä isn't in the GECOS-filed fixes the problem. 
  Log follows:

  Sön 2010-10-10 14:51:11 +0200
  0.044  bazaar version: 2.2.1
  0.044  bzr arguments: [u'commit', u'-m', u"Bug#7150: Distinguishing between left
   and right Alt keys on NextStep/OSX.\n\n* lisp/cus-start.el (all): ns-right-alte
  rnate-modifier is new.\n\n* lisp/term/ns-win.el (ns-right-alternate-modifier): N
  ew defvar.\n(ns-right-option-modifier): New alias for ns-right-alternate-modifie
  r.\n(mac-right-option-modifier): New alias for ns-right-option-modifier.\n\n* sr
  c/nsterm.m (Qleft): Declare.\n(ns_right_alternate_modifier): New variable\n(NSRi
  ghtAlternateKeyMask): New define.\n(EV_MODIFIERS): Parse NSRightAlternateKeyMask
   if\nns_right_alternate_modifier isn't Qleft.\n(keyDown): If ns_right_alternate_
  modifier isn't Qleft, use it\nas emacs modifier for NSRightAlternateKeyMask.\n(s
  yms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.\n", u'etc/NEWS', u'lisp
  /ChangeLog', u'lisp/cus-start.el', u'lisp/term/ns-win.el', u'src/ChangeLog', u's
  rc/nsterm.m']
  0.058  looking for plugins in /Users/jhd/.bazaar/plugins
  0.058  looking for plugins in /Library/Python/2.6/site-packages/bzrlib/plugins
  0.164  encoding stdout as osutils.get_user_encoding() 'UTF-8'
  0.207  opening working tree '/Users/jhd/src/emacs/emacs-23'
  0.599  bzr-svn: using Subversion 1.6.5 ()
  0.643  ssh implementation is OpenSSH
  4.522  preparing to commit
  6.574  Traceback (most recent call last):
    File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
      return the_callable(*args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1112, in run_bzr
      ret = run(*run_argv)
    File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
      return self.run(**all_cmd_args)
    File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 705, in run
      return self._operation.run_simple(*args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
      self.cleanups, self.func, *args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
      result = func(*args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 3200, in run
      exclude=safe_relpath_files(tree, exclude))
    File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 194, in write_locked
      result = unbound(self, *args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/workingtree_4.py", line 197, in commit
      result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 194, in write_locked
      result = unbound(self, *args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/mutabletree.py", line 201, in commit
      *args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/commit.py", line 286, in commit
      possible_master_transports=possible_master_transports)
    File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 131, in run
      self.cleanups, self.func, self, *args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
      result = func(*args, **kwargs)
    File "/Library/Python/2.6/site-packages/bzrlib/commit.py", line 360, in _commit
      self._check_bound_branch(operation, possible_master_transports)
    File "/Library/Python/2.6/site-packages/bzrlib/commit.py", line 529, in _check_bound_branch
      self.master_branch.lock_write()
    File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 2442, in lock_write
      remote_tokens = self._remote_lock_write(token)
    File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 2426, in _remote_lock_write
      repo_token or '', **err_context)
    File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 57, in _call
      self._translate_error(err, **err_context)
    File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 2296, in _translate_error
      self.repository._translate_error(err, branch=self, **context)
    File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 819, in _translate_error
      self.bzrdir._translate_error(err, repository=self, **context)
    File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 173, in _translate_error
      _translate_error(err, bzrdir=self, **context)
    File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 3003, in _translate_error
      raise errors.UnknownErrorFromSmartServer(err)
  UnknownErrorFromSmartServer: Server sent an unexpected error: ('error', 'Unable to determine your name.  Use "bzr whoami" to set it.')

  6.574  return code 3

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/659763/+subscriptions




More information about the foundations-bugs mailing list