Re: The specified diff file could not be parsed.

2015-02-18 Thread Liam Reimers
After fiddling with this some more, I ended up discarding the repo config 
and creating a new config as a Gitlab repo. This seems to have worked, 
however, when I try to post a review:

08:03 $ rbt post -g yes --bugs-closed 19788098 -d
 RBTools 0.7.1
 Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
 Running on Darwin-14.1.0-x86_64-i386-64bit
 Home = /Users/user
 Current directory = /Users/user/Code/repo
 Checking for a Subversion repository...
 Running: svn info --non-interactive
 Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
 Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
 Running: git config --get branch.PR19788098.remote
 Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
 Running: git config --get remote.origin.url
 repository info: Path: https://gitlab/group/repo.git, Base path: , 
Supports changesets: False
 Making HTTP GET request to 
http://reviewboard-dtpe.uat-app.apple.com/api/
 Running: git rev-parse refs/heads/PR19788098
 Running: git merge-base 3eea08c87f4ee336ec0d25108bc0224e7bbf5213 
origin/master
 Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
 Running: git status --porcelain --untracked-files=no
 Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8..3eea08c87f4ee336ec0d25108bc0224e7bbf5213
 Making HTTP GET request to http://reviewboard/api/validation/diffs/
 Cached response for HTTP GET http://reviewboard/api/validation/diffs/ 
expired and was modified
 Making HTTP POST request to http://reviewboard/api/validation/diffs/
 Got HTTP error: 502: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title502 Proxy Error/title
/headbody
h1Proxy Error/h1
pThe proxy server received an invalid
response from an upstream server.br /
The proxy server could not handle the request ema 
href=/api/validation/diffs/POSTnbsp;/api/validation/diffs//a/em.p
Reason: strongError reading from remote server/strong/p/p
hr
addressApache/2.2.15 (Oracle) Server at reviewboard Port 80/address
/body/html

Traceback (most recent call last):
  File /usr/local/bin/rbt, line 8, in module
load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File /Library/Python/2.6/site-packages/rbtools/commands/main.py, line 
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File /Library/Python/2.6/site-packages/rbtools/commands/__init__.py, 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File /Library/Python/2.6/site-packages/rbtools/commands/post.py, line 
670, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

HTTP 502

-- 
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: The specified diff file could not be parsed.

2015-02-18 Thread Liam Reimers
After fiddling with this some more, I ended up discarding the repo config 
and creating a new config as a Gitlab repo. This seems to have worked, 
however, when I try to post a review:

08:03 $ rbt post -g yes --bugs-closed 19788098 -d
 RBTools 0.7.1
 Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
 Running on Darwin-14.1.0-x86_64-i386-64bit
 Home = /Users/user
 Current directory = /Users/user/Code/repo
 Checking for a Subversion repository...
 Running: svn info --non-interactive
 Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
 Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
 Running: git config --get branch.PR19788098.remote
 Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
 Running: git config --get remote.origin.url
 repository info: Path: https://gitlab/group/repo.git, Base path: , 
Supports changesets: False
 Making HTTP GET request to http://reviewboard/api/
 Running: git rev-parse refs/heads/PR19788098
 Running: git merge-base 3eea08c87f4ee336ec0d25108bc0224e7bbf5213 
origin/master
 Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
 Running: git status --porcelain --untracked-files=no
 Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8..3eea08c87f4ee336ec0d25108bc0224e7bbf5213
 Making HTTP GET request to http://reviewboard/api/validation/diffs/
 Cached response for HTTP GET http://reviewboard/api/validation/diffs/ 
expired and was modified
 Making HTTP POST request to http://reviewboard/api/validation/diffs/
 Got HTTP error: 502: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title502 Proxy Error/title
/headbody
h1Proxy Error/h1
pThe proxy server received an invalid
response from an upstream server.br /
The proxy server could not handle the request ema 
href=/api/validation/diffs/POSTnbsp;/api/validation/diffs//a/em.p
Reason: strongError reading from remote server/strong/p/p
hr
addressApache/2.2.15 (Oracle) Server at reviewboard Port 80/address
/body/html

Traceback (most recent call last):
  File /usr/local/bin/rbt, line 8, in module
load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File /Library/Python/2.6/site-packages/rbtools/commands/main.py, line 
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File /Library/Python/2.6/site-packages/rbtools/commands/__init__.py, 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File /Library/Python/2.6/site-packages/rbtools/commands/post.py, line 
670, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

