------------------------------------------------------------------------------
To reply, visit https://hellosplat.com/s/beanbag/tickets/4864/
------------------------------------------------------------------------------

New ticket #4864 by henryd
For Beanbag, Inc. > RBTools

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

File attachments:

 * ipv6 perforce fix RBTools-1.0.2-py2.7.egg.zip
   <https://hellosplat.com/s/beanbag/attachments/1364/>



------------------------------------------------------------------------------
rbt setup-repo fails due to IPv6 ServerAddress returned in p4 info
==============================================================================

# What version are you running?
1.0.2

# What steps will reproduce the problem?
1. connect to perforce using ipv4 address
2. setup Repository on ReviewBoard using ipv4 address
3. rbt login
4. rbt setup-repo


# What is the expected output? What do you see instead?
expected that rbt setup-repo finds the ReviewBoard repo via the p4 connection 
address and creates ".reviewboardrc"

# What operating system are you using?
Windows10

# Attach the debug out from the command.

```
N:\<#WorkspaceRoot#>>rbt setup-repo --debug
>>> RBTools 1.0.2
>>> Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:22:17) [MSC v.1500 32 
>>> bit (Intel)]
>>> Running on Windows-10-10.0.18362
>>> Home = <HomeDir>
>>> Current directory = N:\<#WorkspaceRoot#>
>>> Command line: rbt setup-repo --debug
>>> Running: tf vc help
>>> Checking for a Subversion repository...
>>> Unable to execute "svn help": skipping SVN
>>> Checking for a Git repository...
>>> Unable to execute "git --help" or "git.cmd --help": skipping Git
>>> Checking for a Mercurial repository...
>>> Unable to execute "hg --help": skipping Mercurial
>>> Checking for a CVS repository...
>>> Unable to execute "cvs": skipping CVS
>>> Checking for a Perforce repository...
>>> Running: p4 info
>>> Running: diff --version
>>> Repository info: Path: <#PerforceServer IPV6 Address#>, Base path: None, 
>>> Supports changesets: True
>>> Checking for a Plastic repository...
>>> Unable to execute "cm version": skipping Plastic
>>> Checking for a ClearCase repository...
>>> Unable to execute "cleartool help": skipping ClearCase
>>> Checking for a Bazaar repository...
>>> Unable to execute "bzr help": skipping Bazaar
>>> Checking for a Team Foundation Server repository...
>>> Unable to execute "tf help": skipping TFS
>>> Making HTTP GET request to http://192.168.1.81/api/
>>> Making HTTP GET request to http://192.168.1.81/api/repositories/
>>> Cached response for HTTP GET http://192.168.1.81/api/repositories/ expired 
>>> and was modified
No Perforce repository found or selected for 192.168.1.81. .reviewboardrc not 
created.
```


# Please provide any additional information below.
<#PerforceServer IPV6 Address#> is the perforce server returning IPV6 address 
even thoug P4PORT connects via an IPV4 address, the mismatch casues rbt 
setup-repo to fail. In order to fix this I modified the python scripts to 
additionally lok for the address in P4PORT returned by the command "p4 set"
The modified python scripts are attached in my 


------------------------------------------------------------------------------

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard-issues/20200303175634.17530.25312%40ip-10-1-54-209.ec2.internal.

Reply via email to