I have created a review request on ReviewBoard using the api, but I am now unable to add a diff file to this review request.
I am following the ReviewBoard instructions to sent a POST request to ReviewBoard API --> https://www.reviewboard.org/docs/manual/2.0/webapi/2.0/resources/diff-list/
My request header looks like this
{Content-Type: multipart/form-data; boundary=------- 1511347017267}{Accept: application/xml}{Authorization: token 4937d...sometoken...584b23}
My request body looks like this
------- 1511345733192
Content-Disposition: form-data; name="basedir"
/trunk_projectABC/
------- 1511345733192
Content-Disposition: form-data; name="path"; filename="build.diff"
Content-Type: text/xml
Index: utility/build.bat
===================================================================
--- utility/build.bat (revision 67210)
+++ utility/build.bat (working copy)
@@ -10,8 +10,8 @@
echo off
set thpcra=false
set patchBuild=false
-set help=true
-set clientBuild=true
+set help=false
+set clientBuild=false
set runJavaTestCases=false
set buildpath="%BUILD_PATH%"
set jdkpath="%JDK_17%"
------- 1511345733192 --
I found another question here review board diff not uploading and made sure that the repo URL + basedir + relative path is set right but I still get BAD REQUEST response from the server.
NOTE: I generated the diff using tortoiseSVN tool
I am using HttpURLConnection conn = (HttpURLConnection) url.openConnection();
Any inputs on why I am getting BAD REQUEST from the server ?