This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Packman crashes with garbage database
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: jackjansen, reowen
Priority: normal Keywords:

Created on 2003-07-03 21:34 by jackjansen, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Messages (3)
msg16855 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-07-03 21:34
Packman crashes when you feed it a random HTML 
document, in stead of giving a decent error message.
msg16856 - (view) Author: Russell Owen (reowen) Date: 2003-07-03 23:14
Logged In: YES 
user_id=431773

The 2.3b2-2 installer may have improved this some (I'm not sure). Most incorrect URLs I tried gave a nice explanatory error message. However, the url "http://python.org/packman" reliably gives a traceback. Here's an example:

ExpatError: syntax error: line 1, column 62

File "Wapplication.py", line 45, in mainloop
      self.do1event(mask, wait)
File "FrameWork.py", line 194, in do1event
      self.dispatch(event)
File "FrameWork.py", line 227, in dispatch
      handler(event)
File "FrameWork.py", line 289, in do_mouseDown
      handler(partcode, wid, event)
File "Wapplication.py", line 203, in do_inMenuBar
      self.do_rawmenu(id, item, window, event)
File "FrameWork.py", line 314, in do_rawmenu
      self.do_menu(id, item, window, event)
File "FrameWork.py", line 321, in do_menu
      self.menubar.dispatch(id, item, window, event)
File "Wapplication.py", line 445, in dispatch
      self.menus[id].dispatch(id, item, window, event)
File "Wapplication.py", line 462, in dispatch
      W.CallbackCall(callback, 0, id, item, window, event)
File "Wbase.py", line 684, in CallbackCall
      return callback()
File "PackageManager.py", line 176, in domenu_openURL
      self.opendoc(url)
File "PackageManager.py", line 150, in opendoc
      PackageBrowser(url)
File "PackageManager.py", line 328, in __init__
      messages = self.setuppimp(url)
File "PackageManager.py", line 251, in setuppimp
      self.pimpdb.appendURL(url)
File "pimp.py", line 259, in appendURL
      dict = plistlib.Plist.fromFile(fp)
File "plistlib.py", line 211, in fromFile
      plist = p.parse(pathOrFile)
File "plistlib.py", line 302, in parse
      parser.ParseFile(file)
msg16857 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-07-21 22:04
Logged In: YES 
user_id=45365

Fixed in PackageManager.py rev. 1.13. I'll be filing another bug 
report for plistlib later (where the real fix should be, I think).
History
Date User Action Args
2022-04-10 16:09:41adminsetgithub: 38787
2003-07-03 21:34:33jackjansencreate