You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
actually taken from the Java inlined defaults, but since the String based config will pre-split on , it doesn't work:
Caused by:
java.lang.IllegalArgumentException: Illegal pattern syntax '35\.19.\.\d{1'
at fr.xebia.servlet.filter.XForwardedFilter.commaDelimitedListToPatternArray(XForwardedFilter.java:627)
The text was updated successfully, but these errors were encountered:
hedefalk
changed the title
Splitting on , probably isn't a very good idea
Splitting on , probably isn't a very good idea for XForwardedFilter configs…?
Oct 12, 2020
* <td>Comma delimited list of regular expressions (in the syntax supported by the {@link java.util.regex.Pattern} library)</td>
* <td>10\.\d{1,3}\.\d{1,3}\.\d{1,3}, 192\.168\.\d{1,3}\.\d{1,3}, 172\\.(?:1[6-9]|2\\d|3[0-1]).\\d{1,3}.\\d{1,3},
* 169\.254\.\d{1,3}\.\d{1,3}, 127\.\d{1,3}\.\d{1,3}\.\d{1,3} <br/>
* By default, 10/8, 192.168/16, 172.16/12, 169.254/16 and 127/8 are allowed</td>
I naively tried configuring with something like:
180.19..\d{1,3}.\d{1,3}
actually taken from the Java inlined defaults, but since the String based config will pre-split on
,
it doesn't work:The text was updated successfully, but these errors were encountered: