From: Nick Porter Date: Fri, 23 Jan 2026 08:28:40 +0000 (+0000) Subject: Attribute not found errors are consistent regardsless of having list specifier X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7f540c0d24ca55ff36bf4f0751e2bfdd05d23b9;p=thirdparty%2Ffreeradius-server.git Attribute not found errors are consistent regardsless of having list specifier now that the tokenizing parent is consistent in the two cases. --- diff --git a/src/tests/unit/condition/base.txt b/src/tests/unit/condition/base.txt index a6b6e96382b..97e6773b080 100644 --- a/src/tests/unit/condition/base.txt +++ b/src/tests/unit/condition/base.txt @@ -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 diff --git a/src/tests/unit/purify/cond_base.txt b/src/tests/unit/purify/cond_base.txt index 1770e4d8f99..7a44fb89429 100644 --- a/src/tests/unit/purify/cond_base.txt +++ b/src/tests/unit/purify/cond_base.txt @@ -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