Repository navigation
fix(datamapping): read a sort key through the alias of a detached criteria that has the name of a property - #17308
Conversation
…tached criteria against the rest of its path The check of the sort argument read a key that starts with the alias of a detached criteria as a path from the queried class. A key whose alias is not the name of a property, such as b.unknown for the alias b, was not checked beyond the alias, and a key whose alias is the name of a property, such as author.author.name for the alias author, was rejected although it is a path through the alias. A detached criteria whose query is given its alias now passes the alias to the check. A key that starts with it is read as a path from the queried class first, and only when it is not one is the alias stripped, once, and the rest checked as a path from the queried class. A key without the alias, and a query without one, are checked as before.
Carries #17255 (a JPA entity with several @id properties compiles), #17265 (the OAuth2 plugin accepts an intranet authorization url and redirects once on an invalid one), #17072 (a sort by a collection joins it without changing what the query fetches) and #17073 (a sort can start with the alias of the queried class), from 7.0.x with 7fa74e0, and #17036 (runtime.groovy is only read when application.groovy exists), from 7.2.x. - GrailsHibernateQueryUtils keeps 7.x's populateArgumentsForListQuery and addSortArguments, which defer the fetches a collection sort would multiply, with 8.0.x's validation: an invalid direction is rejected before the sort is read, and every sort property is validated. - HibernateSession imports HashMap and LinkedHashMap. - JpaEntityTransformSpec keeps 8.0.x's features and adds 7.x's. - UndefinedAliasSortSpec and CollectionFetchPaginationSpec register their domain classes with registerDomainClasses, as the other specs on 8.0.x do. - The changes to the 7.0.18 notes are also in the 8.0.1 section of upgrading80x.adoc and in the 8.0.1 part of the upgrade skill, under "GORM for Hibernate 5". Ten rows of UndefinedAliasSortSpec fail on 8.0.x until #17308, in that spec and in RootAliasSortLegacySpec, which runs it with the setting disabled: 20 failures. They sort through a root alias that has the name of a property, as club.club.name for new DetachedCriteria(Team, 'club') and author.author.publisher.name for the alias author, with the sort argument or a sort map. The validation of the sort argument that 8.0.x adds does not know the alias of the criteria and rejects such a key with "Invalid sort property". #17308 makes the validation follow the alias.
…n 8.0.x 8.0.x now has the sort through the alias of the queried class from 7.0.x, so a key that resolves only through the alias of a detached criteria sorts with Hibernate 5. The spec asserts the order in the sort argument, a sort map and a sort of the criteria, and the notes say how the check of the sort argument reads such a key in the note on the alias of the queried class rather than in a note of their own.
matrei
left a comment
There was a problem hiding this comment.
First round, at 47375f9. The base is 8.0.x at 482fbed. That is the merge of 7.2.x that brought #17073, along with the 20 failures that this pull request fixes.
Following #17274, each point says whether it is a change from 8.0.x that this pull request makes, a defect of the code it adds, or a case that behaves the same on 8.0.x. I hold my approval only for the points under "Still open".
What it fixes
The 20 failures reproduce on 8.0.x and pass here, and every row of the table in the description holds with GORM for Hibernate 5. I ran more keys with three teams: United First of the club United, Arsenal First of the club Arsenal, and Nomads, which has no club. A key that resolves only through an alias with the name of a property now sorts as sort() with the same key does:
new DetachedCriteria(Team, alias), Hibernate 5 |
8.0.x (482fbed) | This head |
|---|---|---|
alias club: list(sort: 'club.club.name'), also with order: 'desc', as a sort map, with ignoreCase: false, with a closure of more criteria, and after build { } or where { } |
Invalid sort property |
Arsenal First, United First, as with sort('club.club.name') |
the same with max: 1 and offsets 0 and 1, and get(sort: 'club.club.name', max: 1) |
Invalid sort property |
one team on each page, totalCount 2 |
alias name: list(sort: 'name.name') |
Invalid sort property |
Arsenal First, Nomads, United First, as with sort('name.name') |
alias address, of an embedded address: list(sort: 'address.address.city'); alias club: list(sort: 'club.club.id') |
Invalid sort property |
sorted by the city, and by the id of the club |
A key that is a path from the team keeps that meaning, as club.name does for the alias club. t.name, t.club.name, t.id, t.address.city, t.foo.bar and the keys after this give the results of 8.0.x. With Hibernate 7, only count changes; see below.
Still open
-
countwith a key whose rest after the alias is not a path: a change from 8.0.x, on a result that 8.0.x returns with Hibernate 5 and with Hibernate 7. The description says that no call that returned results returns other results. These counts did:new DetachedCriteria(Team, 't')8.0.x, Hibernate 5 This head, Hibernate 5 8.0.x, Hibernate 7 This head, Hibernate 7 count(sort: 't.unknown'), also withorder: 'desc', as a sort map, and with't.address.unknown'3 Invalid sort property3 Invalid sort propertycount(sort: 't.club.unknown')2 Invalid sort property3 Invalid sort propertysort('t.unknown').count(), for comparison3 3 3 3 The check now strips an alias that is not the name of a property, and checks the rest. On 8.0.x, the check leaves a dotted key whose first segment is not a property to the query, and a count doesn't sort. The same count through
sort()still returns 3. So the old result doesn't contradict what the call asks for, and under "Fixes That Change a Result" I don't see a case for this change on 8.0.x.The alias could be stripped only when it is also the name of a property of the queried class. That is the only case where 8.0.x's check rejects a key that the query reads through the alias, so the counts above would stay:
if (entity != null && rootAlias != null && !rootAlias.isEmpty() && sort.startsWith(rootAlias + '.') && resolveProperty(entity, rootAlias) != null && !isPropertyPath(entity, sort.split("\\."))) {
I tried that line at this head:
- The 20 rows pass.
- Of the calls I ran with Hibernate 5 and 7, the only ones that change are calls that threw on 8.0.x. They give the results in the table under "What it fixes".
t.unknownandt.club.unknownbehave as on 8.0.x: a Hibernate 5 list throws Hibernate'sQueryException, and a count returns the count.- The two rows of the new feature that expect
Invalid sort propertyfor those keys fail.
The third row of the description's table, and the sentences on
b.unknownin the note and the skill, would then say what 8.0.x does. -
The sentence that this pull request adds to the 8.0.1 note on an invalid rest: a defect of the text it adds. It says: "in the
sortargument or a map of sort properties, the check that Grails 8 makes of every sort key rejects it withIllegalArgumentException: Invalid sort property". The paragraph before it covers both the alias of a detached criteria andthis. Afterthis, an invalid rest is not checked, here as on 8.0.x:Team.where { … }.list(sort: 'this.unknown')throws Hibernate'sQueryException. So does the same key in thesortargument of a criteria query, of a dynamic finder and of a detached criteria without an alias.Team.list(sort: 'this.unknown')throwsIllegalArgumentException: Unable to locate Attribute.
Naming the alias of a detached criteria in that sentence, or the exception of each case, would keep it accurate, whichever way the first point goes. The same applies to the bullet in the skill.
Not blocking
- The description's bullet on Hibernate 7: it says that Hibernate 7 rejects every sort that starts with the alias, before and after this change. That holds for
listandget, butcountnow accepts such a key.new DetachedCriteria(Team, 'club').count(sort: 'club.club.name')wasInvalid sort propertyand is now 2, as with Hibernate 5, andnew DetachedCriteria(Team, 'name').count(sort: 'name.name')is now 3. These are calls that threw and now work, also with the line above, so the bullet could say that only the list still rejects these keys. validateSortProperty(PersistentEntity, String, String): onlyDynamicFindercalls it, so it could be private. The only new public method on the patch branch would then be the overload ofpopulateArgumentsForCriteriathatDetachedCriterianeeds.
What I ran
-
The Hibernate 5 and 7 tests: CI is still running at this head.
-
The new tests of this head and the 20 rows on 8.0.x (482fbed):
UndefinedAliasSortSpecandRootAliasSortLegacySpecfail there, with 20 failures.- Four rows of the new features of
SortArgumentValidationSpecfail there:name.name,club.club.name,t.unknownandt.club.unknown. - The new feature of
DynamicFinderCoverageSpecpasses there too, since it pins a datastore that doesn't give a query the alias.
All four specs pass at this head.
-
The rows above: 82 calls with Hibernate 5 and 7, on 8.0.x and at this head. They cover:
list, a sort map,get,count, paged lists,sort(), andbuildandwhere;- aliases with the name of an association, of a property and of an embedded component, and aliases with the name of none;
- paths to an identifier, and keys after
this.
-
The line above: at this head, with the same specs and 77 of the calls. The other five go through
sort(), which the check doesn't read.
…e alias is the name of a property The check of the sort argument leaves a dotted key whose first segment is not a property to the query, and a count does not sort, so a key such as t.unknown after the alias t gave the count on 8.0.x. The check now strips the alias only when it is also the name of a property of the queried class, the one case in which it rejected a key that the query reads through the alias, so such a key is left to the query as before. The note on the sort through the alias of the queried class keeps its sentence on an invalid remaining property as on 8.0.x, and the check is private to DynamicFinder.
jdaugherty
left a comment
There was a problem hiding this comment.
At b25fc51.
count with a key whose rest after the alias is not a path. Taken: the check strips the alias only when it is also the name of a property of the queried class, with the condition from your review, and its javadoc says so. The two rows of the rejection feature of SortArgumentValidationSpec for t.unknown and t.club.unknown are gone. The feature has a row for a direction after an alias with the name of an association, club.club.name desc, and a new feature pins that count with t.unknown, also with order: 'desc', as a sort map and through sort(), and with t.club.unknown returns the count. The Hibernate 7 spec gets the counts with club.club.name, name.name, t.unknown and t.club.unknown, and the rejection of club.club.unknown.
With three teams, United First of the club United, Arsenal First of the club Arsenal, and Nomads, which has no club:
new DetachedCriteria(Team, alias) |
8.0.x (482fbed), Hibernate 5 | This head, Hibernate 5 | 8.0.x, Hibernate 7 | This head, Hibernate 7 |
|---|---|---|---|---|
t: count(sort: 't.unknown'), also with order: 'desc' and as a sort map |
3 | 3 | 3 | 3 |
t: count(sort: 't.club.unknown') |
2 | 2 | 3 | 3 |
t: sort('t.unknown').count() |
3 | 3 | 3 | 3 |
t: list(sort: 't.unknown') and list(sort: 't.club.unknown') |
Hibernate's QueryException |
Hibernate's QueryException |
Invalid sort property |
Invalid sort property |
club: count(sort: 'club.club.name') |
Invalid sort property |
2 | Invalid sort property |
2 |
name: count(sort: 'name.name') |
Invalid sort property |
3 | Invalid sort property |
3 |
club: list(sort: 'club.club.name'), also as a sort map, and get(sort: 'club.club.name', max: 1) |
Invalid sort property |
Arsenal First, United First; get: Arsenal First |
Invalid sort property |
Invalid sort property |
name: list(sort: 'name.name') |
Invalid sort property |
Arsenal First, Nomads, United First | Invalid sort property |
Invalid sort property |
club: list and count with club.club.unknown; name: count(sort: 'name.unknown') |
Invalid sort property |
Invalid sort property |
Invalid sort property |
Invalid sort property |
no alias: count(sort: 'club.club.name') |
Invalid sort property |
Invalid sort property |
Invalid sort property |
Invalid sort property |
The calls that change are the ones that threw on 8.0.x.
The sentence on an invalid rest in the 8.0.1 note. Taken: it is gone from the note and from the bullet of the skill, which read as on 8.0.x again there. What this pull request adds to both is that the check reads author.author.name as a path from the queried class first and through the alias second, so it no longer rejects it.
The bullet on Hibernate 7 in the description. Taken: it says that list and get still reject these keys, and that count returns 2 for club.club.name with the alias club and 3 for name.name with the alias name. The table and "Results that change" follow the narrowed check, and the title says what the check now does.
validateSortProperty(PersistentEntity, String, String). Taken: it is private. The only new public method is the overload of populateArgumentsForCriteria that DetachedCriteria calls.
What I ran at this head:
grails-data-hibernate5-core: 3834 tests, 0 failures, 176 skipped, withUndefinedAliasSortSpecandRootAliasSortLegacySpec, 93 each, andSortArgumentValidationSpec, 26.grails-datamapping-core: 1833 tests, 0 failures.- Hibernate 7:
SortArgumentValidationSpec48,CriteriaMethodInvokerSpec55,HqlListQueryBuilderSpec52 andListOrderBySpec2, 0 failures. - The integration tests of the Hibernate 5 example application: 23, 0 failures, 3 skipped.
codeStyleofgrails-datamapping-core,grails-data-hibernate5-coreandgrails-data-hibernate7-core.- The rows of the table: 19 calls with Hibernate 5 and with Hibernate 7, on 8.0.x at 482fbed and at this head.
|
I ran the base and the head on the same rows, to check the Method. 8.0.x at 482fbed and this head, each with GORM for Hibernate 5 and with GORM for Hibernate 7. One probe over 4 aliases (none, Hibernate 5, 9 of 176 rows differ
Hibernate 7, 3 of 176 rows differ, all
This confirms @matrei's first open point: the |
|
Those rows are from 47375f9. b25fc51 takes matrei's narrowing: the alias is read only when it is also the name of a property, so |
matrei
left a comment
There was a problem hiding this comment.
Second round, at b25fc51. Since my review at 47375f9, b25fc51 makes these changes:
- the check reads a sort key through the alias of a detached criteria only when the alias is also the name of a property of the queried class;
- the check with the alias is now private;
- the sentence on an invalid rest is gone from the note and the skill again.
Following #17274, each point says whether it is a change from 8.0.x that this pull request makes, a defect of the code it adds, or a case that behaves the same on 8.0.x. Nothing is left that I hold my approval for.
Fixed
-
countwith a key whose rest after the alias is not a path (my review 6171092151): these counts return 8.0.x's results again, with Hibernate 5 and with Hibernate 7:new DetachedCriteria(Team, 't').count(sort: 't.unknown')returns 3, also withorder: 'desc'and as a sort map.count(sort: 't.club.unknown')returns 2 with Hibernate 5 and 3 with Hibernate 7.
A Hibernate 5
listwith those keys throws Hibernate'sQueryExceptionagain, as on 8.0.x. The condition is the one I tried, and the 77 calls of my probes that I ran with it give the same results here. Of all 82 calls, only those that threwInvalid sort propertyon 8.0.x change:- With Hibernate 5,
club.club.name,club.club.idandaddress.address.citysort through an alias with the name of an association or of an embedded component. That holds inlist, a sort map,get, a page andcount, also afterbuild { }andwhere { }.name.namesorts through an alias with the name of a property. - With Hibernate 7, only
countchanges, to 2 and 3.
-
The sentence on an invalid rest in the 8.0.1 note (my review 6171092151): the note and the skill read as on 8.0.x again there. What this pull request still adds to both is that the check reads
author.author.nameas a path from the queried class first and through the alias second, which holds. -
The bullet on Hibernate 7 in the description: it now says that
countaccepts a key through an alias with the name of a property, whilelistandgetstill reject it. That matches my rows. -
validateSortProperty(PersistentEntity, String, String): it is private. The only new public method is the overload ofpopulateArgumentsForCriteriathatDetachedCriteriacalls.
Not blocking
- The 8.0.x sentence on an invalid rest (behaves the same on 8.0.x, optional): "An invalid remaining property, such as
b.unknown, now fails as an unqualified invalid property does" came with the 7.0.18 note, where both threw Hibernate'sQueryException. On 8.0.x, the check rejectsunknownin thesortargument withIllegalArgumentException: Invalid sort property.b.unknown, andthis.unknownin a where query, still throw Hibernate'sQueryException, here as on 8.0.x. The sentence could say that such a key fails in the query, but that is not for this pull request.
What I ran
-
The tests: CI is still running at this head, with no failure so far.
-
The tests of this head on 8.0.x (482fbed):
- The 20 rows of
UndefinedAliasSortSpecandRootAliasSortLegacySpecfail there. - Of the 26 cases of the Hibernate 5
SortArgumentValidationSpec, two fail there: the rows withname.nameandclub.club.name. - Of the 48 cases of the Hibernate 7 spec, one fails there: the new feature with the counts.
- The new counts with
t.unknownandt.club.unknownpass there as well, since they pin 8.0.x's result.
At this head they all pass, with
DynamicFinderCoverageSpec(52). - The 20 rows of
-
The rows above: 82 calls with Hibernate 5 and with Hibernate 7, on 8.0.x and at this head. They cover:
list, a sort map,get,count, pages andsort(), also afterbuild { }andwhere { };- aliases with the name of an association, of a property and of an embedded component, and aliases with the name of none;
- paths to an identifier, and keys after
this.
borinquenkid
left a comment
There was a problem hiding this comment.
Approved at b25fc51.
I ran the base (8.0.x at 482fbed) and this head on the same rows: 4 aliases (none, t, club, name), 11 sort keys, 4 forms (list(sort:), a sort map, sort(key).list(), count(sort:)), 176 rows per datastore, with GORM for Hibernate 5 and with GORM for Hibernate 7.
Hibernate 5, 6 of 176 rows differ. All six are the fix: club.club.name for the alias club, and name.name for the alias name, each as list, as a sort map and as count. They threw Invalid sort property on 8.0.x and sort or count now.
Hibernate 7, 2 of 176 rows differ. Both are count: the same two keys, which threw and now return 2. list, the sort map and sort(key).list() are identical on both, since Hibernate 7 does not read an alias in a sort on either.
What the earlier head changed and this one does not. On 47375f9, count(sort: 't.unknown') and the list and sort-map forms with t.unknown differed from 8.0.x. Here every one of those rows is identical to 8.0.x, so the count finding is closed. The check with the alias is private, so no API is added on a patch line.
I have no finding. The tests and the upgrade note match what I ran.
Carries, from 7.x: #17255, #17265, #17072, #17073 and #17036, with 7fa74e0, which makes grails-data-hibernate5-core compile after #17072 and #17073; and from 8.0.x: #17295 (nimbus-jose-jwt 10.11), #17076 (with Hibernate 7, deleteAll and updateAll reject max and offset), #16725 and #17296 (the mongodb-developer skill and the scoped agent guides), #17024 (Spock conditions in if blocks and loops are asserted), #16852 and #17029 (setup-gradle 6.4.1 and setup-java 6.3.0), and #17308 (the check of the sort argument reads a key through the alias of a detached criteria that has the name of a property). - AGENTS.md keeps 8.1.x's description of grails-forge and takes 8.0.x's links to the agent guides of build-logic and grails-gradle.
Carries #17255, #17265, #17072, #17073 and #17036 from 7.x, with 7fa74e0, and #17295, #17076, #16725, #17296, #17024, #16852, #17029 and #17308 from 8.0.x. - The sort of Hibernate 5 is the 7.0.x code with the rejection of a sort by an alias that the query does not define, as the merge-up section of #17074 asks, and keeps the declared root alias and this, as #17073 asks of the merge into 9.0.x. AbstractHibernateQuery strips the root alias once, as on 7.0.x, then checks the rest from the queried class or from a declared alias and throws "Invalid sort property" for anything else. Both addOrderPossiblyNested methods of GrailsHibernateQueryUtils handle the root alias and this first and then reject a name that is not a property. GrailsHibernateUtil keeps 9.0.x's rejection. - UndefinedAliasSortSpec has 9.0.x's features for an undefined alias and 7.x's for the root alias, so a sort through an alias with the name of a property sorts, with #17308's check, and an undefined alias is rejected. - dependencies.gradle keeps 9.0.x's pins, with nimbus-jose-jwt 10.11. - The upgrade skill keeps 9.0.x's side, the Grails 9 skill, which has no 8.0.1 part. - The 9.0.x job of benchmark.yml takes setup-java 6.3.0 and setup-gradle 6.4.1, as the other jobs do. - The count features of #17308's SortArgumentValidationSpecs follow 9.0.x, where a count checks its sort as list does (#17074). With Hibernate 5, count(sort: 't.club.unknown') for the alias t is rejected, as club.unknown is; t.unknown still gives the count. With Hibernate 7, which does not sort through the alias of the queried class (#17167), a count rejects such a key, as list and get do.
Brings the merge of 7.2.x with the Hibernate 5 sort and join type changes of apache#17072 and apache#17073, apache#17308, which reads a sort key through the alias of a detached criteria and fixes the Hibernate 5 specs that the sort check rejected, and the test of nested association blocks of apache#16559. This branch changes nothing that they change, apart from the upgrade note and the skill, which merged without a conflict and keep the entries of both sides in their order. apache#17308 leaves a static list with a join type in its fetch argument as it was: it has no alias, and calls the overload without one.
Carries #17255, #17265, #17072, #17073 and #17036 from 7.x, with 7fa74e0, #17295, #17076, #16725, #17296, #17024, #16852, #17029 and #17308 from 8.0.x, and 9.0.x's merge of them, which keeps the rejection of a sort by an alias that the query does not define (#17074) beside the sort through the root alias of 7.0.x.
Description
Grails 8 checks the
sortargument oflist,countandgetof a detached criteria, and each key of a map of sort properties, against the properties of the queried class (upgrade note 60 of Grails 8.0). That check does not know the alias that a detached criteria can give the queried class, as innew DetachedCriteria(Book, 'author').The merge of 7.2.x into 8.0.x (482fbed) brought the sort through that alias from Grails 7.0.18 (#17073). With GORM for Hibernate 5, a sort that starts with the alias sorts by the rest of its path, and when the alias has the name of a property, a key that is not a path from the queried class is read through the alias:
author.author.namesorts by the name of the author fornew DetachedCriteria(Book, 'author'). The check rejects such a key in thesortargument and in a sort map withInvalid sort property, while the same key given withsort('author.author.name')sorts. On 8.0.x at 482fbed, ten rows ofUndefinedAliasSortSpecfail for that reason, in that spec and inRootAliasSortLegacySpec, which runs it withgrails.gorm.leftJoinAssociationSortdisabled, 20 failures in all:a root alias named #alias is used when the path does not resolve through a property:club.club.namefor the aliasclub, andname.namefor the aliasname(2 rows).a nested LEFT sort keeps an empty collection with root alias #rootAlias ..., for the aliasplayers, the fetchplayers.players.teamand the sortplayers.players.team.name, as the sort argument and as a sort map, with and without pagination (4 rows).a LEFT #request of #joinPath keeps a book whose author has no publisher with root alias author ..., forauthor.author.publisherand the sortauthor.author.publisher.nameas the sort argument, withjoinand withfetch, with and without pagination (4 rows).This pull request makes the check follow the alias where it rejected such a key. A detached criteria whose query is given its alias passes it to the check, through a new overload of
DynamicFinder.populateArgumentsForCriteria. When the alias is also the name of a property of the queried class, a key that starts with it is read as a path from the queried class first, soauthor.namekeeps its meaning for the aliasauthor, and only when it is not one is the alias stripped, once, and the rest checked as a path from the queried class, which is how the query reads the key. Every other key, including one that starts with an alias that is not the name of a property, is checked exactly as before. With it, the ten rows pass.With three teams, United First of the club United, Arsenal First of the club Arsenal, and Nomads, which has no club:
new DetachedCriteria(Team, alias), with GORM for Hibernate 5club:list(sort: 'club.club.name'), also as a sort map, andget(sort: 'club.club.name', max: 1)Invalid sort propertysort('club.club.name')gives;getgives Arsenal Firstclub:count(sort: 'club.club.name')Invalid sort propertyname:list(sort: 'name.name')andcount(sort: 'name.name')Invalid sort propertyt:list(sort: 't.unknown')andlist(sort: 't.club.unknown')QueryException: could not resolve property, from Hibernatet:count(sort: 't.unknown'), also as a sort map, andcount(sort: 't.club.unknown')club:list(sort: 'club.name'); aliast:list(sort: 't.name')club:club.club.unknown; aliasname:name.unknownInvalid sort propertyclub.club.nameInvalid sort propertyt:t.name desc,t..nameort.Invalid sort propertylistandgetreject every sort that starts with the alias of the queried class, withInvalid sort property, before and after this change. Hibernate 7: resolve the root alias in detached-criteria sorts and restrictions #17167 tracks sorting through that alias with Hibernate 7.countdoes not sort, so it now accepts a key that resolves through an alias with the name of a property:new DetachedCriteria(Team, 'club').count(sort: 'club.club.name')wasInvalid sort propertyand is 2, andnew DetachedCriteria(Team, 'name').count(sort: 'name.name')is 3. Its other counts are the same as on 8.0.x, such as 3 forcount(sort: 't.club.unknown').sort()is not checked, as before.Results that change
sortargument or a sort map that resolves only through an alias of the detached criteria with the name of a property, such asauthor.author.namefor the aliasauthor, sorts by the rest of its path inlistandget, andcountreturns the count, where all three threwInvalid sort property. With GORM for Hibernate 7,countreturns the count, andlistandgetstill throw.The 8.0.1 note on the sort through the alias of the queried class in the upgrade guide says that the check no longer rejects such a key, and the upgrade skill has the same in its 8.0.1 part.
Contributor Checklist
Please review the following checklist before submitting your pull request. Pull requests that do not meet these requirements may be closed without review.
Issue and Scope
7.0.x,7.2.x,8.0.x): Bug fixes only, released as the next patch version. No new features or API changes. A bug fix targets the oldest release branch that has the bug and still gets releases, and is merged up.8.1.xbefore 8.1.0): New features are welcome, but breaking existing APIs must be avoided.9.0.xbefore 9.0.0): Reserved for major changes. Breaking API changes are permitted.grails-skills/upgrade/skills/grails-upgrade/SKILL.md) has the same entry.Code Quality
./gradlew build --rerun-tasks../gradlew codeStyleand resolved any violations. See Code Style for details.Licensing and Attribution
Documentation