hst:authenticated appends /site

22 views
Skip to first unread message

wim.lustenhouwer

unread,
Feb 24, 2017, 3:21:15 AM2/24/17
to Hippo Community
Hi all,

I have a problem which occurs on two Hippo 11 implementations. Whenever we peg a subsite with hst:authenitcated, the form redirects to /site. 

The result is a mess, but what I'd like to know is how that /site gets there.On the environments the showcontextpath and showport are set to false. Has anyone experienced/solved this issue? 

Woonsan Ko

unread,
Feb 24, 2017, 8:54:30 AM2/24/17
to hippo-c...@googlegroups.com
Perhaps it's faster to explain how it works with the product code.
org.hippoecm.hst.core.container.SecurityValve#invoke(ValveContext) contains the following:

            String formLoginPage = resolvedMount.getFormLoginPage();
            // SNIP
            if (authenticationRequired && !StringUtils.isBlank(formLoginPage)) {
                try {
                    // SNIP
                    String formLoginURL = requestContext.getHstLinkCreator().create(formLoginPage, destLinkMount).toUrlForm(requestContext, true);
                    servletResponse.sendRedirect(formLoginURL);
                    return;
                } catch (IOException ioe) {
                    // SNIP
                }
            }

So, I can think of some possibilities you can suspect:
- your mount has a specific form login page url property (@hst:formloginpage) with '/site',
- or your hst host/mount configurations have somethings. For example, @hst:showcontextpath can be overridden in mount level,
- or url rewriting occurs in reverse proxy level,
- ...

Regards,

Woonsan


--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
71 Summer Street, 2nd Floor, Boston, MA 02110
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466

Reply all
Reply to author
Forward
0 new messages