HTTP 502

-- 
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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers
I should also note that HEAD is a modification of an existing file, and 
HEAD~1 was adding a new file. Sort of reminds me 
of: https://groups.google.com/forum/#!topic/reviewboard/U-pVdasCWxw

However, I don't get the error in that thread.

-- 
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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers
using git, I am on a local branch that has diverged from master (and 
origin/master) by one commit.

I upgraded to 2.0.13, and I get the same error when trying to post a 
review. I honestly feel this is a problem in the tool:

06:40 $ rbt post -g yes --bugs-closed 19788098  -d
 RBTools 0.7.1
 Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
 Running on Darwin-14.1.0-x86_64-i386-64bit
 Home = /Users/user
 Current directory = /Users/user/Code/repo
 Checking for a Subversion repository...
 Running: svn info --non-interactive
 Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
 Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
 Running: git config --get branch.PR19788098.remote
 Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
 Running: git config --get remote.origin.url
 repository info: Path: git@server:path/repo, Base path: , Supports 
changesets: False
 Making HTTP GET request to http://reviewboard/api/
 Cache directory '/Users/user/Library/Caches/rbtools' does not exist; 
creating.
 API cache '/Users/user/Library/Caches/rbtools/apicache.db' does not 
exist; creating.
 Running: git rev-parse refs/heads/PR19788098
 Running: git merge-base 3eea08c87f4ee336ec0d25108bc0224e7bbf5213 
origin/master
 Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
 Running: git status --porcelain --untracked-files=no
 Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8..3eea08c87f4ee336ec0d25108bc0224e7bbf5213
 Making HTTP GET request to http://reviewboard/api/validation/diffs/
 Added cache entry for HTTP GET request to 
http://reviewboard/api/validation/diffs/
 Making HTTP POST request to http://reviewboard/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': ufatal: Not a git 
