Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option "ignorenamespace" #575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add option "ignorenamespace" #575

wants to merge 1 commit into from

Conversation

dr0i
Copy link
Member

@dr0i dr0i commented Nov 21, 2024

Setting "ignorenamespace" to "true" ignores checking the namespace.

Resolves #569.

Setting "ignorenamespace" to "true" ignores checking the namespace.
Comment on lines +81 to +82
if (ignoreNamespace) {
this.namespace = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is sufficient:

  1. It becomes order-dependent; if one sets ignoreNamespace first and then namespace, the namespace check is still performed.
  2. One can't reenable the namespace check without also setting the namespace to its previous value.

You would need to introduce a dedicated attribute for this.


verifyNoMoreInteractions(receiver);
}
@Test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing empty line above.

@@ -146,6 +146,63 @@ public void issue330ShouldOptionallyRecognizeRecordsWithoutNamespace()
verifyNoMoreInteractions(receiver);
}

@Test
public void shouldRecognizeRecordsWithoutNamespace()
throws SAXException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong indentation for all throws qualifiers.

@blackwinter blackwinter assigned dr0i and unassigned blackwinter Nov 21, 2024
@dr0i dr0i added this to the release 6.1.3 milestone Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

Enable ignoring namespace guard for handle-marcxml in flux
2 participants