Using the XML Data Parser with a Predicate pulls in the final xml item regardless of if the predicate matches

Created on 3 July 2017, over 7 years ago
Updated 11 October 2024, about 1 month ago

When using a Predicate with the XML Data Parser the final item in the XML is loaded even if it doesn't match the Predicate given. This is causing incorrect items to end up in Migrations.

In an xml import from Wordpress I have 2 pages and 3 posts. The final item in the xml is an image. The parser is saying that there are 3 pages and 4 posts.

πŸ› Bug report
Status

Needs work

Version

4.0

Component

Plugins

Created by

πŸ‡ΊπŸ‡ΈUnited States segovia94

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024