Skip to content

Accept ip address without network prefix in ipaddr('address') filter#512

Merged
mattcoley merged 1 commit into
HubSpot:masterfrom
Jolmberg:ipaddrfilter-accept-ip-address-without-prefix
Sep 28, 2020
Merged

Accept ip address without network prefix in ipaddr('address') filter#512
mattcoley merged 1 commit into
HubSpot:masterfrom
Jolmberg:ipaddrfilter-accept-ip-address-without-prefix

Conversation

@Jolmberg

Copy link
Copy Markdown

In jinja2 with netaddr, the ipaddr('address') filter accepts a plain ip address, like "192.168.0.1". Jinjava currently rejects this because it has no network prefix. This patch fixes the jinjava behaviour for these cases.

@Jolmberg

Copy link
Copy Markdown
Author

The failing test case is DateTimeFormatFilterTest.itDefaultsToEnglishForBadLocaleValues, and it fails in a clean master too.

@mattcoley

Copy link
Copy Markdown
Collaborator

Hmm that is because the build is targeting Java 8 vs. 11.

@mattcoley mattcoley merged commit 04efdf9 into HubSpot:master Sep 28, 2020
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.

2 participants