Plugins repo SHA1 is case sensitive
Paul Webster <Paul.Webster.adq5bb-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
This caught me out yesterday ... I used a different tool to calculate the SHA1 checksum of a new plugin build zip file. It provided the resulting Hex string with upper case A-F but I did not notice the change. However, the LMS plugin downloader/installer does a simple string comparison between the checksum that it calculates for the downloaded file and the value in the plugin repo xml. So, while the hex numeric values are the same, the text versions are different so it fails to install. Changing the LMS plugin downloader to ignore case is probably the correct solution ... since a hex representation of SHA1 digest can legitimately use either case. But if this is not back-ported then it could lead to confusion when something installs on 8.3 but fails on older versions. An alternative approach would be to have the LMSCommunity plugin importer perform a conversion to lower-case or perhaps refuse to import if upper-case present (and issue a warning in Github ... and even better ... send a notification to the plugin author). Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin ------------------------------------------------------------------------ Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=115689