compiled bytecode references hardwired extension version

Description

when Lucee generates bytecode (which the admin is deployed as) it includes a hardwired reference to the extension bundle version, which Lucee then goes to try and download from the update provider

if ((Caster.toBooleanValue(paramPageContext.us().get(this.keys[116])) && ExtensionExists.call(paramPageContext, "B737ABC4-D43F-4D91-8E8E973E37C40D1B"))) { paramPageContext.write(" \r\n\t\t\t\t"); paramPageContext.set(paramPageContext.localTouch(), this.keys[119], FunctionHandlerPool.invoke(paramPageContext, new Object[] { paramPageContext.us().get(KeyConstants._DATA) }, "org.lucee.extension.image.functions.ImageRead", "lucee.image.extension", , "1.0.0.46-SNAPSHOT"));

https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/lucee/runtime/functions/FunctionHandlerPool.java#L59

Environment

None

Activity

Show:

Zac Spitzer 23 September 2022 at 09:27

tested, confirmed that the admin no longer tries to download the older image extension when a new one than bundled is installed

Michael Offner 23 September 2022 at 09:25

i extended the bundle loader with the option “version set only matters when downloading a bundle“, that way Lucee is happy if it found locally a matching bundle with a different version. Only if nothing is found and it has to download it, it will donload it in the current version and then also use that version.

https://github.com/lucee/Lucee/commit/7943a0100d9597232a0ecbbc20163965772b5b47

Michael Offner 23 September 2022 at 08:31

this is the same for tags

Zac Spitzer 6 September 2022 at 15:12

this PR avoids the hanging in the admin as it detects the problem and only tries once

https://github.com/lucee/Lucee/pull/1783

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 6 September 2022 at 14:08
Updated 23 September 2022 at 09:27
Resolved 23 September 2022 at 09:27

Flag notifications