Re: Changes required in reviewboard after repo server migration from http to https

2022-04-21 Thread David Trowbridge
You can update this by going to the admin site and clicking "General" under
"Settings". Change the "Server" field (and perhaps the media/static URLs if
necessary) to be https instead of http.

David

On Thu, Apr 21, 2022 at 10:31 AM Manoj Sharma 
wrote:

>
> Hi there,
>
> We've recently migrated our repository server (10.1.1.2) which now works
> over https (instead of http).
>
> With above change, review board is now reporting following problem when I
> do view diff
>
> Can you please suggest how to resolve this problem?
>
> Diff currently unavailable.
> *Error:* OPTIONS of 'http://10.1.1.2/repos/automation/trunk/scripts/abc.sh':
> 200 OK (http://10.1.1.2)
> Details 
> Traceback (most recent call last): File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/views.py",
> line 251, in view_diff_fragment diff_file = get_requested_diff_file() File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/views.py",
> line 171, in get_requested_diff_file populate_diff_chunks(files,
> highlighting, request=request) File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/diffutils.py",
> line 345, in populate_diff_chunks chunks = generator.get_chunks() File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
> line 137, in get_chunks large_data=True) File
> "/usr/lib/python2.6/site-packages/Djblets-0.7.15-py2.6.egg/djblets/util/misc.py",
> line 156, in cache_memoize data = lookup_callable() File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
> line 136, in  lambda: list(self._get_chunks_uncached()), File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
> line 141, in _get_chunks_uncached old = get_original_file(self.filediff,
> self.request) File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/diffutils.py",
> line 124, in get_original_file request) File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/models.py",
> line 170, in get_file large_data=True)[0] File
> "/usr/lib/python2.6/site-packages/Djblets-0.7.15-py2.6.egg/djblets/util/misc.py",
> line 156, in cache_memoize data = lookup_callable() File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/models.py",
> line 169, in  lambda: [self._get_file_uncached(path, revision,
> request)], File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/models.py",
> line 250, in _get_file_uncached data = self.get_scmtool().get_file(path,
> revision) File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/svn.py",
> line 188, in get_file return self._do_on_path(get_file_data, path,
> revision) File
> "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/svn.py",
> line 172, in _do_on_path raise SCMError(e) SCMError: OPTIONS of '
> http://10.1.1.2/repos/automation/trunk/scripts/abc.sh': 200 OK (
> http://10.1.1.2)
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/cd09e930-de8e-4621-a569-a9d2f4f6a1a8n%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAFS3VNX_s9b6rL1oAj-iFXRbmZcnjz5JNvbY-U9Mb6XFUaoT2Q%40mail.gmail.com.


Changes required in reviewboard after repo server migration from http to https

2022-04-21 Thread Manoj Sharma

Hi there,

We've recently migrated our repository server (10.1.1.2) which now works 
over https (instead of http).

With above change, review board is now reporting following problem when I 
do view diff

Can you please suggest how to resolve this problem?

Diff currently unavailable. 
*Error:* OPTIONS of 
'http://10.1.1.2/repos/automation/trunk/scripts/abc.sh': 200 OK 
(http://10.1.1.2) 
Details  
Traceback (most recent call last): File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/views.py",
 
line 251, in view_diff_fragment diff_file = get_requested_diff_file() File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/views.py",
 
line 171, in get_requested_diff_file populate_diff_chunks(files, 
highlighting, request=request) File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/diffutils.py",
 
line 345, in populate_diff_chunks chunks = generator.get_chunks() File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
 
line 137, in get_chunks large_data=True) File 
"/usr/lib/python2.6/site-packages/Djblets-0.7.15-py2.6.egg/djblets/util/misc.py",
 
line 156, in cache_memoize data = lookup_callable() File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
 
line 136, in  lambda: list(self._get_chunks_uncached()), File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
 
line 141, in _get_chunks_uncached old = get_original_file(self.filediff, 
self.request) File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/diffviewer/diffutils.py",
 
line 124, in get_original_file request) File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/models.py",
 
line 170, in get_file large_data=True)[0] File 
"/usr/lib/python2.6/site-packages/Djblets-0.7.15-py2.6.egg/djblets/util/misc.py",
 
line 156, in cache_memoize data = lookup_callable() File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/models.py",
 
line 169, in  lambda: [self._get_file_uncached(path, revision, 
request)], File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/models.py",
 
line 250, in _get_file_uncached data = self.get_scmtool().get_file(path, 
revision) File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/svn.py",
 
line 188, in get_file return self._do_on_path(get_file_data, path, 
revision) File 
"/usr/lib/python2.6/site-packages/ReviewBoard-1.7.9-py2.6.egg/reviewboard/scmtools/svn.py",
 
line 172, in _do_on_path raise SCMError(e) SCMError: OPTIONS of 
'http://10.1.1.2/repos/automation/trunk/scripts/abc.sh': 200 OK 
(http://10.1.1.2) 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/cd09e930-de8e-4621-a569-a9d2f4f6a1a8n%40googlegroups.com.


ReviewBoard && Google Secure LDAP

2022-04-21 Thread Mark Waterhouse
Hi all

I have just installed a new installation of ReviewBoard and am trying to 
setup authentication against Google Secure LDAP
As part of this, I have had to install and setup an stunnel configuration 
and having done tests, I can see that this works.

If I perform a simple ldapsearch
  ldapsearch -x -D CrimsenAc -w myPassword -H ldap://localhost:1636/ -b 
dc=example,dc=com '*'
I get valid output

I have configured LDAP authentication within ReviewBoard with a valid LDAP 
Server, no TLS (as I'm using stunnel instead), a bind account (CrimsenAc), 
the password for the bind account, and the LDAP base DN (dc=example,dc=com).
I have also configured the Username attribute to be '(uid=%s)'
...and this could be the issue (?)


The apache log files show 'Error authenticating user' with an LDAP result of
{'result': -7, 'desc': 'Bad search filter', 'ctrls': [], 'info': 'Valid 
access code'}


Has anyone managed to get LDAP authentication working with ReviewBoard and 
Google workspace?


Thanks in advance
Mark

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/fe15a29d-4e44-4359-9ae9-22b5a67dd731n%40googlegroups.com.


RBTools Ticket #4968: How to find 'movedFile' for Perforce shelved changes

2022-04-21 Thread Kevin Masssey
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4968/
--

New ticket #4968 by masseyk
For Beanbag, Inc. > RBTools

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


--
How to find 'movedFile' for Perforce shelved changes
==

This is just an FYI communication to share knowledge. I noticed in RBTools 
source the following comment:
 
# XXX: fstat *ought* to work, but Perforce doesn't supply the movedFile
# field in fstat (or apparently anywhere else) when a change is
# shelved. For now, _diff_pending will avoid calling this method at all
# for shelved changes, and instead treat them as deletes and adds.
 
This is possible, though, if you use the Perforce client name associated with 
the shelved change. For example, here's a shelved change that contains a moved 
file and is associated with client "masseyk_priv":

$ p4 changes -umasseyk -sshelved -m1
Change 2464690 on 2022/04/19 by masseyk@masseyk_priv *pending* 'Test Testing 
Done:  Bug Number:'

If I run fstat within another client, I don't get movedFile:

$ p4 client -o | grep '^Client:'
Client: masseyk_build-vmshared
$ p4 fstat -T depotFile,movedFile 
//depot/Priv/masseyk/manifest-test4/text-2-move@=2464690
... depotFile //depot/Priv/masseyk/manifest-test4/text-2-move

But if I specify client "massey_priv" in this command, I do:

$ p4 -c masseyk_priv fstat -T depotFile,movedFile 
//depot/Priv/masseyk/manifest-test4/text-2-move@=2464690
... depotFile //depot/Priv/masseyk/manifest-test4/text-2-move
... movedFile //depot/Priv/masseyk/manifest-test4/text-2

(I don't know why Perforce works this way.)

For the record, here's my Perforce info:

$ p4 info
User name: masseyk
Client name: masseyk_build-vmshared
Client host: ubuntu
Client root: /s/vmshared/clients/build
Current directory: /s/vmshared/clients/build/apps/lib/build/rbutils
Peer address: 10.118.252.166:33142
Client address: 10.21.243.247
Server address: perforce-releng.eng.vmware.com:1850
Server root: /p4d/perforce-releng_1850
Server date: 2022/04/21 06:28:15 -0700 PDT
Server uptime: 4323:04:10
Server version: P4D/LINUX26X86_64/2020.2/2179691 (2021/09/02)
ServerID: perforce-releng_1850
Server services: standard
Proxy address: bos2-prd-rdev-p4p001a.eng.vmware.com:1850
Proxy version: P4P/LINUX26X86_64/2020.2/2112800 (2021/04/08)
Server license: Vmware, Inc. 4823 users (support ends 2022/05/19) (expires 
2022/05/19) 
Server license-ip: 127.0.0.1
Case Handling: sensitive


--

-- 
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/20220421133049.30829.25162%40ip-10-1-54-209.ec2.internal.