Error: Upgrading from ReviewBoard 2.0.11 to 2.5.7

2016-11-28 Thread Pedro Cantu
*Using PostgreSQL
Steps I did before trying to upgrade:

1. dump data from old site 
pg_dump -f reviewboard.sql -U user reviewboard
2) drop and create database from new site
dropdb reviewboard
createdb reviewboard (made sure it was empty)
3) import data from sql file
psql reviewboard < reviewboard.sql
4) Run rb-site upgrade.

root@reviewboard] > rb-site upgrade /var/www/reviewboard/
Rebuilding directory structure
Updating database. This may take a while.

The log output below, including warnings and errors,
can be ignored unless upgrade fails.

--  --
Creating tables ...
Creating table accounts_trophy
Creating table attachments_fileattachmenthistory
Creating table diffviewer_rawfilediffdata
Creating table notifications_webhooktarget_repositories
Creating table notifications_webhooktarget
Creating table webapi_webapitoken
Upgrading Review Board from 2.0.11 to 2.5.7
There are unapplied evolutions for accounts.
There are unapplied evolutions for attachments.
There are unapplied evolutions for diffviewer.
There are unapplied evolutions for notifications.
There are unapplied evolutions for reviews.
There are unapplied evolutions for webapi.
Adding baseline version for new models
Evolutions in webapi baseline: webapitoken_jsonfield_null
Evolutions in notifications baseline: webhooktarget_extra_state, 
webhooktarget_extra_data_null
Project signature has changed - an evolution is required
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
CommandError: Error applying evolution: cannot ALTER TABLE 
"reviews_reviewrequest" because it has pending trigger events

-- 
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: Unexpected error when validating the diff: Invalid utf8 character string: 'BDE1F7' (HTTP 400, API Error 224)

2016-11-28 Thread Douglas Blondin
Hi Christian --

OK, I've upgraded to 0.7.7 version and still getting the same error.

Doug


On Tuesday, November 22, 2016 at 4:46:48 PM UTC-7, Christian Hammond wrote:
>
> Hi Doug,
>
> We have no control over the releases of the distro-provided packages. If 
> you uninstall that and install our using pip (`pip install RBTools`), then 
> you'll have the latest-and-greatest.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Tue, Nov 22, 2016 at 1:53 PM, Douglas Blondin  > wrote:
>
>> Hi Christian --
>>
>> I just installed python-rbtools on my box and it says version 0.7.5.  So 
>> that appears to be the latest version available for Linux (since you're 
>> working on 0.7.7 I might have thought 0.7.6 was out there)
>>
>> Appreciate any help.  Let me know what further information you need.
>>
>> Thanks,
>> Doug
>>
>>
>> On Monday, November 21, 2016 at 5:26:10 PM UTC-7, Christian Hammond wrote:
>>>
>>> Hi Doug,
>>>
>>> I'd start out by upgrading RBTools and see if that fixes it. We're 
>>> working right now on getting a new RBTools 0.7.7 release out, so you could 
>>> also hold off for that. If that doesn't fix it, we'll need to get some more 
>>> info from you.
>>>
>>> Christian
>>>
>>> On Mon, Nov 21, 2016 at 15:49 Douglas Blondin  wrote:
>>>
 Try to do a "rbt post".  Get the above error when I'm providing a diff 
 from "svn diff".  Similar error (different character string) if let rbt 
 post generate the diff.

 I'm running RBTools 0.7.5 with python 2.7.11+  
 This is on Linux Mint
 uname -a
 Linux dblondin-ThinkPad-W530 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 
 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


 My reviewboard is 2.5.6.1
 uname -a
 Linux ReviewBoard 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 
 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

 The diff (pre-produced) is as follows

 #cat diff.out
 Index: Build-Info.bash
 ===
 --- Build-Info.bash(revision 19247)
 +++ Build-Info.bash(working copy)
 @@ -4,6 +4,8 @@
  # Get information about this particular build
  # Includes maximum SVN revision & date, current date
  
 +# Another change to test review board
 +
  do_find_max_svn_revision()
  {
  # set some defaults in case in chroot & thus no subversion
 Index: publish/publish_corpshare.bash
 ===
 --- publish/publish_corpshare.bash(revision 19247)
 +++ publish/publish_corpshare.bash(working copy)
 @@ -7,6 +7,8 @@
  # Has a number of options to allow for override & testing
  # Expected use by Jenkins: publish=yes type=official
  # and for release branches at some time add: snapshot=yes
 +#
 +# This is a change to test out the new review board
  
  
  DoPublish=0





 Adding --debug to rbt produces the following

 rb1 --debug
 >>> RBTools 0.7.5
 >>> Python 2.7.11+ (default, Apr 17 2016, 14:00:29) 
 [GCC 5.3.1 20160413]
 >>> Running on Linux-4.4.0-21-generic-x86_64-with-LinuxMint-18-sarah
 >>> Home = /home/dblondin
 >>> Current directory = /home/dblondin/sandboxes/trunk/BuildTools
 >>> Checking for a Subversion repository...
 >>> Running: svn --non-interactive info
 >>> Running: diff --version
 >>> Running: svn --non-interactive --version -q
 >>> repository info: Path: https://eagle/svn/ngs, Base path: 
 /BuildTools, Supports changesets: False
 >>> Making HTTP GET request to http://rb2.corp.pivot3.com/api/
 >>> Making HTTP GET request to 
 http://rb2.corp.pivot3.com/api/repositories/
 >>> Cached response for HTTP GET 
 http://rb2.corp.pivot3.com/api/repositories/ expired and was modified
 >>> Running: svn --non-interactive info
 >>> Running: diff --version
 >>> Running: svn --non-interactive --version -q
 >>> repository info: Path: https://eagle/svn/ngs, Base path: 
 /BuildTools, Supports changesets: False
 >>> Running: svn --non-interactive status -q --ignore-externals
 >>> Running: svn --non-interactive diff --diff-cmd=diff 
 --notice-ancestry -r BASE
 >>> Running: svn --non-interactive info Build-Info.bash
 >>> Running: svn --non-interactive info publish/publish_corpshare.bash
 >>> Running: svn --non-interactive info publish
 >>> Running: svn --non-interactive diff --diff-cmd=diff 
 --notice-ancestry -r BASE --no-diff-deleted
 >>> Running: svn --non-interactive info Build-Info.bash
 >>> Running: svn --non-interactive info Build-Info.bash
 >>> Running: svn --non-interactive info Build-Info.bash
 

Re: Plugin "Comment Severity" doesn't run

2016-11-28 Thread spacekangaroo
There are no errors in log. That's why I ask here :)
But thanks for your answer.

Am Dienstag, 22. November 2016 16:18:50 UTC+1 schrieb spacekangaroo:
>
> I've try to install the plugin Comment Severity (0.5.1) on ReviewBoard 
> 2.5.4
>
> The installation instructions are simple
>
> 1. sudo easy_install -U rbseverity
>
>... the installation is running ...
>
>Searching for rbseverity
>Reading https://pypi.python.org/simple/rbseverity/
>Best match: rbseverity 0.5.1
>Downloading 
> https://pypi.python.org/packages/e6/8f/c69b84175c8222c13fbf2aecbd395200b8b461274a7520ed3254513da235/rbseverity-0.5.1-py2.7.egg#md5=d3dce8a8556ef35a128972a80f0a92aa
>Processing rbseverity-0.5.1-py2.7.egg
>removing 
> '/usr/local/lib/python2.7/dist-packages/rbseverity-0.5.1-py2.7.egg' (and 
> everything under it)
>creating 
> /usr/local/lib/python2.7/dist-packages/rbseverity-0.5.1-py2.7.egg
>Extracting rbseverity-0.5.1-py2.7.egg to 
> /usr/local/lib/python2.7/dist-packages
>rbseverity 0.5.1 is already the active version in easy-install.pth
>
>Installed 
> /usr/local/lib/python2.7/dist-packages/rbseverity-0.5.1-py2.7.egg
>Processing dependencies for rbseverity
>Finished processing dependencies for rbseverity
>  
>
> 2. reloading the web server
> 3. looking on Administration UI -> Extensions page and click "Scan for 
> installed extensions" ...
>... but there is no extension here :(
>
>  
> Can extensions be suppressed?
> Thank's for help
>

-- 
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.


Review Board Ticket #4489: LDAP Authenticate error: need more than 1 value to unpack

2016-11-28 Thread Allen Heavey
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4489/
--

New ticket #4489 by jafar
For Beanbag, Inc. > Review Board

Status: New
Tags: Priority:Medium, Type:Defect


--
LDAP Authenticate error: need more than 1 value to unpack
==

# What version are you running?
2.5.7


# What's the URL of the page containing the problem?
https://github.com/reviewboard/reviewboard/blob/master/reviewboard/accounts/backends.py#L559
https://groups.google.com/forum/#!topic/reviewboard/7zrGkUg1kPI


# What steps will reproduce the problem?
1. GOTO   Authentication -> LDAP
2. SETFull Name Attribute: cn (or something like uid)
3. That's it!


# What is the expected output? What do you see instead?
Arbitrary assume fullname will contains a white space.
Wrong code:
>> first_name, last_name = full_name.split(' ', 1)

Many people, such as most asian people, they have a fullname but without space!
Example: 张三

You cannot assume your users' fullname contains white space, at least try catch 
such exception!


# What operating system are you using? What browser?
NONE

# Please provide any additional information below.
NONE

--

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at https://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.