Skip to content

SyncProxy has some issue when the server side is checking cookie and sessionid #46

@F4bwDP6a6W

Description

@F4bwDP6a6W

Hi,

In our company has product using GWT, and I want to build a Java client for it.
I searched whole network, and find SyncProxy is fit my needs.

But I find some issue with it. If the site is required login(cookieManager). the setBaseURL function doesn't pass the cookie in. So that in the populatePolicyMap function, there are "getResposeText", this is establishing a http connection to server, so if there's no cookie information, the server will always return login page, so we cannot get the wanted files(JS, gwt.rpc etc).

I want to contribute and enhance this feature, is that ok?

                CookieManager cookiemanager = LoginUtils.loginFormBasedJ2EE(baseURL, "username", "password");

                SyncProxy.setBaseURL(baseURL,cookiemanager);

                StandardDispatchService rpcService =  SyncProxy.createProxy(StandardDispatchService.class,
                        new ProxySettings().setCookieManager(cookiemanager));

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions