Commit b333432
committed
fix(plugin-manager): surface plugin update validation failures instead of reporting up-to-date
When a plugin update is available, pre_plugin_checks validates it by
re-downloading the update's files and verifying their SHA256/MD5. On any
failure it reverted the cached .plg to the installed version and the check
returned success, so the Plugins page showed "up-to-date" — hiding the
available update entirely.
This is most visible when the root filesystem is full: the (often large) txz
can't be downloaded for the hash check, validation fails, and the update
silently disappears with no error shown to the user.
Record the available version and failure reason in a marker file and render an
"Update validation failed" state (with the reason as a tooltip) in the Plugins
page instead of the silent revert. The marker is cleared once validation
passes or the plugin is updated/installed.1 parent cc6a800 commit b333432
3 files changed
Lines changed: 41 additions & 2 deletions
File tree
- emhttp/plugins/dynamix.plugin.manager
- include
- post-hooks
- pre-hooks
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
189 | 207 | | |
190 | 208 | | |
| 209 | + | |
191 | 210 | | |
192 | 211 | | |
193 | 212 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 | | |
47 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
48 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
49 | 67 | | |
50 | 68 | | |
51 | 69 | | |
| |||
0 commit comments