On May 6, 2009, at 11:36 AM, Mr. Pierre Frisch wrote:

Item 3 Can you elaborate on the wrong server name? Thanks


Hi Pierre,

Thanks for your response.

Regarding item #3 - "The generated direct action URL has the wrong server name" :

The situation is as follows, when the application is deployed it is accessed securely with a URL that begins with https://www.mpv.com/app/WebObjects/ ...[etc]...

Now, the URLs generated by calling the directActionURLForActionNamed(String,NSDictionary) method have a server name of web1-bu instead of www.mpv.com. In other words, the URLs looked something like this:

http://web1-bu/app/WebObjects/OurApp.woa/1/wa/MPVAjaxAction/ MPVContractPicker?wosid=vh5ESREs0GHHbDbjIkwTGw

Notice web1-bu as the server name in that URL instead of the expected www.mpv.com . I could not figure out where that was coming from so I started inspecting the HTTP request headers to see if that server name was present anywhere. That's where I found a server_name header with a value of web1-bu. So I'm suspecting WO is simply looking at different things to determine the server name and that it might have picked up the server name from the server_name HTTP request header. Here are the list of HTTP request headers from the application:

accept: text/html,application/xhtml+xml,application/ xml;q=0.9,*/*;q=0.8
accept-charset:     ISO-8859-1,utf-8;q=0.7,*;q=0.7
accept-encoding:    gzip,deflate
accept-language:    en-us,en;q=0.5
connection:         close
cookie:             ...omitted on purpose...
document_root:      /usr/local/apache/htdocs:
host:               www.mpv.com
https:              on
keep-alive:         300
remote_addr:        10.0.0.119
remote_host:        10.0.0.119
remote_port:        51710
script_filename:    /app/WebObjects/OurApp.woa/1/wo/MPVAppInfo.wo
server_admin:       [email protected]
server_name:        web1-bu
server_port:        443
server_software:    Apache/1.3.9
unique_id:          SftpowoCAQEAAFxms0Q
user-agent: Mozilla/5.0: (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10
x-webobjects-adaptor-version:   Apache
x-webobjects-request-id:        49f11956000039fd00000027
x-webobjects-request-method:    GET

We looked at the configuration files for Apache on Solaris which is our web server and in particular we looked at the httpd.conf file and the sslInclude.conf file which is included from httpd.conf. But we still can't figure out why server_name has a value of web1-bu. :-/

Now, the other question I have is this: is it mandatory that we upgrade Apache and the WebObjects adaptor in order to deploy our WO 5.4.3 application? Or can we still use Apache 1.3.9 and its corresponding WebObjects adaptor for our WO 5.4.3 application?

Thanks a million,

Ricardo J. Parada
Medical Present Value, Inc.

 _______________________________________________
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]

Reply via email to