On Mon, Sep 6, 2010 at 2:10 PM, Gagandeep singh <[email protected]> wrote:
> Hi Janusz
>
> On Mon, Sep 6, 2010 at 2:55 PM, Janusz Dziemidowicz <
> [email protected]> wrote:
>> - DefaultJsUriManager strictly validates if the request path is the
>> same as in configuration file. Since we are doing some rewriting along
>> the way I've had to replace the whole class. Should I file a bug in
>> Jira for that? (I don't believe this is a bug as such, but it would be
>> nice to be able to switch off this validation in shindig.properties,
>> other UriManagers already have such options).
>>
> What is the path you want for your js? Maybe you can override JS_PATH_PARAM
> = "gadgets.uri.js.path" for your container ?

That wouldn't solve my problem, since basically I need to have
different URLs for makeExternJsUri() and processExternJsUri().
Externally, JS code is visible under something like
http://opensocial.nk-net.pl/v09/gadgets/js/core (so it is what needs
to be set in gadgets.uri.js.path) but before it hits servers running
Shindig, it is processed by load balancer and rewritten to something
like http://SERVER_IP/APP_VERSION/gadgets/js/core Personally I do not
see much benefit of validating the URL in processExternJsUri(), so
I've had it disabled, which solves this problem for me.

-- 
Janusz Dziemidowicz
http://nk.pl
phone: +48500298526
email: [email protected]

Nasza Klasa Sp. z o.o., ul. Gen. J. Bema 2
50-265 Wrocław
Sąd Rejonowy dla Wrocławia-Fabrycznej we Wrocławiu, VI Wydział
Gospodarczy Krajowego Rejestru Sądowego,
nr KRS:0000289629, NIP:898-21-22-104, REGON:020586020
Kapitał zakładowy: 67850 PLN

Reply via email to