Hi All,
The direct action URL in our application running in WebObjects 5.3.3
in production looks like this:
/app/WebObjects/PatientPortionPricer.woa/52301/wa/MPVAjaxAction/
MPVContractPicker?wosid=...
However, In the 5.4.3 version it looks like this:
http://web1-u/app/WebObjects/RKMPPP.woa/1/wa/MPVAjaxAction/
MPVContractPicker?wosid=...
The code responsible for generating that URL is this:
public String directActionURL() {
return context().directActionURLForActionNamed("MPVAjaxAction/
MPVContractPicker", null);
}
Notice the http://web1-u prefix in the direct action URL generated by
the 5.4.3 version of our app.
When checking the HTTP request headers I noticed a header server_name
being set to web1-u. So I suspect that's where WO gets that server
name for the complete URLs. Not sure who is putting web1-u in there
but it should really be www.mpv.com. Another question is why would WO
5.4.3 be generating complete URLs?
Anyways, this is causing an Access to restricted URI denied
(NS_ERROR_DOM_BAD_URI) error in the browser.
We working around this problem by subclassing the
directActionURLForActionNamed() method but I would like to know why WO
is generating complete URLs and why is it not using www.mpv.com as the
server name?
Thanks,
Ricardo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]