[
https://jira.jboss.org/jira/browse/JBSEAM-2144?page=com.atlassian.jira.pl...
]
Raimund Hölle commented on JBSEAM-2144:
---------------------------------------
Hello,
i had the same problem and found the reason after some debugging.
If the page has defined a scheme (http or https), the URL is rendered as absolute path.
You can check that using the booking example. Add the following scheme definition to
view-id "*" in pages.xml:
<page view-id="*" scheme="http" >
...
Then the link "Register New User" will be rendered as absolute URL.
I think that isn't a bug. In my opinion, you need to specify the scheme only if you
want to secure particular pages per SSL, t. m., the scheme switches between different
pages. See SEAM reference manual chapter "SSL Security". Hence, the URL must be
absolute to perform such a redirect.
But if you use a reverse proxy, you can secure your site directly on the proxy.
Many Regards,
Raimund
s:link builds absolute path URL with private IP address
-------------------------------------------------------
Key: JBSEAM-2144
URL:
https://jira.jboss.org/jira/browse/JBSEAM-2144
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.CR1
Environment: the same on windows/linux with jboss 4.2.1
Reporter: koen handekyn
Assignee: Pete Muir
link to view "/example.xhtml" becomes
"http://10.0.0.1:8080/example.seam" (including private server address and
protocol) which breaks when run behind an apache proxy
from my code: <li><s:link view="/mobistar/portal.xhtml"
value="portal" /></li>
becomes rendered as
<li><a
href="http://localhost:8080/up-docstore/mobistar/portal.seam?cid=44"
id="j_id15">portal</a></li>
while it should be
<li><a href="/up-docstore/mobistar/portal.seam?cid=44"
id="j_id15">portal</a></li>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira