Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 751 by ciaomary: Long file path results in error: Data truncated  
for column 'source_file' at row 1

Creating a Review Request for a source file with a long file path results
in error.

What's the URL of the page containing the problem?
JSON API for creating a new reviewrequest.

What steps will reproduce the problem?
1. Edit or Add a source file with a really long path:
$> p4 add foo.test
foo/foo/foo/foo/foo.test#1 - opened for add

2. Now submit the file to reviewboard using JSON api (ie post-review or
whatever tool you are using.)

You get this error:

Error: server request failed...
         msg=One or more fields had errors
Full server response:
   "fields" : {
     "path" : [
       "Data truncated for column 'source_file' at row 1"
   "err" : {
     "msg" : "One or more fields had errors",
     "code" : 105
   "stat" : "fail"

What is the expected output? What do you see instead?
ReviewBoard should be able to handle cases with really long paths. I do
not know what the exact limit is, but we are reaching it.

I found this problem trying to repro another issue with the memcache
throwing and error that the cache key is too big (> 250 in length). i
suspect that too is related to either the path or filename being too long
for reviewboard/django/memcache to handle (I will post that bug once i
track down further.)

What operating system are you using? What browser?
CentOS 5.2

Please provide any additional information below.

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to