Comment 3 for bug 578516

Revision history for this message
Bendanpa (bendanpa) wrote : Re: [Bug 578516] Re: feature request: to direct desired pages over https

Hi Guillaume,

Thanks for the quick fix. I have tested that it is working fine.

Just one issue that is: in a returned page over https, all the links are
defaulted to use https, too. Sometimes I don't want them to be over https
but don't have a way to toggle it off.

Can I have one more request that is to specify some links in a page using
http and some using HTTPS? That is to say to add one more method insecure()
so that in one page I can do this way:

// for secure links
@{secure_action1().secure()}
...
@{secure_action2().secure()}

// for non-secure links
@{non_secure_action1().insecure()}
...
@{non_secure_action1().insecure()}
...

and of course user can specify the default protocol in application.conf.

Thanks,
Bendanpa

On Wed, May 12, 2010 at 2:42 AM, Guillaume Bort <email address hidden>wrote:

> Simply call secure() on your actions. For example:
>
> @{index().secure()}
>
> On Wed, May 12, 2010 at 12:51 AM, Bendanpa <email address hidden> wrote:
> > Hi Guillaume,
> >
> > Would you please instruct me how to test it since you have fixed it?
> >
> > Thanks,
> > Bendanpa
> >
> > On Tue, May 11, 2010 at 2:08 AM, Guillaume Bort
> > <email address hidden>wrote:
> >
> >> ** Changed in: play/1.0
> >> Status: New => Fix Committed
> >>
> >> ** Changed in: play/1.0
> >> Milestone: None => 1.0.3
> >>
> >> --
> >> feature request: to direct desired pages over https
> >> https://bugs.launchpad.net/bugs/578516
> >> You received this bug notification because you are a direct subscriber
> >> of the bug.
> >>
> >> Status in play framework: Fix Committed
> >> Status in play framework 1.0 series: Fix Committed
> >> Status in play framework 1.1 series: New
> >>
> >> Bug description:
> >> Some hosting services supports traffic over https nicely like the GAE.
> Play
> >> lacks a feature to let user to switch between http and https. We request
> >> this feature so that we can direct some pages like the login page and
> >> certain credential pages over https wherever the server supports it.
> >>
> >> Please refer to google group topic:
> >>
> http://groups.google.com/group/play-framework/browse_thread/thread/615f8f3ebb006723
> >>
> >>
> >>
> >> To unsubscribe from this bug, go to:
> >> https://bugs.launchpad.net/play/+bug/578516/+subscribe
> >>
> >
> > --
> > feature request: to direct desired pages over https
> > https://bugs.launchpad.net/bugs/578516
> > You received this bug notification because you are a bug assignee.
> >
>
> --
> feature request: to direct desired pages over https
> https://bugs.launchpad.net/bugs/578516
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in play framework: Fix Committed
> Status in play framework 1.0 series: Fix Committed
> Status in play framework 1.1 series: New
>
> Bug description:
> Some hosting services supports traffic over https nicely like the GAE. Play
> lacks a feature to let user to switch between http and https. We request
> this feature so that we can direct some pages like the login page and
> certain credential pages over https wherever the server supports it.
>
> Please refer to google group topic:
> http://groups.google.com/group/play-framework/browse_thread/thread/615f8f3ebb006723
>
>
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/play/+bug/578516/+subscribe
>