You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "David Sean Taylor (JIRA)" <je...@portals.apache.org> on 2005/06/01 19:26:58 UTC

[jira] Created: (JS2-275) Option to make Action URLs relative or absolute

Option to make Action URLs relative or absolute
-----------------------------------------------

         Key: JS2-275
         URL: http://issues.apache.org/jira/browse/JS2-275
     Project: Jetspeed 2
        Type: New Feature
    Versions: 2.0-M4    
    Reporter: David Sean Taylor
 Assigned to: David Sean Taylor 
     Fix For: 2.0-M4


The portlet:actionURL always generates URLs containing protocol, host and port. 
This new feature would make the generation of either relative or absolute action and render URLs optional.
A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Re: [jira] Commented: (JS2-275) Option to make Action URLs relative or absolute

Posted by David Sean Taylor <da...@bluesunrise.com>.
Ate Douma (JIRA) wrote:
>      [ http://issues.apache.org/jira/browse/JS2-275?page=comments#action_66843 ]
>      
> Ate Douma commented on JS2-275:
> -------------------------------
> 
> This issue is related to JS2-204 which I have looked at a few months ago.
> I already had a fix/solution ready for that based on Pluto's solution: PLUTO-82.
> But, I encountered a difficulty/unclear effect with respect to secure connections.
> I started a discussion on the Pluto dev list which continued in private with Jeremy Boynes (who provided the Pluto solution).
> I intended to open a discussion about it on the Jetspeed list too but got side-tracked and then completely forgot about it.
> I will post the relevant information from Pluto discussion on JS2-204 and maybe we can take it then from there (or here).
> 
Could you check in what you have, and then we can review it from there.

Regarding the downgrading situation, I think I'd have a better 
understanding if I saw the code

Does your solution use Spring to configure a global setting 
(absolute/relative)?


-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-275) Option to make Action URLs relative or absolute

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
     [ http://issues.apache.org/jira/browse/JS2-275?page=comments#action_66843 ]
     
Ate Douma commented on JS2-275:
-------------------------------

This issue is related to JS2-204 which I have looked at a few months ago.
I already had a fix/solution ready for that based on Pluto's solution: PLUTO-82.
But, I encountered a difficulty/unclear effect with respect to secure connections.
I started a discussion on the Pluto dev list which continued in private with Jeremy Boynes (who provided the Pluto solution).
I intended to open a discussion about it on the Jetspeed list too but got side-tracked and then completely forgot about it.
I will post the relevant information from Pluto discussion on JS2-204 and maybe we can take it then from there (or here).


> Option to make Action URLs relative or absolute
> -----------------------------------------------
>
>          Key: JS2-275
>          URL: http://issues.apache.org/jira/browse/JS2-275
>      Project: Jetspeed 2
>         Type: New Feature
>     Versions: 2.0-M4
>     Reporter: David Sean Taylor
>     Assignee: David Sean Taylor
>      Fix For: 2.0-M4

>
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and render URLs optional.
> A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Resolved: (JS2-275) Option to make Action URLs relative or absolute

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma resolved JS2-275.
---------------------------

       Resolution: Fixed
    Fix Version/s: 2.1-dev

Feature request now fully implemented

> Option to make Action URLs relative or absolute
> -----------------------------------------------
>
>                 Key: JS2-275
>                 URL: https://issues.apache.org/jira/browse/JS2-275
>             Project: Jetspeed 2
>          Issue Type: New Feature
>    Affects Versions: 2.1
>            Reporter: David Sean Taylor
>         Assigned To: Ate Douma
>             Fix For: 2.1, 2.1-dev
>
>         Attachments: j2-secure.patch
>
>
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and render URLs optional.
> A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Updated: (JS2-275) Option to make Action URLs relative or absolute

Posted by "Santiago Gala (JIRA)" <je...@portals.apache.org>.
     [ http://issues.apache.org/jira/browse/JS2-275?page=all ]

Santiago Gala updated JS2-275:
------------------------------

    Attachment: j2-secure.patch

Ate, this is the partial solution I found. It works only for standard port transitions (80->443 and 443->80).

Beyond this, I guess we'd need some way to access tomcat parameters "redirect", or configure our own.

At least with this patch J2 makes requests for http if it was doing https and the other way around.
There is no clear solution that I can see for the general case, as tomcat can be running proxied on 8080
 and use 8443 for SSL, or, like here, have 8082 for proxyed http and 8083 for proxied https.

Hope this helps, and commit if you don't find it too intrusive.

> Option to make Action URLs relative or absolute
> -----------------------------------------------
>
>          Key: JS2-275
>          URL: http://issues.apache.org/jira/browse/JS2-275
>      Project: Jetspeed 2
>         Type: New Feature
>     Versions: 2.0-M4
>     Reporter: David Sean Taylor
>     Assignee: David Sean Taylor
>      Fix For: 2.0-M4
>  Attachments: j2-secure.patch
>
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and render URLs optional.
> A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Updated: (JS2-275) Option to make Action URLs relative or absolute

Posted by "Michael Lipp (JIRA)" <je...@portals.apache.org>.
     [ http://issues.apache.org/jira/browse/JS2-275?page=all ]

Michael Lipp updated JS2-275:
-----------------------------

    Fix Version: 2.0-POST
                     (was: 2.0-M4)
    Description: 
The portlet:actionURL always generates URLs containing protocol, host and port. 
This new feature would make the generation of either relative or absolute action and render URLs optional.
A system wide setting would be set to either relative or absolute

  was:
The portlet:actionURL always generates URLs containing protocol, host and port. 
This new feature would make the generation of either relative or absolute action and render URLs optional.
A system wide setting would be set to either relative or absolute

        Version: 2.0-POST
                     (was: 2.0-M4)
    Environment: 

> Option to make Action URLs relative or absolute
> -----------------------------------------------
>
>          Key: JS2-275
>          URL: http://issues.apache.org/jira/browse/JS2-275
>      Project: Jetspeed 2
>         Type: New Feature
>     Versions: 2.0-POST
>     Reporter: David Sean Taylor
>     Assignee: David Sean Taylor
>      Fix For: 2.0-POST
>  Attachments: j2-secure.patch
>
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and render URLs optional.
> A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Reopened: (JS2-275) Option to make Action URLs relative or absolute

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma reopened JS2-275:
---------------------------

      Assignee: Ate Douma  (was: David Sean Taylor)

While the patch provided (and applied long time ago) was alright, it really addresses the (albeit related) JS2-204 issue, not this feature request.

This issue really asks for an option to use only relative urls which is very useful when using a Proxy front end like Apache.
Just by itself, this would have as side-effect that requesting secure/non-secure (Portlet) urls won't have any effect anymore.
That is a problem which JS2-204 could (and still can) provide a solution for.

For many of my clients though, being able to dynamically switch between non-secure and secure urls really isn't that important.
Usually the whole site is put behind an already secured Apache front end.
But to be able to do so effectively, especially if the portal has to serve multiple virtual domains, the feature requested by this issue really becomes important.

I'm therefore reopening this issue and will provide a solution to set a system wide property (in jetspeed.properties) to only use relative urls: portalurl.relative.only
By default, this setting will be false, but by setting this to true, no scheme, server name and port will be used to prefix portal urls.

> Option to make Action URLs relative or absolute
> -----------------------------------------------
>
>                 Key: JS2-275
>                 URL: https://issues.apache.org/jira/browse/JS2-275
>             Project: Jetspeed 2
>          Issue Type: New Feature
>    Affects Versions: 2.1
>            Reporter: David Sean Taylor
>         Assigned To: Ate Douma
>             Fix For: 2.1
>
>         Attachments: j2-secure.patch
>
>
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and render URLs optional.
> A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-275) Option to make Action URLs relative or absolute

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/JS2-275?page=comments#action_12318462 ] 

Ate Douma commented on JS2-275:
-------------------------------

I looked at the patch and while it doesn't solve the problem at hand, I give it a +1.

> Option to make Action URLs relative or absolute
> -----------------------------------------------
>
>          Key: JS2-275
>          URL: http://issues.apache.org/jira/browse/JS2-275
>      Project: Jetspeed 2
>         Type: New Feature
>     Versions: 2.0-M4
>     Reporter: David Sean Taylor
>     Assignee: David Sean Taylor
>      Fix For: 2.0-M4
>  Attachments: j2-secure.patch
>
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and render URLs optional.
> A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Resolved: (JS2-275) Option to make Action URLs relative or absolute

Posted by "David Sean Taylor (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Sean Taylor resolved JS2-275.
-----------------------------------

    Resolution: Fixed

I reviewed the code. this patch was already applied 

> Option to make Action URLs relative or absolute
> -----------------------------------------------
>
>                 Key: JS2-275
>                 URL: https://issues.apache.org/jira/browse/JS2-275
>             Project: Jetspeed 2
>          Issue Type: New Feature
>    Affects Versions: 2.1
>            Reporter: David Sean Taylor
>         Assigned To: David Sean Taylor
>             Fix For: 2.1
>
>         Attachments: j2-secure.patch
>
>
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and render URLs optional.
> A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-275) Option to make Action URLs relative or absolute

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474487 ] 

