You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Steve Eynon (Commented) (JIRA)" <ji...@apache.org> on 2012/03/08 04:27:09 UTC

[jira] [Commented] (TAP5-1836) "LocalhostOnly" WhitelistAnalyzer check "0:0:0:0:0:0:0:1%0" ip address instead "0:0:0:0:0:0:0:1"

    [ https://issues.apache.org/jira/browse/TAP5-1836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224971#comment-13224971 ] 

Steve Eynon commented on TAP5-1836:
-----------------------------------

For those using 5.3.2 this contribution to your AppModule gets round the issue:

	@Contribute(ClientWhitelist.class)
	public static void extendLocalhost(OrderedConfiguration<WhitelistAnalyzer> configuration) {
		configuration.add("LocalhostOnly", new WhitelistAnalyzer() {
			@Override	// standard T5 only allows localhost & "0:0:0:0:0:0:0:1%0"
			public boolean isRequestOnWhitelist(Request request) {
				return request.getRemoteHost().equals("0:0:0:0:0:0:0:1");
			}
		});
	}

                
> "LocalhostOnly" WhitelistAnalyzer check "0:0:0:0:0:0:0:1%0" ip address instead "0:0:0:0:0:0:0:1"
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1836
>                 URL: https://issues.apache.org/jira/browse/TAP5-1836
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.1
>            Reporter: Mihail Slobodyanuk
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.3.3, 5.4
>
>
> "LocalhostOnly" WhitelistAnalyzer check "0:0:0:0:0:0:0:1%0" ip address but my request object return "0:0:0:0:0:0:0:1" and pages not whitelisted on localhost 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira