Skip to content

NIFI-11576 Fixed XMLReader to now allow for handling name spaced attributes when the schema is inferred.#10914

Open
dan-s1 wants to merge 1 commit intoapache:mainfrom
dan-s1:NIFI-11576
Open

NIFI-11576 Fixed XMLReader to now allow for handling name spaced attributes when the schema is inferred.#10914
dan-s1 wants to merge 1 commit intoapache:mainfrom
dan-s1:NIFI-11576

Conversation

@dan-s1
Copy link
Contributor

@dan-s1 dan-s1 commented Feb 17, 2026

Summary

NIFI-11576
The bug in this case was the code to create the schema and the code that parsed the data used two different methods on how to retrieve the attribute name thereby preventing the ability to retrieve the values of the attributes. The XmlRecordSource class used javax.xml.namespace.QName method getLocalPart while class XMLRecordReader used javax.xml.namespace.QName method toString which is the fully qualified name of the attribute which in the case of a name spaced attribute gives the fully qualified name. The fix was to have both classes use getLocalPart.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000
  • Pull request contains commits signed with a registered key indicating Verified status

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using ./mvnw clean install -P contrib-check
    • JDK 21
    • JDK 25

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

@dan-s1 dan-s1 added the bug label Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant