{"action":"opened","issue":{"url":"https://api.github.com/repos/google/simian/issues/31","labels_url":"https://api.github.com/repos/google/simian/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/google/simian/issues/31/comments","events_url":"https://api.github.com/repos/google/simian/issues/31/events","html_url":"https://github.com/google/simian/issues/31","id":111752668,"number":31,"title":"Error 500 on \"New Package\"","user":{"login":"mholtrlc","id":6945933,"avatar_url":"https://avatars.githubusercontent.com/u/6945933?v=3","gravatar_id":"","url":"https://api.github.com/users/mholtrlc","html_url":"https://github.com/mholtrlc","followers_url":"https://api.github.com/users/mholtrlc/followers","following_url":"https://api.github.com/users/mholtrlc/following{/other_user}","gists_url":"https://api.github.com/users/mholtrlc/gists{/gist_id}","starred_url":"https://api.github.com/users/mholtrlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mholtrlc/subscriptions","organizations_url":"https://api.github.com/users/mholtrlc/orgs","repos_url":"https://api.github.com/users/mholtrlc/repos","events_url":"https://api.github.com/users/mholtrlc/events{/privacy}","received_events_url":"https://api.github.com/users/mholtrlc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-16T03:41:52Z","updated_at":"2015-10-16T03:41:52Z","closed_at":null,"body":"I'm getting an error 500 when I copy/paste a pkginfo file.  Uploading the file works perfectly\r\n\r\nHere is the log:\r\n\r\n````\r\n2015-10-15 20:34:48.592 /admin/package 500 261ms 0kb instance=0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36 module=default version=a56a3dc98d87\r\n100.43.220.122 - mholt [15/Oct/2015:20:34:48 -0700] \"POST /admin/package HTTP/1.1\" 500 225 - \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36\" \"rlc-simian.appspot.com\" ms=261 cpu_ms=53 cpm_usd=0.000025 instance=0 app_engine_release=1.9.27 \r\nW 2015-10-15 20:34:48.418\r\nNo admins defined! Configure admins in Admin Tools -> ACL Groups.\r\nW 2015-10-15 20:34:48.446\r\nNo admins defined! Configure admins in Admin Tools -> ACL Groups.\r\nE 2015-10-15 20:34:48.590\r\n'ascii' codec can't encode character u'\\xae' in position 726: ordinal not in range(128)\r\nTraceback (most recent call last):\r\n  File \"/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py\", line 1535, in __call__\r\n    rv = self.handle_exception(request, response, e)\r\n  File \"/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py\", line 1529, in __call__\r\n    rv = self.router.dispatch(request, response)\r\n  File \"/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py\", line 1278, in default_dispatcher\r\n    return route.handler_adapter(request, response)\r\n  File \"/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py\", line 1102, in __call__\r\n    return handler.dispatch()\r\n  File \"/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py\", line 572, in dispatch\r\n    return self.handle_exception(e, self.app.debug)\r\n  File \"/base/data/home/apps/s~rlc-simian/a56a3dc98d87.387476931731189739/simian/mac/admin/__init__.py\", line 153, in handle_exception\r\n    super(AdminHandler, self).handle_exception(exception, debug_mode)\r\n  File \"/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py\", line 570, in dispatch\r\n    return method(*args, **kwargs)\r\n  File \"/base/data/home/apps/s~rlc-simian/a56a3dc98d87.387476931731189739/simian/mac/admin/package.py\", line 170, in post\r\n    self.UpdatePackageInfoFromPlist(create_new=True)\r\n  File \"/base/data/home/apps/s~rlc-simian/a56a3dc98d87.387476931731189739/simian/mac/admin/package.py\", line 380, in UpdatePackageInfoFromPlist\r\n    self.NotifyAdminsOfPackageChangeFromPlist(plist_xml)\r\n  File \"/base/data/home/apps/s~rlc-simian/a56a3dc98d87.387476931731189739/simian/mac/admin/package.py\", line 283, in NotifyAdminsOfPackageChangeFromPlist\r\n    main_body = str(plist.GetXml(indent_num=2))\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xae' in position 726: ordinal not in range(128)\r\n````\r\n\r\nHere is the plist:\r\n\r\n````\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\r\n<plist version=\"1.0\">\r\n<dict>\r\n\t<key>_metadata</key>\r\n\t<dict>\r\n\t\t<key>created_by</key>\r\n\t\t<string>admin</string>\r\n\t\t<key>creation_date</key>\r\n\t\t<date>2015-10-16T02:58:46Z</date>\r\n\t\t<key>munki_version</key>\r\n\t\t<string>2.3.1.2535</string>\r\n\t\t<key>os_version</key>\r\n\t\t<string>10.10.3</string>\r\n\t</dict>\r\n\t<key>autoremove</key>\r\n\t<false/>\r\n\t<key>catalogs</key>\r\n\t<array>\r\n\t\t<string>unstable</string>\r\n\t</array>\r\n\t<key>description</key>\r\n\t<string>Adobe® Flash® Player is a cross-platform browser-based application runtime that delivers uncompromised viewing of expressive applications, content, and videos across screens and browsers.</string>\r\n\t<key>display_name</key>\r\n\t<string>Adobe Flash Player</string>\r\n\t<key>installed_size</key>\r\n\t<integer>17140</integer>\r\n\t<key>installer_item_hash</key>\r\n\t<string>b5eca33f72b1b419a7f9754b53cc8780b03e351520f189a43986a9e1f2aa22fa</string>\r\n\t<key>installer_item_location</key>\r\n\t<string>AdobeFlashPlayer-19.0.0.207.dmg</string>\r\n\t<key>installer_item_size</key>\r\n\t<integer>16364</integer>\r\n\t<key>minimum_os_version</key>\r\n\t<string>10.5.0</string>\r\n\t<key>name</key>\r\n\t<string>AdobeFlashPlayer</string>\r\n\t<key>package_path</key>\r\n\t<string>Install Adobe Flash Player.app/Contents/Resources/Adobe Flash Player.pkg</string>\r\n\t<key>receipts</key>\r\n\t<array>\r\n\t\t<dict>\r\n\t\t\t<key>installed_size</key>\r\n\t\t\t<integer>17140</integer>\r\n\t\t\t<key>packageid</key>\r\n\t\t\t<string>com.adobe.pkg.FlashPlayer</string>\r\n\t\t\t<key>version</key>\r\n\t\t\t<string>19.0.0.207</string>\r\n\t\t</dict>\r\n\t</array>\r\n\t<key>unattended_install</key>\r\n\t<true/>\r\n\t<key>uninstall_method</key>\r\n\t<string>removepackages</string>\r\n\t<key>uninstallable</key>\r\n\t<true/>\r\n\t<key>version</key>\r\n\t<string>19.0.0.207</string>\r\n</dict>\r\n</plist>\r\n````\r\n"}}