Skip to content

Update Vue profile to 4.1.0 - #11444

Closed
ZacharyKlein wants to merge 5 commits into
4.0.xfrom
ZacharyKlein-patch-1
Closed

ZacharyKlein wants to merge 5 commits into
4.0.xfrom
ZacharyKlein-patch-1

Conversation

@ZacharyKlein

Copy link
Copy Markdown
Contributor

Upgrades Vue CLI to v3, fixes several security vulnerabilities, cleans up outdated code in the initial project.

@jdaugherty
jdaugherty deleted the ZacharyKlein-patch-1 branch October 3, 2025 16:14
codeconsole added a commit that referenced this pull request Sep 9, 2026
The controller AST transformer emitted the ALLOWED_METHODS_HANDLED request-attribute
guard twice into the same generated wrapper - once from convertToMethodAction and
again from wrapMethodBodyWithExceptionHandling - producing two byte-identical blocks
where the second could never do anything, because the first had already set the
attribute. It also emitted the guard, and its finally-block cleanup, for controllers
that declare no allowedMethods at all.

An action on a controller with no allowedMethods was paying four dynamic request
property gets, two getAttribute, a setAttribute, a removeAttribute and a compareEqual
per request for a guard that could never fire. Each request property get goes through
an indy callsite and RequestContextHolder, so this was not free.

The duplicate emission is removed, and the bookkeeping is now generated only for
controllers that declare a non-empty allowedMethods map. Gating it per action rather
than per controller looks equivalent but is not: the marker means "an action has
already begun handling this request" (gh-11444), so an unrestricted action must still
set it, or a restricted action it invokes programmatically starts rejecting the
request. Controllers that use allowedMethods generate byte-identical code to before.

Adds coverage for the command-object path, which had none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants