Re: Review Board Ticket #4626: Adding Gitlab Hosting account fails since Gitlab 10.2.0 (2017-11-22)

2018-01-08 Thread Christian Hammond
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4626/
--

New update by hboomsma
For Beanbag, Inc. > Review Board > Ticket #4626


Reply:

We make use of /api/v3/session, not /api/v4/session. That URL, last we saw, 
_should_ be there still. We are working on API v4 support, and have an initial 
change up for review at the moment that will conditionally use the API, but I 
want to figure out first what you're seeing exactly. Does /api/v3/session show 
anything on your install?

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


Review Board Ticket #4626: Adding Gitlab Hosting account fails since Gitlab 10.2.0 (2017-11-22)

2018-01-08 Thread Hidde Boomsma
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4626/
--

New ticket #4626 by hboomsma
For Beanbag, Inc. > Review Board

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

File attachments:

 * Screenshot from 2018-01-09 08:34:50.png
   

 * Screenshot from 2018-01-09 08:32:26.png
   



--
Adding Gitlab Hosting account fails since Gitlab 10.2.0 (2017-11-22)
==

# What version are you running?
3.0.1

# What's the URL of the page containing the problem?
https://reviewboard.example.com/admin/db/scmtools/repository/add/

# What steps will reproduce the problem?
1. Login to reviewboard as an administrator
2. Click your username in the upper right corner
3. Click "Admin"
4. Click "Add" on the repositories line on the left of the screen in the Manage 
block
5. Fill in the name field
6. Choose gitlab as Hosting service
7. Select "" for Account
8. Put service URL on "https://gitlab.com;
9. Fill in a username and password of a valid gitlab.com account
10. Fill in a repository name in this gitlab account
11. 11 Click save

# What is the expected output? What do you see instead?
Have the page close and the repository be added. Now I get:

"Unknown error when linking the account: A GitLab server was not found at the 
provided URL.. The details of the failure are in the Review Board log file."

# What operating system are you using? What browser?
Ubuntu 14.04 with Google Chrome 62

# Please provide any additional information below.
Reviewboard makes use of a removed feature of Gitlab. The "/api/v4/session" 
endpoint is used in: 
https://github.com/reviewboard/reviewboard/blob/c3b5f2d2f94f72caad7f7d23646589aa8a140c1e/reviewboard/hostingsvcs/gitlab.py#L242
 But it was removed in Gitlab version 10.2.0. See changelog 
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md#1020-2017-11-22.
 If your gitlab instance was already connected the Hosting service will 
continue to operate. There also is a way around the problem by generating an 
access token by hand in gitlab interface (this is currently not possible 
through the API) and encypting it and adding the hosting account directly under 
"Hosting Accounts"

The code I used to encrypt my token and add it by hand is below. A screenshot 
with the apropiate json structure is attached. The secret can be found in your
`settings.local.py` file.

```python
import sys
from reviewboard.scmtools.crypto_utils import (decrypt_password,
   encrypt_password)
non_encrypt_token = sys.argv[1]
first_16_characters_of_secret = sys.argv[2]

encrypted = encrypt_password(non_encrypt_token, first_16_characters_of_secret)

print encrypted

```

Since gitlab has no option to add "access tokens" using the API (at least at 
the time of writing), I think the best approach whould be te remove the 
username/password fields, and replace them with an "Access Token" field. If 
need more information, please feel free to contact me.

--

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


Re: rbt post fails with git cat-file: could not get object info

2018-01-08 Thread Christian Hammond
Hi Caroline,

I'd be interested in seeing how you're handling keeping the clone active.
I'm not sure what command he ran exactly, so I don't want to give the wrong
advice for your setup.

Does the clone exist solely for Review Board? Where does the main
repository live?

Christian

On Mon, Jan 8, 2018 at 12:33 PM, Caroline  wrote:

