updatecenter2
  1. updatecenter2
  2. UPDATECENTER2-2188

Updatetool can hang if featured software feed has bad image URL

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: B50
    • Fix Version/s: None
    • Component/s: updatetool
    • Labels:
      None

      Description

      If the featured software feed has a bad image URL, then the code hangs in FeaturedDetailsPanel._create_image_from_URL on this line:

      stream = urllib.urlopen(image_url)

      And example of the bad feed xml entry:

      <content type="application/xml">
      <icon>http://pkgshare.sfbay.sun.com/feeds/WebSpaceServer.png</icon>
      <app_type>other</app_type>
      <size>100352</size>
      <version>10</version>
      </content>

      In this case "pkgshare.sfbay.sun.com" is an invalid server.

      The code should promptly fail the connection instead of hanging.

      Eventually (minutes) updatetool does come back reporting an error, but it should not hang so long.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Joe Di Pol
            Reporter:
            Joe Di Pol
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: