• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
directActionURLForActionNamed() generating complete URLs under WO 5.4.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: directActionURLForActionNamed() generating complete URLs under WO 5.4.3
      • From: Andrew Lindesay <email@hidden>
  • Prev by Date: Re: Eclipse 3.4.2 Not adding WO Framework to WO Apps
  • Next by Date: Re: directActionURLForActionNamed() has weird prefix under WO 5.4.3
  • Previous by thread: Re: Eclipse 3.4.2 Not adding WO Framework to WO Apps
  • Next by thread: Re: directActionURLForActionNamed() generating complete URLs under WO 5.4.3
  • Index(es):
    • Date
    • Thread