← Back to team overview

desktop-packages team mailing list archive

[Bug 1497708] Re: oneconf-service crashed with TypeError in get_oauth_params(): Unicode-objects must be encoded before hashing

 

Ok, I worked out a place where the `body` argument could be wiggled into
place to stop breaking the sha1 hasher.  Attached a patch that overloads
infraclient_pristine.WebCatalogAPI#_prepare_body to encode the string
correctly.


** Patch added: "Patch creating `infraclient_pristine.WebCatalogAPI#_prepare_body` to utf-8 encode the `body` for requests."
   https://bugs.launchpad.net/ubuntu/+source/oneconf/+bug/1497708/+attachment/4571695/+files/lpb_1497708.diff

** Changed in: oneconf (Ubuntu)
     Assignee: Fordi (fordiman) => (unassigned)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to oneconf in Ubuntu.
https://bugs.launchpad.net/bugs/1497708

Title:
  oneconf-service crashed with TypeError in get_oauth_params(): Unicode-
  objects must be encoded before hashing

Status in oneconf package in Ubuntu:
  Confirmed

Bug description:
  Found this error after unlocking the session

  ProblemType: Crash
  DistroRelease: Ubuntu 15.10
  Package: oneconf 0.3.8
  ProcVersionSignature: Ubuntu 4.2.0-10.11-generic 4.2.0
  Uname: Linux 4.2.0-10-generic x86_64
  ApportVersion: 2.18.1-0ubuntu1
  Architecture: amd64
  CrashCounter: 1
  CurrentDesktop: Unity
  Date: Sun Sep 20 07:42:47 2015
  EcryptfsInUse: Yes
  ExecutablePath: /usr/share/oneconf/oneconf-service
  InstallationDate: Installed on 2012-11-25 (1029 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120627)
  InterpreterPath: /usr/bin/python3.4
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/share/oneconf/oneconf-service
  ProcEnviron:
   XDG_RUNTIME_DIR=<set>
   SHELL=/bin/bash
   LANGUAGE=en_SG:en
   PATH=(custom, no user)
   LANG=en_SG.UTF-8
  PythonArgs: ['/usr/share/oneconf/oneconf-service']
  SourcePackage: oneconf
  Title: oneconf-service crashed with TypeError in get_oauth_params(): Unicode-objects must be encoded before hashing
  UpgradeStatus: Upgraded to wily on 2015-03-14 (189 days ago)
  UserGroups: adm cdrom dip libvirtd lpadmin plugdev sambashare sudo vboxusers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/oneconf/+bug/1497708/+subscriptions