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.samanta...@gmail.com> 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+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.
>

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