WFS join with ValueReference using local namespaces fail to execute

Description

On a request like this one:

GeoServer fails as follows:

The issue happens in JoinExtractingVisitor, which is expecting to find aliases as prefixes, an unqualified type name, or one qualified with the internal prefix, for the properties, while in this case there is a local prefix instead, ns54.
Probably the easiest fix for this case is to preventively rewrite the filter so that it uses the expected prefix instead of the local one (due to how the rest of the JoinExtractingVisitor logic works)

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure