I did few trials on line 83 of clearcase.py. IF i change the "vobs/"
to "M:/" it gives the element path in the error which otherwise would
state substring not found.

I am not sure what exactly shud i do after this.....can you guys
suggest me some ways to figure out this.

when its is "vobs/" in clearcase.py script.

>>> Uploading diff, size: 907
>>> HTTP POSTing to 
>>> http://172.24.1.107/reviewboard_lgsi/api/json/reviewrequests/176/diff/new/: 
>>> {'basedir': 'M:/'}
>>> Got API Error 105 (HTTP code 200): One or more fields had errors
>>> Error data: {u'fields': {u'path': [u'substring not found']}, u'stat': 
>>> u'fail', u'err': {u'msg': u'One or more fields
 had errors', u'code': 105}, u'deprecated': {u'in_version': u'1.5'}}

When its is changes to "M:/":

>>> Uploading diff, size: 907
>>> HTTP POSTing to 
>>> http://172.24.1.107/reviewboard_lgsi/api/json/reviewrequests/175/diff/new/: 
>>> {'basedir': 'M:/'}
>>> Got API Error 105 (HTTP code 200): One or more fields had errors
>>> Error data: {u'fields': {u'path': [u'cat: 
>>> M:/chetan.d_RB_Integration_int/RB_CVOB/@@/main/RB_Integration_main/2/Docum
ents/@@/main/RB_Integration_main/2/Doc1.txt@@/@@/main/
RB_Integration_main/2: No such file or directory\n']}, u'stat': u'
fail', u'err': {u'msg': u'One or more fields had errors', u'code':
105}, u'deprecated': {u'in_version': u'1.5'}}







On Aug 23, 9:01 am, Chetan <chetan....@gmail.com> wrote:
> Below are my RB and ClearCase configurations.
>
> RB is setup on Ubuntu
> post-review and clearcase is on windows XP client from wer i am
> generating the request.
>
> Thnks for the info i will do few trail and errors and see if i can get
> it working.
>
> On Aug 19, 2:01 am, Dan Savilonis <d...@n-cube.org> wrote:
>
>
>
> > Is your server running Linux? I've only tested Clearcase support using
> > a Windows RB server. Take a look at line 83 of 
> > clearcase.py:http://github.com/reviewboard/reviewboard/blob/master/reviewboard/scm...
>
> > You're likely going to need to do some editing here. I don't know
> > anything about how Clearcase works on Linux, but I'm guessing the
> > assumption that all vobs are mounted under vobs/ might not be true...
>
> > Dan
>
> > On Aug 10, 6:47 am, Chetan <chetan....@gmail.com> wrote:
>
> > > As suggested by you i enabled logging to debug clearcase error. I
> > > given the log information when i execute post-review for clearcase
> > > below.
>
> > > ###########################################################################
> > >  ########################
> > > 2010-08-10 03:39:32,064 - DEBUG - DiffParser.parse: Beginning parse of
> > > diff, size = 1070
> > > 2010-08-10 03:39:32,064 - DEBUG - DiffParser.parse: Finished parsing
> > > diff.
> > > 2010-08-10 03:39:32,065 - ERROR - Error uploading new diff: substring
> > > not found
> > > Traceback (most recent call last):
> > >   File "/usr/lib/python2.5/site-packages/ReviewBoard-1.5rc1-py2.5.egg/
> > > reviewboard/webapi/json.py", line 1169, in new_diff
> > >     request.FILES.get('parent_diff_path'))
> > >   File "/usr/lib/python2.5/site-packages/ReviewBoard-1.5rc1-py2.5.egg/
> > > reviewboard/reviews/forms.py", line 234, in create
> > >     history)
> > >   File "/usr/lib/python2.5/site-packages/ReviewBoard-1.5rc1-py2.5.egg/
> > > reviewboard/diffviewer/forms.py", line 63, in create
> > >     diff_file, basedir, check_existance=(not parent_diff_file)))
> > >   File "/usr/lib/python2.5/site-packages/ReviewBoard-1.5rc1-py2.5.egg/
> > > reviewboard/diffviewer/forms.py", line 149, in _process
> > > _files
> > >     not tool.file_exists(filename, revision))):
> > >   File "/usr/lib/python2.5/site-packages/ReviewBoard-1.5rc1-py2.5.egg/
> > > reviewboard/scmtools/core.py", line 68, in file_exists
> > >     self.get_file(path, revision)
> > >   File "/usr/lib/python2.5/site-packages/ReviewBoard-1.5rc1-py2.5.egg/
> > > reviewboard/scmtools/clearcase.py", line 45, in get_fil
> > > e
> > >     return self.client.cat_file(self.adjust_path(path), revision)
> > >   File "/usr/lib/python2.5/site-packages/ReviewBoard-1.5rc1-py2.5.egg/
> > > reviewboard/scmtools/clearcase.py", line 83, in adjust_
> > > path
> > >     elem_path = elem_path[elem_path.rindex("vobs/")+5:]
> > > ValueError: substring not found
> > > ###########################################################################
> > >  ########################
>
> > > On Aug 10, 11:15 am, Chetan <chetan....@gmail.com> wrote:
>
> > > > I wanted execute svn diff recursively but found could not generate
> > > > one. But now I found if i run svn diff from the svn root directory it
> > > > handles all changes recursively.
>
> > > > On Aug 9, 12:24 pm, Christian Hammond <chip...@chipx86.com> wrote:
>
> > > > > I'm not sure what you mean exactly. Is it not generating a diff with 
> > > > > all
> > > > > files recursively, or is there some reason why doing it recursively 
> > > > > isn't
> > > > > good enough?...
>
> > > > > read more »
>
> > > > > Are you using the post-review tool?
>
> > > > > Christian
>
> > > > > --
> > > > > Christian Hammond - chip...@chipx86.com
> > > > > Review Board -http://www.reviewboard.org
> > > > > VMware, Inc. -http://www.vmware.com
>
> > > > > On Mon, Aug 9, 2010 at 12:21 AM, Chetan <chetan....@gmail.com> wrote:
> > > > > > I got reviewboard working for subversion including https.
> > > > > > In svn diff we cannot generate recursive diff coz of which we may 
> > > > > > have
> > > > > > to generate folder specific diffs. Is there a way around this?
>
> > > > > > Thanks for the support.
>
> > > > > > On Aug 5, 11:55 am, Christian Hammond <chip...@chipx86.com> wrote:
> > > > > > > As long as you have the $sitedir/data directory writable by the 
> > > > > > > web
> > > > > > server's
> > > > > > > user, you should be able to get https working. If you already had 
> > > > > > > the
> > > > > > > repository entry in there from RB 1.0.x, go back to that 
> > > > > > > repository and
> > > > > > save
> > > > > > > it again. It should attempt to verify the certificate and then 
> > > > > > > ask you
> > > > > > for
> > > > > > > confirmation. If that data directory is writable, it will store 
> > > > > > > it there
> > > > > > and
> > > > > > > it should just work from then on....
>
> > > > > > > read more »
>
> > > > > > > Christian
>
> > > > > > > --
> > > > > > > Christian Hammond - chip...@chipx86.com
> > > > > > > Review Board -http://www.reviewboard.org
> > > > > > > VMware, Inc. -http://www.vmware.com
>
> > > > > > > On Wed, Aug 4, 2010 at 10:28 PM, Chetan <chetan....@gmail.com> 
> > > > > > > wrote:
> > > > > > > > Thank a ton.
> > > > > > > > Review board with svn is working for me. svn project is using 
> > > > > > > > just
> > > > > > > > local protocol authentication like svn://prj and not on https. 
> > > > > > > > I still
> > > > > > > > get errors for https projects.
>
> > > > > > > > What are the steps to configure reviewboard to use with https
> > > > > > > > configured svn projects?
> > > > > > > > Once i have completed svn configiration will start to work on
> > > > > > > > clearcase issue.
>
> > > > > > > > You asked me to enable logging to debug clearcase issue, wer 
> > > > > > > > shud i
> > > > > > > > enable it. Is it the same one under reviewboard-> settinges-> 
> > > > > > > > logging -
> > > > > > > > > enable logging option?
>
> > > > > > > > On Aug 4, 9:33 am, Christian Hammond <chip...@chipx86.com> 
> > > > > > > > wrote:
> > > > > > > > > You'll need to use svn diff. TortoiseSVN's diffs aren't
> > > > > > compatible....
>
> > > > > > > > > read more »
>
> > > > > > > > > I strongly recommend using our post-review tool (part of 
> > > > > > > > > RBTools) to
> > > > > > > > create
> > > > > > > > > and update review requests, as it works around some problems 
> > > > > > > > > in
> > > > > > standard
> > > > > > > > SVN
> > > > > > > > > diffs as well.
>
> > > > > > > > > Christian
>
> > > > > > > > > --
> > > > > > > > > Christian Hammond - chip...@chipx86.com
> > > > > > > > > Review Board -http://www.reviewboard.org
> > > > > > > > > VMware, Inc. -http://www.vmware.com
>
> > > > > > > > > On Tue, Aug 3, 2010 at 9:31 PM, Chetan <chetan....@gmail.com> 
> > > > > > > > > wrote:
> > > > > > > > > > Is it a problem with the diff format? The date and time in 
> > > > > > > > > > diff
> > > > > > output
> > > > > > > > > > file is in "Tue Jul 27 12:34:43 2010" format , I changed it 
> > > > > > > > > > to
> > > > > > > > > > "2010-07-27 12:34:43 2010" format and uploaded but has not 
> > > > > > > > > > helped
> > > > > > in
> > > > > > > > > > sovling the issue.
>
> > > > > > > > > > On Aug 2, 4:18 pm, Chetan <chetan....@gmail.com> wrote:
> > > > > > > > > > > I have used TortoiseSVN diff and selected "create unified 
> > > > > > > > > > > diff"
> > > > > > > > option
> > > > > > > > > > > to create the diff in unified format.
>
> > > > > > > > > > > On Aug 2, 1:44 pm, Christian Hammond <chip...@chipx86.com>
> > > > > > wrote:
>
> > > > > > > > > > > > How did you generate the diff? It looks like the diff 
> > > > > > > > > > > > contains
> > > > > > a
> > > > > > > > date
> > > > > > > > > > string
> > > > > > > > > > > > instead of revision information....
>
> > > > > > > > > > > > read more »
>
> > > > > > > > > > > > Christian
>
> > > > > > > > > > > > --
> > > > > > > > > > > > Christian Hammond - chip...@chipx86.com
> > > > > > > > > > > > Review Board -http://www.reviewboard.org
> > > > > > > > > > > > VMware, Inc. -http://www.vmware.com
>
> > > > > > > > > > > > On Mon, Aug 2, 2010 at 1:11 AM, Chetan 
> > > > > > > > > > > > <chetan....@gmail.com>
> > > > > > > > wrote:
> > > > > > > > > > > > > I have changed the Traceback Switch to copy-and-paste 
> > > > > > > > > > > > > view
> > > > > > mode
> > > > > > > > and
> > > > > > > > > > > > > pasting the errors.
>
> > > > > > > > > > > > > Environment:
>
> > > > > > > > > > > > > Request Method: POST
> > > > > > > > > > > > > Request 
> > > > > > > > > > > > > URL:http://172.24.1.107/reviewboard_lgsi/r/new/
> > > > > > > > > > > > > Django Version: 1.2.1
> > > > > > > > > > > > > Python Version: 2.5.2
> > > > > > > > > > > > > Installed Applications:
> > > > > > > > > > > > > ['django.contrib.admin',
> > > > > > > > > > > > >  'django.contrib.auth',
> > > > > > > > > > > > >  'django.contrib.contenttypes',
> > > > > > > > > > > > >  'django.contrib.markup',
> > > > > > > > > > > > >  'django.contrib.sites',
> > > > > > > > > > > > >  'django.contrib.sessions',
> > > > > > > > > > > > >  'djblets.datagrid',
> > > > > > > > > > > > >  'djblets.feedview',
> > > > > > > > > > > > >  'djblets.log',
> > > > > > > > > > > > >  'djblets.siteconfig',
> > > > > > > > > > > > >  'djblets.util',
> > > > > > > > > > > > >  'djblets.webapi',
> > > > > > > > > > > > >  'reviewboard.accounts',
> > > > > > > > > > > > >  'reviewboard.admin',
> > > > > > > > > > > > >  'reviewboard.changedescs',
> > > > > > > > > > > > >  'reviewboard.diffviewer',
> > > > > > > > > > > > >  'reviewboard.iphone',
> > > > > > > > > > > > >  'reviewboard.notifications',
> > > > > > > > > > > > >  'reviewboard.reports',
> > > > > > > > > > > > >  'reviewboard.reviews',
> > > > > > > > > > > > >  'reviewboard.scmtools',
> > > > > > > > > > > > >  'reviewboard.webapi',
> > > > > > > > > > > > >  'django_evolution']
> > > > > > > > > > > > > Installed Middleware:
> > > > > > > > > > > > > ('django.middleware.gzip.GZipMiddleware',
> > > > > > > > > > > > >  'django.middleware.common.CommonMiddleware',
> > > > > > > > > > > > >  'django.middleware.doc.XViewMiddleware',
> > > > > > > > > > > > >  'django.middleware.http.ConditionalGetMiddleware',
> > > > > > > > > > > > >  'django.middleware.locale.LocaleMiddleware',
> > > > > > > > > > > > >  'django.contrib.sessions.middleware.SessionMiddleware',
> > > > > > > > > > > > >  'django.contrib.auth.middleware.AuthenticationMiddleware',
> > > > > > > > > > > > >  'djblets.siteconfig.middleware.SettingsMiddleware',- 
> > > > > > > > > > > > > Hide quoted text -
>
> - Show quoted text -...
>
> read more »

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

Reply via email to