> Hi,
>
> I have same issue here.
>
> Could you post your command of how to do reset here?
>
> Thanks
>
> C
>
>
> On Monday, March 6, 2017 at 7:04:02 AM UTC-8, Greg Burcher wrote:
>>
>> Thanks Christian. Our RB server keeps a local repository, and pulls via
>> cron job to stay current. When we checked that local repository, there were
>> merge conflicts, so all the pulls had been failing for a few days. I have
>> no idea why that repository would have merge conflicts, but we reset and
>> now all is well. Thanks again for your reply. That was the clue that set us
>> on the right track to resolve the issue.
>>
>> On Friday, March 3, 2017 at 4:01:22 PM UTC-5, Christian Hammond wrote:
>>>
>>> Hi Greg,
>>>
>>> Are older diffs in Review Board able to load? (Ones that would have
>>> fallen out of cache). I'm curious if this is something affecting only newer
>>> diffs.
>>>
>>> This is often due to changes on the Git repository. Mirroring may be
>>> failing, for instance, if this is a clone of the main repository.
>>>
>>> Might want to also manually run some commands on that Git repository and
>>> see if the state of the tree looks correct.
>>>
>>> Christian
>>>
>>>
>>> On Fri, Mar 3, 2017 at 09:15 Greg Burcher  wrote:
>>>
 Not sure what has changed in our configuration or repository that could
 be the problem. We have been using reviewboard for a couple of years. In
 the past couple of days, "rbt post" is failing for multiple users with:

 rbtools.commands.CommandError: Error validating diff

 The specified diff file could not be parsed. (HTTP 400, API Error 224)

 I used --debug and got this detail, with certain fields obfuscated:

 $ rbt post --debug --tracking-branch=origin/myTrackingBranch
 >>> RBTools 0.7.4
 >>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit
 (Intel)]
 >>> Running on Windows-7-6.1.7601-SP1
 >>> Home = C:\Users\myUserName\AppData\Roaming
 >>> Current directory = C:\myDirectory
 >>> Running: git version
 >>> Checking for a Subversion repository...
 >>> Unable to execute "svn help": skipping SVN
 >>> 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.myBranchName.merge
 >>> Command exited with rc 1: ['git', 'config', '--get',
 u'branch.myBranchName.merge']
 ---
 >>> Running: git config --get branch.myBranchName.remote
 >>> Command exited with rc 1: ['git', 'config', '--get',
 u'branch.myBranchName.remote']
 ---
 >>> Running: git config --get remote.origin.url
 >>> repository info: Path: https://myUserName@myGitServer
 /bitbucket/scm/myRepository.git, Base path: , Supports changesets:
 False
 >>> Making HTTP GET request to http://myReviewBoardServer/api/
 >>> Running: git rev-parse refs/heads/myBranchName
 >>> Running: git merge-base 71f1767180902f1cf6b3defbc8d5a9869576bf25
 origin/myTrackingBranch
 >>> Running: git rev-parse 2250f117eedb858afeaf824e2c45b22246a1d2fa
 >>> Running: git status --porcelain --untracked-files=no
 >>> Running: git rev-parse --git-dir
 >>> Running: git -c core.quotepath=false -c diff.noprefix=false diff
 --no-color --full-index --ignore-submodules -M --no-ext-diff
 2250f117eedb858afeaf824e2c45b22246a1d2fa..71f1767180902f1cf6
 b3defbc8d5a9869576bf25
 >>> Making HTTP GET request to http://myReviewBoardServer/api
 /validation/diffs/
 >>> Cached response for HTTP GET http://myReviewBoardServer/api
 /validation/diffs/ expired and was modified
 >>> Making HTTP POST request to http://myReviewBoardServer/api
 /validation/diffs/
 >>> Got API Error 224 (HTTP code 400): The specified diff file could
 not be parsed.
 >>> Error data: {u'stat': u'fail', u'reason': u'fatal: git cat-file:
 could not get object info\n', u'err': {u'msg': u'The specified diff file
 could not be parsed.', u'code': 224}}
 Traceback (most recent call last):
   File "C:/tools/RBTools/bin/../Python27/Scripts/rbt-script.py", line
 8, in 
 load_entry_point('RBTools==0.7.4', 'console_scripts', 'rbt')()
   File "C:\tools\RBTools\Python27\lib\site-packages\rbtools-0.7.4-
 py2.7.egg\rbtools\commands\main.py", line 133, in main
 command.run_from_argv([RB_MAIN, command_name] + args)
   File "C:\tools\RBTools\Python27\lib\site-packages\rbtools-0.7.4-
 

Re: rbt post fails with git cat-file: could not get object info

2018-01-08 Thread Caroline
Hi, 

I have same issue here.

Could you post your command of how to do reset here?

Thanks

C

On Monday, March 6, 2017 at 7:04:02 AM UTC-8, Greg Burcher wrote:
>
> Thanks Christian. Our RB server keeps a local repository, and pulls via 
> cron job to stay current. When we checked that local repository, there were 
> merge conflicts, so all the pulls had been failing for a few days. I have 
> no idea why that repository would have merge conflicts, but we reset and 
> now all is well. Thanks again for your reply. That was the clue that set us 
> on the right track to resolve the issue.
>
> On Friday, March 3, 2017 at 4:01:22 PM UTC-5, Christian Hammond wrote:
>>
>> Hi Greg,
>>
>> Are older diffs in Review Board able to load? (Ones that would have 
>> fallen out of cache). I'm curious if this is something affecting only newer 
>> diffs.
>>
>> This is often due to changes on the Git repository. Mirroring may be 
>> failing, for instance, if this is a clone of the main repository.
>>
>> Might want to also manually run some commands on that Git repository and 
>> see if the state of the tree looks correct.
>>
>> Christian
>>
>>
>> On Fri, Mar 3, 2017 at 09:15 Greg Burcher  wrote:
>>
>>> Not sure what has changed in our configuration or repository that could 
>>> be the problem. We have been using reviewboard for a couple of years. In 
>>> the past couple of days, "rbt post" is failing for multiple users with:
>>>
>>> rbtools.commands.CommandError: Error validating diff
>>>
>>> The specified diff file could not be parsed. (HTTP 400, API Error 224)
>>>
>>> I used --debug and got this detail, with certain fields obfuscated:
>>>
>>> $ rbt post --debug --tracking-branch=origin/myTrackingBranch
>>> >>> RBTools 0.7.4
>>> >>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit 
>>> (Intel)]
>>> >>> Running on Windows-7-6.1.7601-SP1
>>> >>> Home = C:\Users\myUserName\AppData\Roaming
>>> >>> Current directory = C:\myDirectory
>>> >>> Running: git version
>>> >>> Checking for a Subversion repository...
>>> >>> Unable to execute "svn help": skipping SVN
>>> >>> 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.myBranchName.merge
>>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>>> u'branch.myBranchName.merge']
>>> ---
>>> >>> Running: git config --get branch.myBranchName.remote
>>> >>> Command exited with rc 1: ['git', 'config', '--get', 
>>> u'branch.myBranchName.remote']
>>> ---
>>> >>> Running: git config --get remote.origin.url
>>> >>> repository info: Path: 
>>> https://myUserName@myGitServer/bitbucket/scm/myRepository.git, Base path: , 
>>> Supports changesets: False
>>> >>> Making HTTP GET request to http://myReviewBoardServer/api/
>>> >>> Running: git rev-parse refs/heads/myBranchName
>>> >>> Running: git merge-base 71f1767180902f1cf6b3defbc8d5a9869576bf25 
>>> origin/myTrackingBranch
>>> >>> Running: git rev-parse 2250f117eedb858afeaf824e2c45b22246a1d2fa
>>> >>> Running: git status --porcelain --untracked-files=no
>>> >>> Running: git rev-parse --git-dir
>>> >>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
>>> --no-color --full-index --ignore-submodules -M --no-ext-diff 
>>> 2250f117eedb858afeaf824e2c45b22246a1d2fa..71f1767180902f1cf6b3defbc8d5a9869576bf25
>>> >>> Making HTTP GET request to 
>>> http://myReviewBoardServer/api/validation/diffs/
>>> >>> Cached response for HTTP GET 
>>> http://myReviewBoardServer/api/validation/diffs/ expired and was 
>>> modified
>>> >>> Making HTTP POST request to 
>>> http://myReviewBoardServer/api/validation/diffs/
>>> >>> Got API Error 224 (HTTP code 400): The specified diff file could not 
>>> be parsed.
>>> >>> Error data: {u'stat': u'fail', u'reason': u'fatal: git cat-file: 
>>> could not get object info\n', u'err': {u'msg': u'The specified diff file 
>>> could not be parsed.', u'code': 224}}
>>> Traceback (most recent call last):
>>>   File "C:/tools/RBTools/bin/../Python27/Scripts/rbt-script.py", line 8, 
>>> in 
>>> load_entry_point('RBTools==0.7.4', 'console_scripts', 'rbt')()
>>>   File 
>>> "C:\tools\RBTools\Python27\lib\site-packages\rbtools-0.7.4-py2.7.egg\rbtools\commands\main.py",
>>>  
>>> line 133, in main
>>> command.run_from_argv([RB_MAIN, command_name] + args)
>>>   File 
>>> "C:\tools\RBTools\Python27\lib\site-packages\rbtools-0.7.4-py2.7.egg\rbtools\commands\__init__.py",
>>>  
>>> line 612, in run_from_argv
>>> exit_code = self.main(*args) or 0
>>>   File 
>>> "C:\tools\RBTools\Python27\lib\site-packages\rbtools-0.7.4-py2.7.egg\rbtools\commands\post.py",
>>>  
>>> line 754, in main
>>> (msg_prefix, e))
>>> rbtools.commands.CommandError: Error validating diff
>>>
>>> The specified diff file could not be parsed. (HTTP 400, API Error 224)
>>>
>>> Can anyone help with this error?
>>>
>>> 

Re: How to configure email service with Microsoft exchange server

2018-01-08 Thread David Trowbridge
Your exchange server should provide SMTP via "receive connectors":
https://technet.microsoft.com/en-us/library/aa996395(v=exchg.160).aspx

-David

On Mon, Jan 8, 2018 at 8:29 AM Zijian Qi <7zij...@gmail.com> wrote:

> I know how would the Review Board work with SMTP (
> https://www.reviewboard.org/docs/manual/2.5/admin/configuration/email/),
> but my conpamy is using microsoft exchange server.
>
>
> System: Red Hat Linux
>
>
> Thank you in advance!
>
> --
> 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
> "Review Board Community" 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 
"Review Board Community" 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: Can't add perforce repository

2018-01-08 Thread David Trowbridge
Giuseppe,

The path should be the P4PORT setting. So it should look something like "
perforce.example.com:1666"

-David

On Mon, Jan 8, 2018 at 11:08 AM Giuseppe Salvatore <
giuseppe.salvat...@gmail.com> wrote:

> Hi,
> I am trying to add a perforce repository in the list of available
> repositories. Unfortunately it looks like from the admin dashbord this
> can't be done. In REPOSITORY INFORMATION -> Path  it is not really clear
> what is should go. From the description I am assuming p4server:p4port but
> that doesn't work and the error message is confusing. Says
>
> A repository was not found at the specified path.
>
> It is not clear if I have to put the path of the local p4
> workspace/client. It wouldn't make sense to me.
>
> Any comment will be appreciated
>
> Thanks,
> Giuseppe
>
> --
> 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
> "Review Board Community" 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 
"Review Board Community" 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: There was an error displaying this diff

2018-01-08 Thread David Trowbridge
Bitbucket Server (nee Stash) isn't yet supported by Review Board. We're
actively working on adding support in Power Pack. If you'd like to help us
test it out, I can get you a beta build.

-David

On Mon, Jan 8, 2018 at 8:29 AM  wrote:

> Hello,
>
> I'm trying to post review from our hosted Bitbucket, to hosted Reviewboard
> using the RBTools.
> The Reviewboard version is 2.0.11
> The RBTools version is 0.7.2
> It seems to have some issue with the diff of the files but I can't figure
> out what it is.
> Is there any place I can check the reason of the failure?
>
> I configured a new repository in reviewboard as a custom git repository
> with a matching raw url mask.
>
> I use the following command to send the review:
>
> */usr/local/bin/rbt post -d -p --repository-type git --server
> http://rb.server.com  --repository my-test-repo
> --username post-commit-user --password  post-commit-user --tracking-branch
> origin/master --submit-as myuser --guess-summary --guess-description
> --branch master c19f372a155993747a9206f0c8fe0085d02acb2b*
>
> And I'm getting a msg that the review was posted.
> The STDERR is:
> * RBTools 0.7.2*
> *>>> Python 2.7.6 (default, Oct 26 2016, 20:30:19)*
> *[GCC 4.8.4]*
> *>>> Running on Linux-3.13.0-112-generic-x86_64-with-Ubuntu-14.04-trusty*
> *>>> Home = /my_home*
> *>>> Current directory = /my_home/shared/data/repositories/902*
> *>>> Checking for a Git repository...*
> *>>> Running: git rev-parse --git-dir*
> *>>> Running: git config core.bare*
> *>>> Running: git symbolic-ref -q HEAD*
> *>>> Running: git config --get branch.master.merge*
> *>>> Command exited with rc 1: ['git', 'config', '--get',
> u'branch.master.merge']*
> *---*
> *>>> Running: git config --get branch.master.remote*
> *>>> Command exited with rc 1: ['git', 'config', '--get',
> u'branch.master.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: /my_home/shared/data/repositories/902, Base
> path: , Supports changesets: False*
> *>>> Making HTTP GET request to http://rb.server.com/api/
> *
> *>>> Running: git rev-parse c19f372a155993747a9206f0c8fe0085d02acb2b*
> *>>> Running: git rev-parse c19f372a155993747a9206f0c8fe0085d02acb2b^*
> *>>> Running: git merge-base 8f67a5dd89a4e88838617bc9cfb87cce08aa2bb7
> master*
> *>>> Running: git rev-parse --git-dir*
> *>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff
> --no-color --full-index --ignore-submodules -M --no-ext-diff
> 8f67a5dd89a4e88838617bc9cfb87cce08aa2bb7..c19f372a155993747a9206f0c8fe0085d02acb2b*
> *>>> Running: git log --reverse --pretty=format:%s%n%n%b
> ^8f67a5dd89a4e88838617bc9cfb87cce08aa2bb7
> c19f372a155993747a9206f0c8fe0085d02acb2b*
> *>>> Making HTTP GET request to
> http://rb.server.com/api/review-requests/?only-links=create=
> *
> *>>> Making HTTP POST request to http://rb
> . server.com/api/review-requests/
> *
> *>>> Making HTTP GET request to http://rb
> . server.com/api/review-requests/304341/diffs/?only-fields=
> *
> *>>> Making HTTP POST request to http://rb
> . server.com/api/review-requests/304341/diffs/
> *
> *>>> Making HTTP GET request to http://rb
> . 
> server.com/api/review-requests/304341/draft/?only-fields=commit_id
> *
> *>>> Making HTTP PUT request to http://rb
> . server.com/api/review-requests/304341/draft/
> *
>
> The diff in the review showing the following:
> *The patch to 'testfile.sh' didn't apply cleanly. The temporary files have
> been left in '/tmp/reviewboard.Pj6_Hj' for debugging purposes.*
> *`patch` returned: *
> *This may be a bug in the software, a temporary outage, or an issue with
> the format of your diff.*
>
> And the tmp folder contains following files:
>
> *testfile.sh.diff*
> *diff --git a/testfile.sh b/testfile.sh*
> *index
> 083e35784e55e496abb30dffeed7ab11e3d21747..6e7fbe249ce5d2fc350a2a0085f5c11dfaea34df
> 100644*
> *--- a/testfile.sh*
> *+++ b/testfile.sh*
> *@@ -1,4 +1,3 @@*
> * #!/bin/bash*
>
> * echo "test"*
> *-echo "another test"*
>
> *tmplt0vvX*
> *#!/bin/bash*
>
> *echo "test"*
>
> *tmplt0vvX-new* - empty file
>
> *tmplt0vvX-new.rej*
> *--- testfile.sh*
> *+++ testfile.sh*
> *@@ -1,4 +1,3 @@*
> * #!/bin/bash*
>
> * echo "test"*
> *-echo "another test"*
>
>
>
> The above terms reflect a potential business arrangement, are provided 

Can't add perforce repository

2018-01-08 Thread Giuseppe Salvatore
Hi,
I am trying to add a perforce repository in the list of available 
repositories. Unfortunately it looks like from the admin dashbord this 
can't be done. In REPOSITORY INFORMATION -> Path  it is not really clear 
what is should go. From the description I am assuming p4server:p4port but 
that doesn't work and the error message is confusing. Says 

A repository was not found at the specified path.

It is not clear if I have to put the path of the local p4 workspace/client. 
It wouldn't make sense to me.

Any comment will be appreciated

Thanks,
Giuseppe

-- 
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 
"Review Board Community" 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.


There was an error displaying this diff

2018-01-08 Thread akarasik
Hello,

I'm trying to post review from our hosted Bitbucket, to hosted Reviewboard 
using the RBTools.
The Reviewboard version is 2.0.11
The RBTools version is 0.7.2
It seems to have some issue with the diff of the files but I can't figure 
out what it is.
Is there any place I can check the reason of the failure?

I configured a new repository in reviewboard as a custom git repository 
with a matching raw url mask.

I use the following command to send the review:

*/usr/local/bin/rbt post -d -p --repository-type git --server 
http://rb.server.com --repository my-test-repo --username post-commit-user 
--password  post-commit-user --tracking-branch origin/master --submit-as 
myuser --guess-summary --guess-description --branch master 
c19f372a155993747a9206f0c8fe0085d02acb2b*

And I'm getting a msg that the review was posted.
The STDERR is:
* RBTools 0.7.2*
*>>> Python 2.7.6 (default, Oct 26 2016, 20:30:19)*
*[GCC 4.8.4]*
*>>> Running on Linux-3.13.0-112-generic-x86_64-with-Ubuntu-14.04-trusty*
*>>> Home = /my_home*
*>>> Current directory = /my_home/shared/data/repositories/902*
*>>> Checking for a Git repository...*
*>>> Running: git rev-parse --git-dir*
*>>> Running: git config core.bare*
*>>> Running: git symbolic-ref -q HEAD*
*>>> Running: git config --get branch.master.merge*
*>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.master.merge']*
*---*
*>>> Running: git config --get branch.master.remote*
*>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.master.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: /my_home/shared/data/repositories/902, Base 
path: , Supports changesets: False*
*>>> Making HTTP GET request to http://rb.server.com/api/*
*>>> Running: git rev-parse c19f372a155993747a9206f0c8fe0085d02acb2b*
*>>> Running: git rev-parse c19f372a155993747a9206f0c8fe0085d02acb2b^*
*>>> Running: git merge-base 8f67a5dd89a4e88838617bc9cfb87cce08aa2bb7 
master*
*>>> Running: git rev-parse --git-dir*
*>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
8f67a5dd89a4e88838617bc9cfb87cce08aa2bb7..c19f372a155993747a9206f0c8fe0085d02acb2b*
*>>> Running: git log --reverse --pretty=format:%s%n%n%b 
^8f67a5dd89a4e88838617bc9cfb87cce08aa2bb7 
c19f372a155993747a9206f0c8fe0085d02acb2b*
*>>> Making HTTP GET request to 
http://rb.server.com/api/review-requests/?only-links=create=*
*>>> Making HTTP POST request to http://rb. server.com/api/review-requests/*
*>>> Making HTTP GET request to 
http://rb. server.com/api/review-requests/304341/diffs/?only-fields=*
*>>> Making HTTP POST request to 
http://rb. server.com/api/review-requests/304341/diffs/*
*>>> Making HTTP GET request to 
http://rb. server.com/api/review-requests/304341/draft/?only-fields=commit_id*
*>>> Making HTTP PUT request to 
http://rb. server.com/api/review-requests/304341/draft/*

The diff in the review showing the following:
*The patch to 'testfile.sh' didn't apply cleanly. The temporary files have 
been left in '/tmp/reviewboard.Pj6_Hj' for debugging purposes.*
*`patch` returned: *
*This may be a bug in the software, a temporary outage, or an issue with 
the format of your diff.*

And the tmp folder contains following files:

*testfile.sh.diff*
*diff --git a/testfile.sh b/testfile.sh*
*index 
083e35784e55e496abb30dffeed7ab11e3d21747..6e7fbe249ce5d2fc350a2a0085f5c11dfaea34df
 
100644*
*--- a/testfile.sh*
*+++ b/testfile.sh*
*@@ -1,4 +1,3 @@*
* #!/bin/bash*

* echo "test"*
*-echo "another test"*

*tmplt0vvX*
*#!/bin/bash*

*echo "test"*

*tmplt0vvX-new* - empty file

*tmplt0vvX-new.rej*
*--- testfile.sh*
*+++ testfile.sh*
*@@ -1,4 +1,3 @@*
* #!/bin/bash*

* echo "test"*
*-echo "another test"*



-- 
The above terms reflect a potential business arrangement, are provided solely 
as a basis for further discussion, and are not intended to be and do not 
constitute a legally binding obligation. No legally binding obligations will 
be created, implied, or inferred until an agreement in final form is executed 
in writing by all parties involved.

This email and any attachments hereto may be confidential or privileged. 
 If you received this communication by mistake, please don't forward it to 
anyone else, please erase all copies and attachments, and please let me 
know that it has gone to the wrong person. Thanks.

-- 
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 
"Review Board Community" group.
To unsubscribe from this group 

How to configure email service with Microsoft exchange server

2018-01-08 Thread Zijian Qi


I know how would the Review Board work with SMTP (
https://www.reviewboard.org/docs/manual/2.5/admin/configuration/email/), 
but my conpamy is using microsoft exchange server.


System: Red Hat Linux


Thank you in advance!

-- 
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 
"Review Board Community" 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.