Project

General

Profile

Bug #3457

Updated by Johannes Bornhold about 8 years ago

Problem: 

 ``` 
 johannes@Johannes-Mac: ~/w/darwinpkgs/rcpkgs  
 $ cd ~/w/ 

 johannes@Johannes-Mac: ~/w  
 $ mkdir i-exist-on-fs2 

 johannes@Johannes-Mac: ~/w  
 $ cd /tmp 

 johannes@Johannes-Mac: /tmp  
 $ hg clone http://localhost:5000/i-exist-on-fs2 
 abort: HTTP Error 404: Not Found 

 johannes@Johannes-Mac: /tmp  
 $ hg init ~/w/i-exist-on-fs2/ 

 johannes@Johannes-Mac: /tmp  
 $ hg clone http://localhost:5000/i-exist-on-fs2 
 http authorization required for http://localhost:5000/i-exist-on-fs2 
 realm: RhodeCode 
 user: dev 
 password:  
 abort: HTTP Error 500: Internal Server Error  
 ``` 

 It fails with a unicode error error: 

 ``` 
 2016-04-08 08:15:19.104 ERROR [rhodecode.lib.middleware.simplevcs] Exception while handling request 
 Traceback (most recent call last): 
   File "/Users/johannes/w/momentum/rhodecode/lib/middleware/simplevcs.py", line 179, in __call__ 
     return self._handle_request(environ, start_response) 
   File "/Users/johannes/w/momentum/rhodecode/lib/middleware/simplevcs.py", line 268, in _handle_request 
     result = self.authenticate(environ) 
   File "/Users/johannes/w/momentum/rhodecode/lib/base.py", line 235, in authenticate 
     username, password, environ, auth_modules.VCS_TYPE): 
   File "/Users/johannes/w/momentum/rhodecode/lib/auth_modules/__init__.py", line 572, in authenticate 
     cache_manager = get_auth_cache_manager(custom_ttl=_cache_ttl) 
   File "/Users/johannes/w/momentum/rhodecode/lib/auth_modules/__init__.py", line 495, in get_auth_cache_manager 
     'auth_plugins', 'rhodecode.lib.auth_modules', custom_ttl) 
   File "/Users/johannes/w/momentum/rhodecode/lib/caches.py", line 64, in get_cache_manager 
     return beaker.cache.Cache._get_cache(cache_name, cache_config) 
   File "/nix/store/g2fq7dj46xy6dzkv6a9fj42a6qq567pc-python2.7-Beaker-1.7.0/lib/python2.7/site-packages/beaker/cache.py", line 308, in _get_cache 
     cache_managers[key] = cache = cls(namespace, **kw) 
   File "/nix/store/g2fq7dj46xy6dzkv6a9fj42a6qq567pc-python2.7-Beaker-1.7.0/lib/python2.7/site-packages/beaker/cache.py", line 287, in __init__ 
     cls = clsmap[type] 
   File "/nix/store/g2fq7dj46xy6dzkv6a9fj42a6qq567pc-python2.7-Beaker-1.7.0/lib/python2.7/site-packages/beaker/cache.py", line 69, in __getitem__ 
     self._init() 
   File "/nix/store/g2fq7dj46xy6dzkv6a9fj42a6qq567pc-python2.7-Beaker-1.7.0/lib/python2.7/site-packages/beaker/cache.py", line 106, in _init 
     traceback.print_exc(file=tb) 
   File "/nix/store/h6z3x9n11hvqdxh8swqvbmba66kib19i-python-2.7.11/lib/python2.7/traceback.py", line 233, in print_exc 
     print_exception(etype, value, tb, limit, file) 
   File "/nix/store/h6z3x9n11hvqdxh8swqvbmba66kib19i-python-2.7.11/lib/python2.7/traceback.py", line 124, in print_exception 
     _print(file, 'Traceback (most recent call last):') 
   File "/nix/store/h6z3x9n11hvqdxh8swqvbmba66kib19i-python-2.7.11/lib/python2.7/traceback.py", line 13, in _print 
     file.write(str+terminator) 
 TypeError: unicode argument expected, got 'str' 
 ``` 
 ```

Back