repository: 'None'\n, u'err': {u'msg': u'The specified diff file could not 
be parsed.', u'code': 224}}
Traceback (most recent call last):
  File /usr/local/bin/rbt, line 8, in module
load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File /Library/Python/2.6/site-packages/rbtools/commands/main.py, line 
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File /Library/Python/2.6/site-packages/rbtools/commands/__init__.py, 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File /Library/Python/2.6/site-packages/rbtools/commands/post.py, line 
670, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

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


However:

06:53 $ rbt post -g yes --bugs-closed 19788098 -d HEAD~
 RBTools 0.7.1
 Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
 Running on Darwin-14.1.0-x86_64-i386-64bit
 Home = /Users/user
 Current directory = /Users/user/Code/repo
 Checking for a Subversion repository...
 Running: svn info --non-interactive
 Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
 Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
 Running: git config --get branch.PR19788098.remote
 Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
 Running: git config --get remote.origin.url
 repository info: Path: git@server:path/repo.git, Base path: , Supports 
changesets: False
 Making HTTP GET request to http://reviewboard/api/
 Running: git rev-parse HEAD~
 Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8^
 Running: git merge-base f7915b2b91f8f7d6cfa85e5046330e379754fbf4 
origin/master
 Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
f7915b2b91f8f7d6cfa85e5046330e379754fbf4..62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
 Making HTTP GET request to http://reviewboard/api/validation/diffs/
 Cached response for HTTP GET http://reviewboard/api/validation/diffs/ 
expired and was modified
 Making HTTP POST request to http://reviewboard/api/validation/diffs/
 Running: git log --reverse --pretty=format:%s%n%n%b 
^f7915b2b91f8f7d6cfa85e5046330e379754fbf4 

Re: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers
Is there a way to see what diff is being posted by the tool?

-- 
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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers


 Does the problem go away if the local branch is rebased back onto master 
 again? 


No, it does not. I checkout out master, merged the branch (single change), 
and ran:

rbt post -g yes --bugs-closed 19788098 -d

It had the same output, ending with:

 Error data: {u'stat': u'fail', u'reason': ufatal: Not a git 
repository: 'None'\n, u'err': {u'msg': u'The specified diff file could not 
be parsed.', u'code': 224}}
Traceback (most recent call last):
  File /usr/local/bin/rbt, line 8, in module
load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File /Library/Python/2.6/site-packages/rbtools/commands/main.py, line 
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File /Library/Python/2.6/site-packages/rbtools/commands/__init__.py, 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File /Library/Python/2.6/site-packages/rbtools/commands/post.py, line 
670, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

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

-- 
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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers


 Ah, I just saw part of your error: Not a git repository: 'None.' 

 How is your repository configured in Review Board? 


Name - Repository
Hosting - None (custom) 
Type - Git
Path - git@server:path/repo.git

However, note that the client can post a review request using one 
invocation (with HEAD~) and not the other, so it would seem that the repo 
is configured correctly?

-- 
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: The specified diff file could not be parsed.

2015-02-12 Thread Liam Reimers
I'm having this exact issue as well. Is there any additional information I 
can post to help troubleshoot?

 RBTools 0.7.1
 Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 

-- 
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: Cannot post-review using API with LDAP user on 1.7.4

2013-02-12 Thread Liam Reimers
I investigated this a bit further. I see that RB does indeed authenticate 
against the LDAP server, and a cookie file is created with an rbsessionid 
and an expiration time (?) one year in the future. Do you have any hints 
for me on where to look for the code that checks the permissions and how I 
might trace through it?

On Friday, February 8, 2013 2:07:09 PM UTC-8, Liam Reimers wrote:

 Just this:

 2013-02-07 22:44:04,478 - DEBUG - Attempting authentication on API for 
 user user

 On Friday, February 8, 2013 12:14:44 PM UTC-8, Christian Hammond wrote:

 This has come up on occasion with LDAP, but we've never been able to 
 track down the cause.

 Can you check your reviewboard.log file for any messages around the time 
 of a post?

 Christian


 On Feb 8, 2013, at 10:14, Liam Reimers liam.r...@gmail.com wrote:

 This user is Staff and Admin, but is an LDAP user. User can authenticate 
 to the web pages and perform all actions there.

 He cannot use the post-review client to post a review, getting HTTP/403, 
 API/101:

 % post-review --debug -o

  RBTools 0.4.3
  Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
 [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]
  Running on Darwin-12.3.0-x86_64-i386-64bit
  Home = homedir
  Current Directory = currdir
  Checking the repository type. Errors shown below are mostly harmless.
 DEBUG:root:Checking for a Bazaar repository...
 DEBUG:root:Checking for a CVS repository...
 DEBUG:root:Checking for a ClearCase repository...
 DEBUG:root:Checking for a Git repository...
 DEBUG:root:Running: git rev-parse --git-dir
 DEBUG:root:Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
 fatal: Not a git repository (or any parent up to mount point 
 /Volumes/local_data)
 Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 ---
 DEBUG:root:Checking for a Mercurial repository...
 DEBUG:root:Running: hg showconfig
 DEBUG:root:Running: hg root
 DEBUG:root:Command exited with rc 255: ['hg', 'root']
 abort: There is no Mercurial repository here (.hg not found)!
 ---
 DEBUG:root:Checking for a Perforce repository...
 DEBUG:root:Checking for a Plastic repository...
 DEBUG:root:Checking for a Subversion repository...
 DEBUG:root:Running: svn info
 DEBUG:root:Running: diff --version
 DEBUG:root:repository info: Path: svn+ssh://repo, Base path:repopath, 
 Supports changesets: False
  Finished checking the repository type.
 DEBUG:root:Running: svn propget reviewboard:url currdir
  HTTP GETting api/info/
 DEBUG:root:Running: svn diff --diff-cmd=diff
 DEBUG:root:Running: svn info .

 more debug about svn info all the files

  HTTP GETting api/
  HTTP GETting https://server/api/info/
  Using the new web API
  HTTP GETting https://server/api/repositories/
  HTTP GETting https://server/api/repositories/1/
  Got API Error 101 (HTTP code 403): You don't have permission for this
  Error data: {u'stat': u'fail', u'err': {u'msg': uYou don't have 
 permission for this, u'code': 101}}
 Error creating review request: You don't have permission for this (HTTP 
 403, API Error 101)

 -- 
 Want to help the Review Board project? Donate today at 
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to 
 reviewboard...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/reviewboard?hl=en
 --- 
 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/groups/opt_out.
  
  



-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
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/groups/opt_out.




Cannot post-review using API with LDAP user on 1.7.4

2013-02-08 Thread Liam Reimers
This user is Staff and Admin, but is an LDAP user. User can authenticate to 
the web pages and perform all actions there.

He cannot use the post-review client to post a review, getting HTTP/403, 
API/101:

% post-review --debug -o

 RBTools 0.4.3
 Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]
 Running on Darwin-12.3.0-x86_64-i386-64bit
 Home = homedir
 Current Directory = currdir
 Checking the repository type. Errors shown below are mostly harmless.
DEBUG:root:Checking for a Bazaar repository...
DEBUG:root:Checking for a CVS repository...
DEBUG:root:Checking for a ClearCase repository...
DEBUG:root:Checking for a Git repository...
DEBUG:root:Running: git rev-parse --git-dir
DEBUG:root:Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
fatal: Not a git repository (or any parent up to mount point 
/Volumes/local_data)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
---
DEBUG:root:Checking for a Mercurial repository...
DEBUG:root:Running: hg showconfig
DEBUG:root:Running: hg root
DEBUG:root:Command exited with rc 255: ['hg', 'root']
abort: There is no Mercurial repository here (.hg not found)!
---
DEBUG:root:Checking for a Perforce repository...
DEBUG:root:Checking for a Plastic repository...
DEBUG:root:Checking for a Subversion repository...
DEBUG:root:Running: svn info
DEBUG:root:Running: diff --version
DEBUG:root:repository info: Path: svn+ssh://repo, Base path:repopath, 
Supports changesets: False
 Finished checking the repository type.
DEBUG:root:Running: svn propget reviewboard:url currdir
 HTTP GETting api/info/
DEBUG:root:Running: svn diff --diff-cmd=diff
DEBUG:root:Running: svn info .

more debug about svn info all the files

 HTTP GETting api/
 HTTP GETting https://server/api/info/
 Using the new web API
 HTTP GETting https://server/api/repositories/
 HTTP GETting https://server/api/repositories/1/
 Got API Error 101 (HTTP code 403): You don't have permission for this
 Error data: {u'stat': u'fail', u'err': {u'msg': uYou don't have 
permission for this, u'code': 101}}
Error creating review request: You don't have permission for this (HTTP 
403, API Error 101)

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
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/groups/opt_out.




Re: Cannot post-review using API with LDAP user on 1.7.4

2013-02-08 Thread Liam Reimers
Just this:

2013-02-07 22:44:04,478 - DEBUG - Attempting authentication on API for user 
user

On Friday, February 8, 2013 12:14:44 PM UTC-8, Christian Hammond wrote:

 This has come up on occasion with LDAP, but we've never been able to track 
 down the cause.

 Can you check your reviewboard.log file for any messages around the time 
 of a post?

 Christian


 On Feb 8, 2013, at 10:14, Liam Reimers liam.r...@gmail.com javascript: 
 wrote:

 This user is Staff and Admin, but is an LDAP user. User can authenticate 
 to the web pages and perform all actions there.

 He cannot use the post-review client to post a review, getting HTTP/403, 
 API/101:

 % post-review --debug -o

  RBTools 0.4.3
  Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
 [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]
  Running on Darwin-12.3.0-x86_64-i386-64bit
  Home = homedir
  Current Directory = currdir
  Checking the repository type. Errors shown below are mostly harmless.
 DEBUG:root:Checking for a Bazaar repository...
 DEBUG:root:Checking for a CVS repository...
 DEBUG:root:Checking for a ClearCase repository...
 DEBUG:root:Checking for a Git repository...
 DEBUG:root:Running: git rev-parse --git-dir
 DEBUG:root:Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
 fatal: Not a git repository (or any parent up to mount point 
 /Volumes/local_data)
 Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 ---
 DEBUG:root:Checking for a Mercurial repository...
 DEBUG:root:Running: hg showconfig
 DEBUG:root:Running: hg root
 DEBUG:root:Command exited with rc 255: ['hg', 'root']
 abort: There is no Mercurial repository here (.hg not found)!
 ---
 DEBUG:root:Checking for a Perforce repository...
 DEBUG:root:Checking for a Plastic repository...
 DEBUG:root:Checking for a Subversion repository...
 DEBUG:root:Running: svn info
 DEBUG:root:Running: diff --version
 DEBUG:root:repository info: Path: svn+ssh://repo, Base path:repopath, 
 Supports changesets: False
  Finished checking the repository type.
 DEBUG:root:Running: svn propget reviewboard:url currdir
  HTTP GETting api/info/
 DEBUG:root:Running: svn diff --diff-cmd=diff
 DEBUG:root:Running: svn info .

 more debug about svn info all the files

  HTTP GETting api/
  HTTP GETting https://server/api/info/
  Using the new web API
  HTTP GETting https://server/api/repositories/
  HTTP GETting https://server/api/repositories/1/
  Got API Error 101 (HTTP code 403): You don't have permission for this
  Error data: {u'stat': u'fail', u'err': {u'msg': uYou don't have 
 permission for this, u'code': 101}}
 Error creating review request: You don't have permission for this (HTTP 
 403, API Error 101)

 -- 
 Want to help the Review Board project? Donate today at 
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to 
 reviewboard...@googlegroups.com javascript:
 For more options, visit this group at 
 http://groups.google.com/group/reviewboard?hl=en
 --- 
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  



-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
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/groups/opt_out.




Re: Cannot add a remote SVN repo on 1.6.15 (Regression?)

2013-01-08 Thread Liam Reimers
I'd be happy to do some code-level digging. Any tips on where to start?

Thanks

Liam

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en




Re: New comment moderation in effect

2012-12-18 Thread Liam Reimers
Hi... how long does it typically take to get moderated? I'm pretty stuck.

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en




Re: Cannot add a remote SVN repo on 1.6.15 (Regression?)

2012-12-18 Thread Liam Reimers
Hi, thanks for the response.

This is a fresh installation, there was no previously working version.

$ svn --version
svn, version 1.6.18 (r1303927)
   compiled Aug  4 2012, 19:46:53
$ python --version
Python 2.7.1
$ cd src
$ ls
mod_wsgi-3.4 mod_wsgi-3.4.tar.gz pysvn-1.7.6 pysvn-1.7.6.tar.gz
$ ssh -V
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
$ system_profiler SPSoftwareDataType
Software:

System Software Overview:

  System Version: Mac OS X Server 10.7.5 (11G56)
  Server Configuration: Advanced
  Kernel Version: Darwin 11.4.2
  Boot Volume: Server HD
  Boot Mode: Normal
  Computer Name: computer name
  User Name: user name
  Secure Virtual Memory: Enabled
  64-bit Kernel and Extensions: Yes
  Time since boot: 5 days 3:09

$

This as as much as I can give you of the SVN path, but it's very 
straightforward (no spaces or special characters or high ASCII or anything 
of that nature):

svn+ssh://fqhn/svn/devtech

That represents the actual structure of the path, where fqhn is in the form 
server.domain.com.

I will add the envvars to the wsgi and see if I can get additional logging.

Thanks!

On Tuesday, December 18, 2012 12:37:35 PM UTC-8, Christian Hammond wrote:

 Hi,

 What version were you using before that worked? Nothing has changed with 
 SSH in a few releases. Did anything else change? Subversion version?

 This sounds more like the server dropped the connection during our access. 
 I wouldn't be able to tell you why.

 You'll probably need to add the environment variables to your 
 reviewboard.wsgi file in your site's htdocs folder. Otherwise, it won't 
 carry over.

 Being able to see the SVN path you're trying to use would help a lot.

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com javascript:
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com



-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en




Re: Cannot add a remote SVN repo on 1.6.15 (Regression?)

2012-12-18 Thread Liam Reimers
Hmm... did that, and it seems like it should work but it got the same error 
in the reviewboard.log and this in the rbssh log:

12-18 14:16 root   DEBUG['/usr/bin/rbssh', 
'username@hostname', 'svnserve', '-t']
12-18 14:16 root   DEBUGPID 61223
12-18 14:16 root   DEBUG!!! hostname, username, 
['svnserve', '-t']

Username was the one I provided via the path change you suggested above.

Any other thoughts?

