Uploaded image for project: 'Minecraft Launcher'
  1. Minecraft Launcher
  2. MCL-2138

Libraries with a custom maven url are not redownloaded when the remote checksum (.sha1) changes.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: 1.3.8
    • Fix Version/s: None
    • Component/s: None
    • Environment:
      OS: Mac OS X v10.9
      Java Version: 1.7.0_40
    • Confirmation Status:
      Unconfirmed

      Description

      The launcher automatically redownloads any library from the mojang servers when the server-side checksum (.sha1) does not equal the client-side one (.sha). However, libraries with a custom maven url are not redownloaded when the checksum doesn't match.

      Is this actually a launcher bug or is this intended behaviour, and when it is intended, i'm interested to know why it is intended.

      ~ Jeffrey Kog

      Update
      After looking in the source of the launcher (Yes, i know you don't want us decompiling stuff, but i only looked for the potential cause) i found out that this has to be intended, because in net.minecraft.launcher.versions.CompleteVersion in the method getRequiredDownloadables i found this:

          if ((!local.isFile()) || (!library.hasCustomUrl())) {
              neededFiles.add(new ChecksummedDownloadable(proxy, url, local, ignoreLocalFiles));
          }
      

      That means that it only checks the remote checksum when the library doesn't exist locally, or has no custom maven url.

      I'm interested to hear what the reason is for disabling this, because it makes downloading libraries for mods (and automatically updating them without modifying the client-side profile) a lot harder.
      Have a nice day!

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeffreykog Jeffrey Kog
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: