Re: A weird unicode puzzle after upgrade from 2.0.20 to 2.5.4

2016-12-22 Thread Christian Hammond
What's the purpose of your dev server? Depending on needs, SQLite might be
a better option, but probably not if this is a staging server.

You might want to try a newer version of MySQL. I might be wrong, but I
don't believe I've hit this issue with 5.6. When in DEBUG = True mode,
warnings will propagate as errors. You may have to configure MySQL to
ignore the error code.

Christian


On Thu, Dec 22, 2016 at 10:40 Koushik Roy  wrote:

> Christian,
>   There is still one problem, though.
>   For a development server where an exception is raised due to this utf8
> warning, creating new review request fails.
>
> rbt post --server=http://localhost:8080
> Generating diff for pending changeset default
>
> ==> HTTP Authentication Required
> Enter authorization information for "Web API" at localhost:8080
> Username: admin
> Password:
> ERROR: Error uploading diff
>
>
> One or more fields had errors (HTTP 400, API Error 105)
>
> path: Invalid utf8 character string: 'C96A49'
>
> Your review request still exists, but the diff is not attached.
>
> http://localhost:8080/r/5/
>
>
>   Any advice?
>
> Thanks,
>
> Koushik
>
>
>
>
>
>
>
>
>
> --
>
>
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
>
>
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
>
>
> Happy user? Let us know! https://www.reviewboard.org/users/
>
>
> ---
>
>
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
>
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
>
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


JIRA Integration with Authentication

2016-12-22 Thread Mike Winston
Hi,
I just recently upgraded Reviewboard from 1.7.21 to 2.5.7.  I noticed in 
the release notes for 2.5 that there is now "Deeper Bug Tracker Support" 
including support for JIRA.  So I changed my repository from a Custom Bug 
Tracker to "JIRA" and this worked successfully as I can still click on a 
bug and it takes me to JIRA.  What it does NOT do is show an "info box" 
when I "hover over a bug number".  I assume this is because I do not allow 
anonymous access in my JIRA instance.  Does anyone know what I need to do 
go get this support available?  It sounds like a great feature and I would 
like to take full advantage of it.

Thanks,
Mike

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to find a Review Board server for this source code tree

2016-12-22 Thread 许逸斐
Since I am using perforce, I just figured out I need to set my local repo 
type to be perforce in the .reviewboardrc.

now my .reviewboadrc file looks like:

REVIEWBOARD_URL = reviewboard.url
REPOSITORY_TYPE = "perforce"

Thank you all for your help!

在 2016年12月22日星期四 UTC-8上午10:13:23,许逸斐写道:
>
> By the way, I set the review board server through p4 counters. I am able 
> to see the review board url through p4 counter reviewboard.url command.
>
> 在 2016年12月22日星期四 UTC-8上午9:58:07,许逸斐写道:
>>
>>  I used  *rbt post* command in debug mode. The output comes from   
>>
>> svn --non-interactive info
>>
>> >>> Command exited with rc 1: ['svn', '--non-interactive', u'info']
>>
>> svn: E155007: '/Users/jessicafei' is not a working copy
>> Does it has anything to do with svn?
>> 在 2016年12月21日星期三 UTC-8下午6:08:10,Christian Hammond写道:
>>>
>>> It looks like something failed with one of the commands it executed and 
>>> the error output ended up in the file. If you hand-edit it to correct the 
>>> BRANCH, it should work.
>>>
>>> Christian
>>>
>>>
>>> On Wed, Dec 21, 2016 at 16:21 许逸斐  wrote:
>>>
 I used *rbt setup-repo *command and entered yes to all the questions 
 in the meantime. Did I miss any configuration?

 在 2016年12月21日星期三 UTC-8下午3:13:04,Christian Hammond写道:
>
> Hi,
>
> Your .reviewboardrc isn't correct. The BRANCH seems to have an error 
> message in it. It should be a single like string containing the name of 
> the 
> destination branch.
>
> This causes a syntax error in the file, preventing the server from 
> being found.
>
> Christian
>
>
> On Wed, Dec 21, 2016 at 14:45 许逸斐  wrote:
>

>> Can someone help me resolve this issue? 
>> Here is the content in .reviewboardrc  file
>> 在 2016年12月7日星期三 UTC-8下午9:37:38,许逸斐写道:
>>
>>> REVIEWBOARD_URL = "review board URL"
>>> REPOSITORY = "GitDemo"
>>> BRANCH = "fatal: ambiguous argument 'HEAD': unknown revision or path 
>>> not in the working tree.
>>> Use '--' to separate paths from revisions, like this:
>>> 'git  [...] -- [...]'
>>> HEAD"
>>> LAND_DEST_BRANCH = "fatal: ambiguous argument 'HEAD': unknown 
>>> revision or path not in the working tree.
>>> Use '--' to separate paths from revisions, like this:
>>> 'git  [...] -- [...]'
>>> HEAD"
>>>
>>> 在 2016年12月7日星期三 UTC-8下午12:51:02,许逸斐写道:

 I am using review board 0.7.7(python 2.7.12) on Mac OSX  and 
 getting "Unable to find a Review Board server for this source code 
 tree" 
 error when using *rbt post*. The output file in debug mode is as 
 follows:
















 >>> RBTools 0.7.7


 >>> Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) 


 [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]


 >>> Running on Darwin-15.5.0-x86_64-i386-64bit


 >>> Home = /Users/jessicafei


 >>> Current directory = 
 /Users/jessicafei/JasperSystem/yfx-macbook-pro


 >>> Command line: rbt post -d 190198


 >>> Checking for a Subversion repository...


 >>> Running: svn --non-interactive info


 >>> Command exited with rc 1: ['svn', '--non-interactive', u'info']


 svn: E155007: '/Users/jessicafei/JasperSystem/yfx-macbook-pro' is 
 not a working copy


 ---


 >>> Checking for a Git repository...


 >>> Running: git rev-parse --git-dir


 >>> Running: git config core.bare


 >>> Running: git rev-parse --show-toplevel


 >>> Running: git symbolic-ref -q HEAD


 >>> Running: git config --get branch.dev.merge


 >>> Command exited with rc 1: ['git', 'config', '--get', 
 u'branch.dev.merge']


 ---


 >>> Running: git config --get branch.dev.remote


 >>> Command exited with rc 1: ['git', 'config', '--get', 
 u'branch.dev.remote']


 ---


 >>> Running: git config --get remote.origin.url


 >>> Command exited with rc 1: ['git', 'config', '--get', 
 'remote.origin.url']


 ---


 >>> Running: git config --get remote.origin.url


 >>> Command exited with rc 1: ['git', 'config', '--get', 
 'remote.origin.url']


 ---


 >>> repository 

Re: Unable to find a Review Board server for this source code tree

2016-12-22 Thread 许逸斐
By the way, I set the review board server through p4 counters. I am able to 
see the review board url through p4 counter reviewboard.url command.

在 2016年12月22日星期四 UTC-8上午9:58:07,许逸斐写道:
>
>  I used  *rbt post* command in debug mode. The output comes from   
>
> svn --non-interactive info
>
> >>> Command exited with rc 1: ['svn', '--non-interactive', u'info']
>
> svn: E155007: '/Users/jessicafei' is not a working copy
> Does it has anything to do with svn?
> 在 2016年12月21日星期三 UTC-8下午6:08:10,Christian Hammond写道:
>>
>> It looks like something failed with one of the commands it executed and 
>> the error output ended up in the file. If you hand-edit it to correct the 
>> BRANCH, it should work.
>>
>> Christian
>>
>>
>> On Wed, Dec 21, 2016 at 16:21 许逸斐  wrote:
>>
>>> I used *rbt setup-repo *command and entered yes to all the questions in 
>>> the meantime. Did I miss any configuration?
>>>
>>> 在 2016年12月21日星期三 UTC-8下午3:13:04,Christian Hammond写道:

 Hi,

 Your .reviewboardrc isn't correct. The BRANCH seems to have an error 
 message in it. It should be a single like string containing the name of 
 the 
 destination branch.

 This causes a syntax error in the file, preventing the server from 
 being found.

 Christian


 On Wed, Dec 21, 2016 at 14:45 许逸斐  wrote:

