Hi Vinny,

Yes! Although I think, if I have understood your problem correctly, that the 
solution has nothing to do with magnolia itself:

In Tomcat, you can set the attributes "secure" and "scheme" on the connector 
element in your tomcat configuration.
This is precisely to handle cases such as yours, where SSL is terminated by 
some other network component, and the requests passed to tomcat via http or ajp.
By setting secure=true and scheme=https you tell tomcat that the connection is 
actually secured via SSL, even though it may to seem that way to tomcat.

The net result is that your URLs should be correctly generated using https.

Normally, however, magnolia doesn't really use the scheme or servername in the 
URLs it generates. It uses server-absolute links, which means the browser 
prepends the scheme and servername to the requests. So it's a bit mysterious 
why you're seeing this in the first place.

Regards from Vienna,

Richard



Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Vinny
Gesendet: Dienstag, 18. Dezember 2012 22:32
An: Magnolia User-List
Betreff: [magnolia-user] Re: https pages vs http dialog posts in Admin Central

Ok, quick update. It looks my server is behind a proxy. Tomcat thinks it 
running as http while the proxy serves it as http. Could be that magnolia is 
based what it thinks is the right protocol. Not much I can do about that right 
now so I wonder if there is a way I force Admin Central, including links 
created by magnolia javascript to use absolute URLs with the protocol of my 
choice. Any suggestions as to where to looks for something like that?

--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://xaymaca.tumblr.com/


On Mon, Dec 17, 2012 at 4:05 PM, Vinny 
<[email protected]<mailto:[email protected]>> wrote:
some more data, I was wrong about the original post. I does indeed post to the 
right protocoled url at first :  
https://foo/.magnolia/dialogs/selectParagraph.html but from that point it 
redirect to

http://foo/magnolia/dialogs/editParagraph.html and that is where the 404 
happens.

--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://xaymaca.tumblr.com/


On Mon, Dec 17, 2012 at 11:19 AM, Vinny 
<[email protected]<mailto:[email protected]>> wrote:
Hello All,
running into a weird situation with magnolia enterprise 4.5.3 where
I will be in the process of adding a new component to a page, I click on add 
new Foo component,
I get a dialog pop-up window but when I click the ok button, I get a 404 error 
in the same dialog.
When I examine the url it was trying to post to the http address instead of the 
htttps address that the rest of our author instance is being served from. Did 
an inspection in chrome to see that the dialog form looks like :

<form action="/auth/.magnolia/dialogs/selectParagraph.html" id="mgnlFormMain" 
method="post" enctype="multipart/form-data"><div>

and the portion that handles the mouse clicks are below:

<span onmousedown="mgnlShiftPushButtonDown(this);" 
onmouseout="mgnlShiftPushButtonOut(this);" 
onclick="mgnlShiftPushButtonClick(this);mgnlDialogFormSubmit();" 
id="mgnlSaveButton" class="mgnlControlButton">OK</span><span 
onmousedown="mgnlShiftPushButtonDown(this);" 
onmouseout="mgnlShiftPushButtonOut(this);" 
onclick="mgnlShiftPushButtonClick(this);window.close();" id="mgnlCancelButton" 
class="mgnlControlButton">Cancel</span></div>
</div></form>

I guess my main question is wether the http protocol could be hard coded 
somewhere in my adminCentral jcr?

--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://xaymaca.tumblr.com/




________________________________
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 
<[email protected]<mailto:[email protected]>>
----------------------------------------------------------------


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to