Re: directActionURLForActionNamed produce corrupted hostname
Re: directActionURLForActionNamed produce corrupted hostname
- Subject: Re: directActionURLForActionNamed produce corrupted hostname
- From: Gennady Kushnir <email@hidden>
- Date: Mon, 9 Mar 2009 20:58:47 +0300
Hello
I have the same problem and this annoys me much.
I seems an unexpected behavior to me to generate complete URLs
including hostname when I don't ask for that.
Also even when adding host name it would better take value from "host"
header instead of "server_name" header. As "host" represents actual
url in browser while "server_name" displays what a server intends to
be, which would be wrong when working on local network with private
IPs.
Serge, did Apple reply anything on your bugreport?
2008/7/7 Serge Cohen <email@hidden>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> My mistake... Indeed this was an error in the setting of the apache server,
> producing a SERVER_NAME of ..._copy
>
> This happened when I set the HTTPS part of Apache through ServerAdmin.
>
> Serge.
>
> Le 6 juil. 08 à 00:24, Serge Cohen a écrit :
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello list;
>>
>> I'm currently working on an application using Wonder (last updated on
>> 2008-07-01) and WebObjects 5.4 (since few days 5.4.2, but the problem I'm
>> reporting here was already present in previous version 5.4.1 ... I was just
>> hoping for it to be solved in 5.4.2 until now).
>>
>> I have a layout page, using a couple of URL to direct actions. I generate
>> those using the method :
>> WOContext.directActionURLForActionNamed(String anActionName,
>> NSDictionary<String,Object> queryDictionary)
>>
>> (or ERXWOContext.directActionURLForActionNamed(String anActionName,
>> NSDictionary<String,Object> queryDictionary, boolean includeSessionID),
>> which directly calls super... implementation)
>>
>>
>> When pages are sent through 'http' (non-secured), the generated URL is an
>> absolute path, but no scheme or host.
>> When pages are sent through 'https', the generated URL are full URLs,
>> including scheme and hostname.
>>
>> This is working fine as long as I'm in development setup (Eclipse as IDE),
>> but as soon as I deploy, when a page is sent through 'https' the host name
>> gets 'corrupted', more precisely '_copy' is appended to the host name
>> (whilst, when sent by 'http', the URL are absolute, withOUT scheme or
>> hostname).
>> I've even tried to use Eclipse on the same machine that is running the
>> deployed application : this does not show the behaviour of the deployed
>> application.
>>
>> I've also noted the exact same type of problem when using a WOHyperlink
>> 'connected' to a directAction, with the 'secure' binding set to false, and
>> the page is sent using 'https'.
>>
>>
>> Clearly, I don't understand well enough the difference between the dev.
>> environment and the deployment one (in my case 'classical'
>> wotaskd/JavaMonitor).
>>
>> I've reported this bug with ID : 6055888
>>
>> In the mean time I'd like to be at least able to reproduce this behaviour
>> when running from Eclipse (to debug and get a better understanding of what's
>> going wrong) and hopefully a workaround (which should be possible, given the
>> Dev. environment manages to get these generated URLs as they should).
>>
>> Thanks for any insight or help;
>>
>> Serge.
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (Darwin)
>
> iEYEARECAAYFAkhxWM8ACgkQlz6UVQtc2uyKpgCfTd/dfQGSuwUe8ybGjiBSBa66
> 0PwAoIRWOmGgmKFe6zkdoNpX7Swn3Pr0
> =x6qF
> -----END PGP SIGNATURE-----
> _______________________________________________
> 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
>
_______________________________________________
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