directActionURLForActionNamed() generating complete URLs under WO 5.4.3
directActionURLForActionNamed() generating complete URLs under WO 5.4.3
- Subject: directActionURLForActionNamed() generating complete URLs under WO 5.4.3
- From: "Ricardo J. Parada" <email@hidden>
- Date: Mon, 04 May 2009 14:39:37 -0400
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden