S.uri not including query params

View: New views
6 Messages — Rating Filter:   Alert me  

S.uri not including query params

by Naftoli Gugenheim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is S.uri supposed to return the part of the URL after '?'?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: S.uri not including query params

by bearfeeder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Tue, Oct 20, 2009 at 2:48 PM, Naftoli Gugenheim <naftoligug@...> wrote:
Is S.uri supposed to return the part of the URL after '?'?

No
 




--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---


Parent Message unknown Re: S.uri not including query params

by Naftoli Gugenheim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Then my addition to MetaMegaProtoUser of loginRedirect has a bug, because loginFirst sets it based on S.uri.
Since I'm not usually around an internet connection, I won't be able to go through filing a ticket, putting a diff on Review Board, and pushing it, in any small amount of time.


-------------------------------------
David Pollak<feeder.of.the.bears@...> wrote:

On Tue, Oct 20, 2009 at 2:48 PM, Naftoli Gugenheim <naftoligug@...>wrote:

> Is S.uri supposed to return the part of the URL after '?'?
>

No


> >
>


--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: S.uri not including query params

by Derek Chen-Becker-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://github.com/dpp/liftweb/issues/#issue/121

If I have some time this afternoon I'll fix it.

On Tue, Oct 20, 2009 at 8:07 PM, Naftoli Gugenheim <naftoligug@...> wrote:

Then my addition to MetaMegaProtoUser of loginRedirect has a bug, because loginFirst sets it based on S.uri.
Since I'm not usually around an internet connection, I won't be able to go through filing a ticket, putting a diff on Review Board, and pushing it, in any small amount of time.


-------------------------------------
David Pollak<feeder.of.the.bears@...> wrote:

On Tue, Oct 20, 2009 at 2:48 PM, Naftoli Gugenheim <naftoligug@...>wrote:

> Is S.uri supposed to return the part of the URL after '?'?
>

No


> >
>


--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: S.uri not including query params

by opyate :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello guys,

I thought the purpose of loginRedirect was to be able to override
where the newly logged-in user gets redirected to.

I'm doing it like so, in model/User:

loginRedirect(Full("/loadPrivateKey"))

..but it just goes to the page I accessed before I clicked on /
user_mgt/login

Is there another way I should be aware of to reach my goal?

I guess I could be more specific: once a user is logged in I need to
load his/her private key into memory with which to decrypt sensitive
data from the database (previously encrypted with a public key). I
have all the code written using BouncyCastle, but was wondering if
Lift offers something built-in.
I'd be happy to forward my code on if this could be a useful extension
to the Lift code.

Thanks,
Juan


On Oct 21, 2:18 pm, Derek Chen-Becker <dchenbec...@...> wrote:

> http://github.com/dpp/liftweb/issues/#issue/121
>
> If I have some time this afternoon I'll fix it.
>
> On Tue, Oct 20, 2009 at 8:07 PM, Naftoli Gugenheim <naftoli...@...>wrote:
>
>
>
>
>
> > Then my addition to MetaMegaProtoUser of loginRedirect has a bug, because
> > loginFirst sets it based on S.uri.
> > Since I'm not usually around an internet connection, I won't be able to go
> > through filing a ticket, putting a diff on Review Board, and pushing it, in
> > any small amount of time.
>
> > -------------------------------------
> > David Pollak<feeder.of.the.be...@...> wrote:
>
> > On Tue, Oct 20, 2009 at 2:48 PM, Naftoli Gugenheim <naftoli...@...
> > >wrote:
>
> > > Is S.uri supposed to return the part of the URL after '?'?
>
> > No
>
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Surf the harmonics

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: S.uri not including query params

by Derek Chen-Becker-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should be able to specify the redirect, so this may be a bug. Where are you setting the loginRedirect? It gets reset to the referred page when a login is required, so you'll have to set it after that point.

Derek

On Mon, Nov 9, 2009 at 3:12 AM, opyate <opyate@...> wrote:

Hello guys,

I thought the purpose of loginRedirect was to be able to override
where the newly logged-in user gets redirected to.

I'm doing it like so, in model/User:

loginRedirect(Full("/loadPrivateKey"))

..but it just goes to the page I accessed before I clicked on /
user_mgt/login

Is there another way I should be aware of to reach my goal?

I guess I could be more specific: once a user is logged in I need to
load his/her private key into memory with which to decrypt sensitive
data from the database (previously encrypted with a public key). I
have all the code written using BouncyCastle, but was wondering if
Lift offers something built-in.
I'd be happy to forward my code on if this could be a useful extension
to the Lift code.

Thanks,
Juan


On Oct 21, 2:18 pm, Derek Chen-Becker <dchenbec...@...> wrote:
> http://github.com/dpp/liftweb/issues/#issue/121
>
> If I have some time this afternoon I'll fix it.
>
> On Tue, Oct 20, 2009 at 8:07 PM, Naftoli Gugenheim <naftoli...@...>wrote:
>
>
>
>
>
> > Then my addition to MetaMegaProtoUser of loginRedirect has a bug, because
> > loginFirst sets it based on S.uri.
> > Since I'm not usually around an internet connection, I won't be able to go
> > through filing a ticket, putting a diff on Review Board, and pushing it, in
> > any small amount of time.
>
> > -------------------------------------
> > David Pollak<feeder.of.the.be...@...> wrote:
>
> > On Tue, Oct 20, 2009 at 2:48 PM, Naftoli Gugenheim <naftoli...@...
> > >wrote:
>
> > > Is S.uri supposed to return the part of the URL after '?'?
>
> > No
>
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Surf the harmonics




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---