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

When the DNS Lookup is unsuccessful with result "TRY_AGAIN = 2", a false negative result might occur #58

Closed
wants to merge 1 commit into from

Conversation

canilsenlogiq
Copy link

@canilsenlogiq canilsenlogiq commented Jun 21, 2024

Pull Request Description

When the DNS Lookup is unsuccessful(BdxlLocator.class, BusdoxLocator.class) with result TRY_AGAIN = 2, a Locator cannot throw NotFoundException.class, as the participant may be registered in PEPPOL, and we do not want false-negative results.

We (Logiq AS) made our own version of the vefa-peppol for Oxalis where we logged and looked for occurrences of false negatives. We found that multiple times a day the lookup resulted in TRY_AGAIN = 2 where the participant was actually registered in PEPPOL.

I have changed so that a TRY_AGAIN = 2 unsuccessful lookup results in a LookupException, and have included the error string into the resulting exception message, DNS-Lookup-Err: %.

Consequences of the change:

  • Users of will see an increase in LookupExceptions.
  • Reduction in false-negative lookup results (NotFoundExceptions).
  • Anyone that does string matching of the LookupException exception message might need to alter their logic, as the returning exception message is changed.
    • I can return the exception message back to the previous exception message if the risk is to high.

Type of Pull Request

  • New feature/Enhancement - non-breaking change which adds functionality
  • Bug fix
  • Breaking change (Require Major version change?)

…Locator cannot throw NotFoundException, as the participant may be registered in PEPPOL, and we do not want false-negative results.
@canilsenlogiq canilsenlogiq changed the title - When the DNS Lookup is unsuccessful with result "TRY_AGAIN = 2", a false negative result might occure When the DNS Lookup is unsuccessful with result "TRY_AGAIN = 2", a false negative result might occur Jun 24, 2024
@aaron-kumar
Copy link
Member

This commit handle false positive with detailed lookup exception message. Thanks @canilsenlogiq

Additional changes required will be committed via another commit (@aaron-kumar )

@aaron-kumar aaron-kumar closed this Aug 2, 2024
Copy link
Member

@aaron-kumar aaron-kumar left a comment

Choose a reason for hiding this comment

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

Approved

@matrad4307
Copy link

We have the same problem on our side. When can we expect a new release version that includes the fix for this bug?

@aaron-kumar
Copy link
Member

@matrad4307 : I have applied fix d6a1c0f on top of this pull request. Currently we are doing QA testing of upcoming release. You can expect new release with this and other necessary changes & functionality in 2-3 weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants