shib71 / mod-auth-token

Automatically exported from code.google.com/p/mod-auth-token
Apache License 2.0
0 stars 1 forks source link

Generate an error #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download a file
2.
3.

What is the expected output? What do you see instead?
I see the file downloading but it makes an error in the apache log.

What version of the product are you using? On what operating system?
1.0.5

Please provide any additional information below.
The error generated is
mod_auth_token: malformed or nonexistent token
i know why, it's because it run authenticate_token one time with the url
/download/the token/the date/the file.zip
and another time with
/download/the file.zip
and the last one will generate an error, but still send the file.

Original issue reported on code.google.com by mad...@gmail.com on 15 Feb 2010 at 6:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi Madri2,
Have you changed the code ? since when the module print "malformed or 
nonexistent
token" it returns unauthorized. 

Can you please provide the way you are generating the token to investigate? 
I'll try to reproduce.

Thank you.

Original comment by teixeira...@gmail.com on 16 Feb 2010 at 10:32

GoogleCodeExporter commented 8 years ago
i did not changed the code

$time_now = dechex(time());
    $hash = md5('blablabla'.'/'.$filename.$time_now);
    return '/download/'.$hash.'/'.$time_now.'/'.$filename;

loaded modules:

apache2ctl -t -D DUMP_MODULES
Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cache_module (shared)
 cgi_module (shared)
 dav_module (shared)
 dav_svn_module (shared)
 authz_svn_module (shared)
 dir_module (shared)
 env_module (shared)
 limitipconn_module (shared)
 mem_cache_module (shared)
 mime_module (shared)
 security2_module (shared)
 negotiation_module (shared)
 perl_module (shared)
 php5_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 ssl_module (shared)
 status_module (shared)
 unique_id_module (shared)
 auth_token_module (shared)
Syntax OK

Original comment by mad...@gmail.com on 16 Feb 2010 at 10:48

GoogleCodeExporter commented 8 years ago
 apache2ctl -v
Server version: Apache/2.2.9 (Debian)
Server built:   Nov 14 2009 21:07:23

 php -v
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22 2009 
01:50:58)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with XCache v1.2.2, Copyright (c) 2005-2007, by mOo

Original comment by mad...@gmail.com on 16 Feb 2010 at 1:24

GoogleCodeExporter commented 8 years ago
Did you have some news ?
Can you reproduice the error ?

Original comment by mad...@gmail.com on 21 Feb 2010 at 2:13

GoogleCodeExporter commented 8 years ago
I can't reproduce the error (on squezze) , i will try to get the same setup on 
lenny.

Original comment by teixeira...@gmail.com on 22 Feb 2010 at 11:29

GoogleCodeExporter commented 8 years ago
i have uninstalled the mod limitipconn and i don't have the warning anymore,
can you explain me why ?

Original comment by mad...@gmail.com on 23 Feb 2010 at 2:10