I'm having some trouble with Trac 0.11.1. I've checked through as many
tickets as I could find and it looks like everything should be
working, but it's not. The error that I get when I try to view a
changeset is the following:

TypeError: svn_fs_check_path() argument 2 must be string without null
bytes, not str

The error in my trac log file is this:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
web/main.py", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
versioncontrol/web_ui/changeset.py", line 323, in process_request
    self._render_html(req, repos, chgset, restricted, xhr, data)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
versioncontrol/web_ui/changeset.py", line 542, in _render_html
    for old_node, new_node, kind, change in get_changes():
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
versioncontrol/web_ui/changeset.py", line 374, in get_changes
    new_node = repos.get_node(npath, rev)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
versioncontrol/cache.py", line 231, in get_node
    return self.repos.get_node(path, rev)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
versioncontrol/svn_fs.py", line 497, in get_node
    return SubversionNode(path, rev, self, self.pool)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
versioncontrol/svn_fs.py", line 721, in __init__
    node_type = fs.check_path(self.root, self._scoped_svn_path, pool)
  File "/usr/lib/svn-python/libsvn/fs.py", line 324, in
svn_fs_check_path
    return apply(_fs.svn_fs_check_path, args)
TypeError: svn_fs_check_path() argument 2 must be string without null
bytes, not str

I have made sure that my database is utf8 and collate utf8_bin
(according to the current Trac docs, that's how it should be):

mysql> use trac;
Database changed
mysql> show variables like "character_set_database";
+------------------------+-------+
| Variable_name          | Value |
+------------------------+-------+
| character_set_database | utf8  |
+------------------------+-------+
1 row in set (0.00 sec)
mysql> show variables like "collation_database";
+--------------------+----------+
| Variable_name      | Value    |
+--------------------+----------+
| collation_database | utf8_bin |
+--------------------+----------+
1 row in set (0.00 sec)
mysql> show variables like '%character%';
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)

I've tried re-syncing the repository info as well. I know MySQL
support is still experimental, but it seems like I'm having a problem
that was supposed to have been fixed in 0.11.1.

To give some background, I had this server running for a few months
using the utf8_general_ci collate, but ended up with a case sensitive
name collision in svn and had to solve that. This worked with some
code changes I found in one of the tickets that went into 0.11.1, but
now that I've upgraded it's broken again.

Thanks in advance for any suggestions.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to