Thank for the response David .

I had rbtool 0.4.1 so rbt was not there so i installed 0.5.2 and got rbt 
script  .

To attach a arbitary file to existing review ,as per you i am using *"rbt 
attach 359 --filename=diff"* (where 359 is ReviewID), it giving below usage 
messge 


hostname:/vobs/ms 167 % *rbt attach 359 --filename=diff*
*Usage: rbt attach [options] <review-request-id> <file>*
*
*
*rbt: error: Invalid number of arguments provided*


So i tried the command as *"rbt attach 359 diff"* (where 359 is the 
reviewID and diff is the filename) but it giving error *" CRITICAL:root:" 
.Please have look and let me know what could be the issue .*
*
*
*Note:The reviewBoard server version 1.6.3 and Rbtools is 0.5.2 ,Python 2.7 
*

rbt attach 359 diff
CRITICAL:root:

*below is the debug output :*

 169 % rbt attach 359 diff -d
DEBUG:root:Checking for a Subversion repository...
DEBUG:root:Checking for a Git repository...
DEBUG:root:Checking for a Mercurial repository...
DEBUG:root:Checking for a CVS repository...
DEBUG:root:Checking for a Perforce repository...
DEBUG:root:Checking for a Plastic repository...
DEBUG:root:Checking for a ClearCase repository...
DEBUG:root:Running: cleartool pwv -short
DEBUG:root:Running: diff --version
DEBUG:root:Running: cleartool lsview -full -properties -cview
DEBUG:root:Running: cleartool describe -short vob:.
DEBUG:root:Running: cleartool pwv -root
DEBUG:root:repository info: Path: /vobs/ms-test, Base path: /vobs/ms-test, 
Supports changesets: False
DEBUG:root:Making HTTP GET request to https://ppsappdev02:443/api/
Traceback (most recent call last):
  File "/clearcase/tools/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.5.2', 'console_scripts', 'rbt')()
  File 
"/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/main.py",
 
line 106, in main
    command.run_from_argv([RB_MAIN] + args)
  File 
"/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/__init__.py",
 
line 157, in run_from_argv
    exit_code = self.main(*args) or 0
  File 
"/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/attach.py",
 
line 67, in main
    request = self.get_review_request(request_id, api_root)
  File 
"/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/attach.py",
 
line 55, in get_review_request
    request = api_root.get_review_request(review_request_id=request_id)
  File 
"/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/api/resource.py",
 
line 278, in __getattr__
    raise AttributeError
AttributeError