Ate Douma commented on JS2-275:
-------------------------------

To be able to use relative urls only, the currently used <base> tag poses a problem.
While most browsers support a relative url value (e.g. /jetspeed/) for the base tag href attribute, most notably IE does NOT (and the w3c specification says it should be an "absolute" url, so Microsoft seems to be right on this once).

After looking into our usage of the base tag, I don't see any benefit of it and its rather easy to use qualified urls for all our (decoration) resources and not depend on the base tag at all.
I guess the base tag usage is legacy from the time when we used the content server and our decorations were still hidden beneath /WEB-INF.

So I'm going to solve this by making all our generated (decoration) resource references properly context relative urls and remove the <base> tag from our demo decorator header.vm templates.

Note: I won't modify/remove the jetspeed-macros.vm BaseHref macro or the HeaderResource.HEADER_SECTION_BASE_TAG based generation of a base tag like used by the desktop (method HeaderResourceImpl.jetspeedGenerateBasetag()), so custom decorations or desktop themes depending on them will continue to work as is.
But, to be able to access the portal behind a Proxy front end and get a proper look&feel, you will need to remove the generation of these <base> tags from your custom decoration templates and/or through HeaderResource (assembly/headtag.xml, setting header.basetag) yourself. 

> Option to make Action URLs relative or absolute
> -----------------------------------------------
>
>                 Key: JS2-275
>                 URL: https://issues.apache.org/jira/browse/JS2-275
>             Project: Jetspeed 2
>          Issue Type: New Feature
>    Affects Versions: 2.1
>            Reporter: David Sean Taylor
>         Assigned To: Ate Douma
>             Fix For: 2.1
>
>         Attachments: j2-secure.patch
>
>
> The portlet:actionURL always generates URLs containing protocol, host and port. 
> This new feature would make the generation of either relative or absolute action and render URLs optional.
> A system wide setting would be set to either relative or absolute

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org