Hi Olaf,

On 11/24/2013 10:10 PM, Olaf Radicke wrote:
> Mhhh... I need the new function in the dev (master branch) tree. Do
> you think, do you can fix this problem?

This is on my todo list, but pretty far down for now. Sorry.
If you have indeed hit the problem of not being able to login to vablo,
because vablo believes that you have cookies disabled, than you could
try the following:

- deactivate the cookietest in vablo/ecpp/inc/auth.ecpp and check if the
rest works correctly with the git version of tntnet. If that is the
case, you will have to decide whether you want to fix the problem or if
you want to implement another type of cookie test or live without it
- try to backport the function you need in tntnet to the stable version
of tntnet - this is what I did with a recent fix to the json parser
concerning a memory leak I stumbled upon. Tommi had fixed that in record
speed.


I just saw that I remembered the problem inexactly. Below is a snippet
from vablo/ecpp/inc/auth.ecpp
As you can see it is not an application scope, but a securesession
scope. The boolean cookies always stays false as far as I can tell.


<%securesession scope="global">
  vagra::Auth auth;
  std::string orig_query;
  bool redirected = false;
  bool cookies = false;
</%securesession>
<%cpp>
  if(!cookies) {
    if(request.getQueryString() == "cookietest") {
      reply.clearSession();
      reply.redirect("/error/nocookie");
    }
    orig_query = request.getQuery();
    cookies = true;
    reply.redirect("/admin/login?cookietest");
  } 
  if (!redirected && !auth) {
    redirected = true;
    reply.redirect("/admin/login");
  }
  if(auth) {
    try {
      tnt::Savepoint sp(reply);
      vagra::CachedUser user(auth,auth);
</%cpp>
 


Best regards,
Michael

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to