Commit b8a4e55
committed
Use versioned extension cache entry, if we have...
a version. Otherwise the extension JNLP will be downloaded a 2nd time and
a second entry will be created:
::i=0\13::l=http://localhost/myapp/jnlp.extension/common.jnlp::a=1706698483984::
::i=0\0::l=http://localhost/myapp/jnlp.extension/common.jnlp::v=6.2.3::a=1706698483198::
Because the cache lookup is called twice on extensions. The second time without the version
so the versioned entry is not used. Instead a new entry i=0\13 without a version is created.
This works fine as long as not a new version of common.jnlp::v=6.2.4 is lookuped.
Then the sorting in line 246 of net/adoptopenjdk/icedteaweb/resources/cache/CacheImpl.java
fails withe a NPE, because it's missing the version.1 parent 1be00cf commit b8a4e55
File tree
2 files changed
+27
-2
lines changed- core/src/main/java/net
- adoptopenjdk/icedteaweb/jnlp/element/resource
- sourceforge/jnlp
2 files changed
+27
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
52 | 77 | | |
53 | 78 | | |
54 | 79 | | |
| |||
59 | 84 | | |
60 | 85 | | |
61 | 86 | | |
62 | | - | |
| 87 | + | |
63 | 88 | | |
64 | 89 | | |
65 | 90 | | |
| |||
0 commit comments