On Tuesday, December 18, 2012 2:15:09 PM UTC-8, Christian Hammond wrote:

 That looks like the culprit.

 We're telling SVN of the username, but that's not being passed to rbssh.

 What you can do is change the path to be svn+ssh://username@blah, and then 
 set Mirror Path to be the one without the username@ (in order to be able to 
 look it up properly). See if that works.

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com javascript:
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com



 On Tue, Dec 18, 2012 at 1:59 PM, Liam Reimers 
 liam.r...@gmail.comjavascript:
  wrote:

 Well, this is interesting...

 $ cat /var/log/reviewboard/rbssh-61048.log 
 12-18 13:56 root   DEBUG['/usr/bin/rbssh', 'svn 
 hostname', 'svnserve', '-t']
 12-18 13:56 root   DEBUGPID 61048
 12-18 13:56 root   DEBUG!!! svn hostname, _www, 
 ['svnserve', '-t']

 Does this mean it's trying to run a command as _www? This is the user 
 that the web server runs as, but it's not the user that I configured the 
 repository to use!

 On Tuesday, December 18, 2012 12:37:35 PM UTC-8, Christian Hammond wrote:

 Hi,

 What version were you using before that worked? Nothing has changed with 
 SSH in a few releases. Did anything else change? Subversion version?

 This sounds more like the server dropped the connection during our 
 access. I wouldn't be able to tell you why.

 You'll probably need to add the environment variables to your 
 reviewboard.wsgi file in your site's htdocs folder. Otherwise, it won't 
 carry over.

 Being able to see the SVN path you're trying to use would help a lot.

 Christian

  -- 
 Want to help the Review Board project? Donate today at 
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to 
 reviewboard...@googlegroups.com javascript:
 For more options, visit this group at 
 http://groups.google.com/group/reviewboard?hl=en
  
  




-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en




Cannot add a remote SVN repo on 1.6.15 (Regression?)

2012-12-17 Thread Liam Reimers
Seeing the same issue reported at the last post 
on: https://groups.google.com/d/msg/reviewboard-issues/TDF0cWON4TI/LNNh_RM_K50J

This is reviewboard 1.6.15 on OS X.

To get this far, I did have to: ln -s /usr/local/bin/rbssh /usr/bin/rbssh

When I try to add a repo I get this in the GUI:

A repository was not found at the specified path.

The log shows:

2012-12-17 17:38:08,773 - DEBUG - SVNTool: Attempting ssh connection with 
host: host, username: username
2012-12-17 17:38:08,778 - DEBUG - starting thread (client mode): 0xd213590L
2012-12-17 17:38:08,788 - INFO - Connected (version 2.0, client OpenSSH_5.2)
2012-12-17 17:38:08,791 - DEBUG - kex 
algos:['diffie-hellman-group-exchange-sha256', 
'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 
'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client 
encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 
'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 
'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-...@lysator.liu.se'] 
server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 
'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 
'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-...@lysator.liu.se'] 
client mac:['hmac-md5', 'hmac-sha1', 'umac...@openssh.com', 
'hmac-ripemd160', 'hmac-ripemd...@openssh.com', 'hmac-sha1-96', 
'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', 'umac...@openssh.com', 
'hmac-ripemd160', 'hmac-ripemd...@openssh.com', 'hmac-sha1-96', 
'hmac-md5-96'] client compress:['none', 'z...@openssh.com'] server 
compress:['none', 'z...@openssh.com'] client lang:[''] server lang:[''] kex 
follows?False
2012-12-17 17:38:08,791 - DEBUG - Ciphers agreed: local=aes128-ctr, 
remote=aes128-ctr
2012-12-17 17:38:08,791 - DEBUG - using kex diffie-hellman-group1-sha1; 
server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: 
local hmac-sha1, remote hmac-sha1; compression: local none, remote none
2012-12-17 17:38:08,812 - DEBUG - Switch to new keys ...
2012-12-17 17:38:08,814 - DEBUG - Trying SSH key key id
2012-12-17 17:38:08,817 - DEBUG - userauth is OK
2012-12-17 17:38:09,693 - INFO - Authentication (publickey) successful!
2012-12-17 17:38:09,794 - DEBUG - EOF in transport thread
2012-12-17 17:38:10,285 - ERROR - SVN: Failed to get repository information 
for svn url: To better debug SSH connection problems, remove the -q 
option from 'ssh' in the [tunnels] section of your Subversion configuration 
file.
Network connection closed unexpectedly

When trying rbssh from the command line:

$ sudo -s
bash-3.2# sudo -u _www -s
bash-3.2$ export HOME=/Library/Server/Web/Data/Sites/site/data
bash-3.2$ export DEBUG_RBSSH=1
bash-3.2$ rbssh svn+ssh://username@server/path/to/repo

Welcome to server.

server:~ $ logout
bash-3.2$ 

In other words, it appeared to work fine.

Incidentally, I added the rbssh environment vars to my apache config and no 
logs are showing up.

SetEnv DEBUG_RBSSH 1
SetEnv RBSSH_LOG_DIR /var/log/reviewboard

Any help or advice would be greatly appreciated.

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en