]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Attribute not found errors are consistent regardsless of having list specifier
authorNick Porter <nick@portercomputing.co.uk>
Fri, 23 Jan 2026 08:28:40 +0000 (08:28 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 23 Jan 2026 08:43:50 +0000 (08:43 +0000)
now that the tokenizing parent is consistent in the two cases.

src/tests/unit/condition/base.txt
src/tests/unit/purify/cond_base.txt

index a6b6e96382b5379eb5bb8e63430c03ff9e5553b1..97e6773b0807f4fe083a5c1c724e4f80fd9787ca 100644 (file)
@@ -543,14 +543,14 @@ match ERROR offset 10: Invalid array index '-1'
 #  @todo - bare word - this is likely treating the LHS as an enum which is impossible here
 #
 condition request.Foo == 'request.Foo'
-match ERROR offset 8: Attribute 'Foo' not found in namespace 'internal': Unresolved attributes are not allowed here
+match ERROR offset 8: Attribute 'Foo' not found.  Searched in: RADIUS, internal: Unresolved attributes are not allowed here
 
 # Bareword compared with bareword is true
 condition request.Foo+Bar == request.Foo+Bar
-match ERROR offset 8: Attribute 'Foo' not found in namespace 'internal': Unresolved attributes are not allowed here
+match ERROR offset 8: Attribute 'Foo' not found.  Searched in: RADIUS, internal: Unresolved attributes are not allowed here
 
 condition request.Foo+Bar == 'request.Foo+Bar'
-match ERROR offset 8: Attribute 'Foo' not found in namespace 'internal': Unresolved attributes are not allowed here
+match ERROR offset 8: Attribute 'Foo' not found.  Searched in: RADIUS, internal: Unresolved attributes are not allowed here
 
 condition request.User-Name+User-Password == 'request.Foo+Bar'
 match ((request.User-Name + User-Password) == 'request.Foo+Bar')
@@ -559,7 +559,7 @@ match ((request.User-Name + User-Password) == 'request.Foo+Bar')
 #  @todo - bare word - this is wrong
 #
 condition 'request.Foo+d' == request.Foo+Bar
-match ERROR offset 27: Attribute 'Foo' not found in namespace 'internal': Unresolved attributes are not allowed here
+match ERROR offset 27: Attribute 'Foo' not found.  Searched in: RADIUS, internal: Unresolved attributes are not allowed here
 
 #  Attribute tags are not allowed for unknown attributes
 condition request.Tunnel-Password:0 == 0
index 1770e4d8f999568c417ece0f4d642233a01dc373..7a44fb894293988d247a7054fe9b86015fd26b1c 100644 (file)
@@ -552,10 +552,10 @@ match ERROR offset 10: Invalid array index '-1'
 #  attributes MUST be prefixed with '&'.
 #
 xlat_purify_cond request.Foo == 'request.Foo'
-match ERROR offset 8: Attribute 'Foo' not found in namespace 'internal': Unresolved attributes are not allowed here
+match ERROR offset 8: Attribute 'Foo' not found.  Searched in: RADIUS, internal: Unresolved attributes are not allowed here
 
 xlat_purify_cond request.Foo == 'request.Foo'
-match ERROR offset 8: Attribute 'Foo' not found in namespace 'internal': Unresolved attributes are not allowed here
+match ERROR offset 8: Attribute 'Foo' not found.  Searched in: RADIUS, internal: Unresolved attributes are not allowed here
 #match ERROR offset 10: Attribute 'Foo' not found.  Searched in: RADIUS, internal: Unresolved attributes are not allowed here
 
 xlat_purify_cond not-a-list.User-Name == not-a-list.User-Name