>>>
> Can someone help me resolve this issue? 
> Here is the content in .reviewboardrc  file
> 在 2016年12月7日星期三 UTC-8下午9:37:38,许逸斐写道:
>
>> REVIEWBOARD_URL = "review board URL"
>> REPOSITORY = "GitDemo"
>> BRANCH = "fatal: ambiguous argument 'HEAD': unknown revision or path 
>> not in the working tree.
>> Use '--' to separate paths from revisions, like this:
>> 'git  [...] -- [...]'
>> HEAD"
>> LAND_DEST_BRANCH = "fatal: ambiguous argument 'HEAD': unknown 
>> revision or path not in the working tree.
>> Use '--' to separate paths from revisions, like this:
>> 'git  [...] -- [...]'
>> HEAD"
>>
>> 在 2016年12月7日星期三 UTC-8下午12:51:02,许逸斐写道:
>>>
>>> I am using review board 0.7.7(python 2.7.12) on Mac OSX  and getting 
>>> "Unable to find a Review Board server for this source code tree" error 
>>> when 
>>> using *rbt post*. The output file in debug mode is as follows:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>> RBTools 0.7.7
>>>
>>>
>>> >>> Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) 
>>>
>>>
>>> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
>>>
>>>
>>> >>> Running on Darwin-15.5.0-x86_64-i386-64bit
>>>
>>>
>>> >>> Home = /Users/jessicafei
>>>
>>>
>>> >>> Current directory = 
>>> /Users/jessicafei/JasperSystem/yfx-macbook-pro
>>>
>>>
>>> >>> Command line: rbt post -d 190198
>>>
>>>
>>> >>> Checking for a Subversion repository...
>>>
>>>
>>> >>> Running: svn --non-interactive info
>>>
>>>
>>> >>> Command exited with rc 1: ['svn', '--non-interactive', u'info']
>>>
>>>
>>> svn: E155007: '/Users/jessicafei/JasperSystem/yfx-macbook-pro' is 
>>> not a working copy
>>>
>>>
>>> ---
>>>
>>>
>>> >>> Checking for a Git repository...
>>>
>>>
>>> >>> Running: git rev-parse --git-dir
>>>
>>>
>>> >>> Running: git config core.bare
>>>
>>>
>>> >>> Running: git rev-parse --show-toplevel
>>>
>>>
>>> >>> Running: git symbolic-ref -q HEAD
>>>
>>>
>>> >>> Running: git config --get branch.dev.merge
>>>
>>>
>>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>>> u'branch.dev.merge']
>>>
>>>
>>> ---
>>>
>>>
>>> >>> Running: git config --get branch.dev.remote
>>>
>>>
>>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>>> u'branch.dev.remote']
>>>
>>>
>>> ---
>>>
>>>
>>> >>> Running: git config --get remote.origin.url
>>>
>>>
>>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>>> 'remote.origin.url']
>>>
>>>
>>> ---
>>>
>>>
>>> >>> Running: git config --get remote.origin.url
>>>
>>>
>>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>>> 'remote.origin.url']
>>>
>>>
>>> ---
>>>
>>>
>>> >>> repository info: Path: /Users/jessicafei/.git, Base path: , 
>>> Supports changesets: False
>>>
>>>
>>> >>> Running: git config --get reviewboard.url
>>>
>>>
>>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>>> 'reviewboard.url']
>>>
>>>
>>> ---
>>>
>>>
>>> Unable to find a Review Board server for this source code tree.
>>>
>>
>
>
>
>
>
>
>
> -- 
>
>
> Supercharge your Review 

Re: Unable to find a Review Board server for this source code tree

2016-12-22 Thread 许逸斐
 I used  *rbt post* command in debug mode. The output comes from   

svn --non-interactive info

>>> Command exited with rc 1: ['svn', '--non-interactive', u'info']

svn: E155007: '/Users/jessicafei' is not a working copy
Does it has anything to do with svn?
在 2016年12月21日星期三 UTC-8下午6:08:10,Christian Hammond写道:
>
> It looks like something failed with one of the commands it executed and 
> the error output ended up in the file. If you hand-edit it to correct the 
> BRANCH, it should work.
>
> Christian
>
>
> On Wed, Dec 21, 2016 at 16:21 许逸斐  
> wrote:
>
>> I used *rbt setup-repo *command and entered yes to all the questions in 
>> the meantime. Did I miss any configuration?
>>
>> 在 2016年12月21日星期三 UTC-8下午3:13:04,Christian Hammond写道:
>>>
>>> Hi,
>>>
>>> Your .reviewboardrc isn't correct. The BRANCH seems to have an error 
>>> message in it. It should be a single like string containing the name of the 
>>> destination branch.
>>>
>>> This causes a syntax error in the file, preventing the server from being 
>>> found.
>>>
>>> Christian
>>>
>>>
>>> On Wed, Dec 21, 2016 at 14:45 许逸斐  wrote:
>>>
>>
 Can someone help me resolve this issue? 
 Here is the content in .reviewboardrc  file
 在 2016年12月7日星期三 UTC-8下午9:37:38,许逸斐写道:

> REVIEWBOARD_URL = "review board URL"
> REPOSITORY = "GitDemo"
> BRANCH = "fatal: ambiguous argument 'HEAD': unknown revision or path 
> not in the working tree.
> Use '--' to separate paths from revisions, like this:
> 'git  [...] -- [...]'
> HEAD"
> LAND_DEST_BRANCH = "fatal: ambiguous argument 'HEAD': unknown revision 
> or path not in the working tree.
> Use '--' to separate paths from revisions, like this:
> 'git  [...] -- [...]'
> HEAD"
>
> 在 2016年12月7日星期三 UTC-8下午12:51:02,许逸斐写道:
>>
>> I am using review board 0.7.7(python 2.7.12) on Mac OSX  and getting 
>> "Unable to find a Review Board server for this source code tree" error 
>> when 
>> using *rbt post*. The output file in debug mode is as follows:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> >>> RBTools 0.7.7
>>
>>
>> >>> Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) 
>>
>>
>> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
>>
>>
>> >>> Running on Darwin-15.5.0-x86_64-i386-64bit
>>
>>
>> >>> Home = /Users/jessicafei
>>
>>
>> >>> Current directory = /Users/jessicafei/JasperSystem/yfx-macbook-pro
>>
>>
>> >>> Command line: rbt post -d 190198
>>
>>
>> >>> Checking for a Subversion repository...
>>
>>
>> >>> Running: svn --non-interactive info
>>
>>
>> >>> Command exited with rc 1: ['svn', '--non-interactive', u'info']
>>
>>
>> svn: E155007: '/Users/jessicafei/JasperSystem/yfx-macbook-pro' is not 
>> a working copy
>>
>>
>> ---
>>
>>
>> >>> Checking for a Git repository...
>>
>>
>> >>> Running: git rev-parse --git-dir
>>
>>
>> >>> Running: git config core.bare
>>
>>
>> >>> Running: git rev-parse --show-toplevel
>>
>>
>> >>> Running: git symbolic-ref -q HEAD
>>
>>
>> >>> Running: git config --get branch.dev.merge
>>
>>
>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>> u'branch.dev.merge']
>>
>>
>> ---
>>
>>
>> >>> Running: git config --get branch.dev.remote
>>
>>
>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>> u'branch.dev.remote']
>>
>>
>> ---
>>
>>
>> >>> Running: git config --get remote.origin.url
>>
>>
>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>> 'remote.origin.url']
>>
>>
>> ---
>>
>>
>> >>> Running: git config --get remote.origin.url
>>
>>
>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>> 'remote.origin.url']
>>
>>
>> ---
>>
>>
>> >>> repository info: Path: /Users/jessicafei/.git, Base path: , 
>> Supports changesets: False
>>
>>
>> >>> Running: git config --get reviewboard.url
>>
>>
>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>> 'reviewboard.url']
>>
>>
>> ---
>>
>>
>> Unable to find a Review Board server for this source code tree.
>>
>







 -- 


 Supercharge your Review Board with Power Pack: 
 https://www.reviewboard.org/powerpack/


 Want us to host Review Board for you? Check out RBCommons: 
 https://rbcommons.com/


 Happy user? Let us know! https://www.reviewboard.org/users/


 --- 


 You received this message because you are subscribed to the Google 
 Groups "reviewboard" group.


 To 

Re: rbt post of a new file added to Mercurial causes blank files to be added to the diff.

2016-12-22 Thread John
Thanks Christian.  Review Board is a great tool and we enjoy its ease of 
use.   We look forward to being able to get around this hurdle in the 
future.  Again, let us know if you need anything else from our end.

-John


On Wednesday, December 21, 2016 at 10:41:20 PM UTC-5, Christian Hammond 
wrote:
>
> Thanks, John! We'll try to figure out what's going on. Already seeing a 
> few things wrong with the diff, which may clue us in to the source of the 
> problem. We'll try to get this fixed and get back to you after the holidays.
>
> Christian
>
> On Wed, Dec 21, 2016 at 10:52 John  wrote:
>
>>
>>
>> On Monday, December 19, 2016 at 5:10:15 PM UTC-5, John wrote:
>>>
>>> We are using mercurial in our environment and for some reason we are 
>>> seeing a number of __init__.py (blank files for module inclusion in python) 
>>> are being added to our diff file.  Here is the process we used to reproduce 
>>> the issue:
>>>
>>> 1. Clone a branch in the repo.
>>> 2. create a new file with some text in it (i.e. mytestfile.py).
>>> 3. Add a new file in the repo with "hg add mytestfile.py"
>>> 4. hg commit -m "This is a test" ./mytestfile.py
>>> 5. rbt post
>>>
>>>
>>> Here is what the diff of the new file looks like with a simple "hg diff" 
>>> before running commit:
>>>
>>> diff --git a/python/tools/mytestfile.py b/python/tools/mytestfile.py
>>> new file mode 100644
>>> --- /dev/null
>>> +++ b/python/mytestfile.py
>>> @@ -0,0 +1,1 @@
>>> +print "This is a test"
>>>
>>> Attached please find the diff that was downloaded from Review Board.  
>>>
>>> What you'll find is that the diff for the new file that was added does 
>>> make it up there but for some reason ~50+ __init__.py files are also 
>>> removed and then added to the diff.  It causes the review request to look 
>>> very messy.  The diff file I added was downloaded directly from review 
>>> board and then I snipped the end of it so the file wouldn't be too large.  
>>>
>>>
>>
>>
>>
>>
>>
>>
>>
>> -- 
>>
>>
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>>
>>
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>>
>>
>> Happy user? Let us know! https://www.reviewboard.org/users/
>>
>>
>> --- 
>>
>>
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>>
>>
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>>
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.