Accents in name of repository

Issue #889 resolved
Anonymous created an issue

Hello,

I create a repository on git with accent in name (see snapshot) on rhodecode 1.7.1

All push failed on all repository. If I delete this project, all push works.

Regards

Comments (5)

  1. ludovic_perrier

    sorry I have forgot stack trace

    remote: Traceback (most recent call last):

    remote: File "hooks/pre-receive", line 31, in <module>

    remote: main()

    remote: File "hooks/pre-receive", line 27, in main

    remote: handle_git_pre_receive(repo_path, push_data, os.environ)

    remote: File "/usr/local/lib/python2.6/dist-packages/rhodecode/lib/hooks.py", line 294, in <lambda>

    remote: handle_git_receive(repo_path, revs, env, hook_type='pre'))

    remote: File "/usr/local/lib/python2.6/dist-packages/rhodecode/lib/hooks.py", line 320, in handle_git_receive

    remote: load_environment(conf.global_conf, conf.local_conf)

    remote: File "/usr/local/lib/python2.6/dist-packages/rhodecode/config/environment.py", line 119, in load_environment

    remote: remove_obsolete=False, install_git_hook=False)

    remote: File "/usr/local/lib/python2.6/dist-packages/rhodecode/lib/utils.py", line 467, in repo2db_mapper

    remote: db_repo = rm.get_by_repo_name(name)

    remote: File "/usr/local/lib/python2.6/dist-packages/rhodecode/model/repo.py", line 111, in get_by_repo_name

    remote: return repo.scalar()

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 2215, in scalar

    remote: ret = self.one()

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 2184, in one

    remote: ret = list(self)

    remote: File "/usr/local/lib/python2.6/dist-packages/rhodecode/lib/caching_query.py", line 83, in iter

    remote: return Query.iter(self)

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 2227, in iter

    remote: return self._execute_and_instances(context)

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances

    remote: result = conn.execute(querycontext.statement, self._params)

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1449, in execute

    remote: params)

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement

    remote: compiled_sql, distilled_params

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context

    remote: context)

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context

    remote: context)

    remote: File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 331, in do_execute

    remote: cursor.execute(statement, parameters)

    remote: sqlalchemy.exc.ProgrammingError: (ProgrammingError) You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. u'SELECT repositories.statistics AS repositories_statistics, repositories.downloads AS repositories_downloads, repositories.landing_revision AS repositories_landing_revision, repositories.locked AS repositories_locked, repositories.changeset_cache AS repositories_changeset_cache, repositories.repo_id AS repositories_repo_id, repositories.repo_name AS repositories_repo_name, repositories.clone_uri AS repositories_clone_uri, repositories.repo_type AS repositories_repo_type, repositories.user_id AS repositories_user_id, repositories.private AS repositories_private, repositories.description AS repositories_description, repositories.created_on AS repositories_created_on, repositories.updated_on AS repositories_updated_on, repositories.enable_locking AS repositories_enable_locking, repositories.fork_id AS repositories_fork_id, repositories.group_id AS repositories_group_id \nFROM repositories \nWHERE repositories.repo_name = ?' ('Test/\xc3\xa9\xc3\xa9\xc3\xa9',)

  2. Log in to comment