On Tuesday, August 20, 2013 1:01:04 AM UTC+5:30, David Trowbridge wrote:
>
> You can't use "post-review --diff-filename" to upload arbitrary files. The 
> newer "rbt" commands will let you upload file attachments with "rbt attach 
> <review request ID> --filename=<filename>"
>
> For your existing 
>
>
> On Mon, Aug 19, 2013 at 4:35 AM, Akshaya Samantaray <
> akshaya.s...@gmail.com <javascript:>> wrote:
>
>> Hi David ,
>>
>> My object is just to upload a file which  can be any file (*.gif  or 
>> *.bmp ) (need not be a diff file) using commandline "post-review 
>> --diff-filename=file_name " to review-board server in our clear-case 
>> environment 
>>
>> How to do it using post-review in clearcase environment ? let me know if 
>>  any other option to post-review  is there ?
>>
>> Thanks
>>
>>
>>
>> On Monday, August 19, 2013 4:39:59 PM UTC+5:30, Akshaya Samantaray wrote:
>>>
>>> HI David ,
>>>
>>> Thanks for the response .
>>>
>>> d1.diff is just diff file i have created manually i.e the diff between 
>>> my dev branch changes & Integration branch changes redirected to file 
>>> called  d1.diff and i am trying to upload this manually created diff file 
>>> d1.diff using  "*post-review --diff-filename=d1.diff --server="
>>> https://MyRbServer <https://myrbserver/>" .*
>>> *
>>> *
>>> I can upload this manually created diff file d1.diff file from GUI in 
>>> reviewboard  page  but not sure why its not uploading using  from command 
>>> line using  "post-review diff-**filename=d1.diff --server="
>>> https://MyRbServer <https://myrbserver/>"" .I am not getting any clue 
>>> from the post-review debug log or reviewboard server log .
>>>
>>> Do i need to have any setup for apache or reviewboard server side 
>>>  configuration ?where can i check to get the exact clue for this error ? 
>>>
>>> Please have a look and get back to me .I am waiting for your response .
>>>
>>> Thanks
>>>
>>> >>> HTTP POSTing to 
>>> >>> https://MyRbServer/api/**review-requests/370/diffs/<https://myrbserver/api/review-requests/370/diffs/>:
>>> >>>  
>>> {'basedir': u'/view/ppreleng_**reviewboardAdmin/vobs/ms-test'**}
>>> *>>> Got API Error 105 (HTTP code 400): One or more fields had errors*
>>> *>>> Error data: {u'fields': {u'path': [u'The diff file is empty']}, 
>>> u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', 
>>> u'code': 105}}*
>>>
>>> Error uploading diff
>>>
>>> The generated diff file was empty. This usually means no files were
>>> modified in this change.
>>>
>>> Try running with --output-diff and --debug for more information.
>>>
>>>
>>>
>>> *
>>> *
>>> *
>>> *
>>> *
>>> *
>>> *
>>> *
>>> On Friday, August 16, 2013 11:15:13 PM UTC+5:30, David Trowbridge wrote:
>>>>
>>>> What is in "d1.diff"? The debug output says it's 27 bytes, which 
>>>> doesn't sound like a diff file.
>>>>
>>>> -David
>>>>
>>>>
>>>> On Fri, Aug 16, 2013 at 3:28 AM, Akshaya Samantaray <
>>>> akshaya.s...@gmail.com> wrote:
>>>>
>>>>> HI,
>>>>>
>>>>> Ours is base clearcase Enviroment .Our Reviewboard  server is LINUX 
>>>>> rhel machine with RB version 1.6.3 .i am running post-review from Linux 
>>>>> hosts having rb tools 0.4.1  
>>>>>
>>>>> I am facing same  issue while uploading existing diff file using 
>>>>> "*post-review 
>>>>> --diff-filename"* from linux host ..The review is getting created but 
>>>>> the diff file is not getting uploaded from command line post-review  .I 
>>>>> can 
>>>>> upload the diff file from GUI to the appropriate review ID but failing 
>>>>>  from commandline "*post-review --diff-filename"*
>>>>>
>>>>> Let me know if any specfic Server side configuration missing  ? 
>>>>>  Please help .
>>>>>
>>>>> Error:
>>>>>
>>>>> 14 % *post-review --diff-filename=d1.diff --server="https://MyRbServer"; 
>>>>>  -d*
>>>>> >>> RBTools 0.4.1
>>>>> >>> Home = /emc/ppreleng
>>>>> >>> HTTP GETting api/
>>>>> >>> HTTP GETting https://MyRbServer/api/info/
>>>>> >>> Using the new web API
>>>>> >>> HTTP GETting 
>>>>> >>> https://MyRbServer/api/**repositories/<https://MyRbServer/api/repositories/>
>>>>> >>> HTTP GETting 
>>>>> >>> https://MyRbServer/api/**repositories/1/<https://MyRbServer/api/repositories/1/>
>>>>> >>> HTTP GETting 
>>>>> >>> https://MyRbServer/api/**repositories/1/info/<https://MyRbServer/api/repositories/1/info/>
>>>>> >>> HTTP GETting 
>>>>> >>> https://MyRbServer/api/**repositories/2/<https://MyRbServer/api/repositories/2/>
>>>>> >>> HTTP GETting 
>>>>> >>> https://MyRbServer/api/**repositories/2/info/<https://MyRbServer/api/repositories/2/info/>
>>>>> >>> HTTP GETting 
>>>>> >>> https://MyRbServer/api/**repositories/3/<https://MyRbServer/api/repositories/3/>
>>>>> >>> HTTP GETting 
>>>>> >>> https://MyRbServer/api/**repositories/3/info/<https://MyRbServer/api/repositories/3/info/>
>>>>> >>> Attempting to create review request on 
>>>>> >>> /view/ppreleng_**reviewboardAdmin/vobs/ms-test 
>>>>> for None
>>>>> >>> HTTP POSTing to 
>>>>> >>> https://MyRbServer/api/review-**requests/<https://MyRbServer/api/review-requests/>:
>>>>> >>>  
>>>>> {'repository': u'/view/ppreleng_**reviewboardAdmin/vobs/ms-test'**}
>>>>> >>> Review request created
>>>>> >>> Uploading diff, size: 27
>>>>> >>> HTTP POSTing to https://MyRbServer/api/review-**
>>>>> requests/370/diffs/<https://MyRbServer/api/review-requests/370/diffs/>: 
>>>>> {'basedir': u'/view/ppreleng_**reviewboardAdmin/vobs/ms-test'**}
>>>>> *>>> Got API Error 105 (HTTP code 400): One or more fields had errors*
>>>>> *>>> Error data: {u'fields': {u'path': [u'The diff file is empty']}, 
>>>>> u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', 
>>>>> u'code': 105}}*
>>>>>
>>>>> Error uploading diff
>>>>>
>>>>> The generated diff file was empty. This usually means no files were
>>>>> modified in this change.
>>>>>
>>>>> Try running with --output-diff and --debug for more information.
>>>>>
>>>>> Your review request still exists, but the diff is not attached.
>>>>>
>>>>> On Tuesday, October 30, 2012 2:14:29 PM UTC+5:30, Alvin NG wrote:
>>>>>>
>>>>>> Hi, 
>>>>>>
>>>>>> I could not attach the difference between revisions to my review. 
>>>>>> It gives me the error "Got API Error 105 (HTTP code 400): One or more 
>>>>>> fields had errors". 
>>>>>> I have also tried to output the difference by using svn diff and 
>>>>>> attach the file to my review, but it still gives me the same error. 
>>>>>>
>>>>>> My command: post-review 
>>>>>> --server=http://localhost/**revi**ewboard<http://localhost/reviewboard>--debug
>>>>>>  
>>>>>> --disable-proxy --target-group=proj_test -- revision=0:11 --diff- 
>>>>>> filename=diff.txt 
>>>>>>
>>>>>> (I'm not sure if this would also help) The repository server of my 
>>>>>> Reviewboard is like this svn://localhost/test_proj but not the local 
>>>>>> path to the reviewboard server 
>>>>>>
>>>>>> Many thanks, 
>>>>>> Alvin 
>>>>>>
>>>>>  -- 
>>>>> Want to help the Review Board project? Donate today at 
>>>>> http://www.reviewboard.org/**donate/<http://www.reviewboard.org/donate/>
>>>>> Happy user? Let us know at 
>>>>> http://www.reviewboard.org/**users/<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<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<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...@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.

Reply via email to