@@ -234,7 +234,7 @@ private static String getResourceUri() {
234
234
}
235
235
236
236
private static String getResourceWithDocTypeUri () {
237
- return getServerUri () + TEST_DOCTYPE_COLLECTION_URI .append (TEST_XML_DOC_WITH_DOCTYPE_URI ) + "?_omit-xml-declaration=yes" ;
237
+ return getServerUri () + TEST_DOCTYPE_COLLECTION_URI .append (TEST_XML_DOC_WITH_DOCTYPE_URI );
238
238
}
239
239
240
240
private static String getResourceWithXmlDeclUri () {
@@ -757,7 +757,7 @@ public void requestGetParameterFromModule() throws IOException {
757
757
758
758
/* execute the stored xquery a few times */
759
759
for (int i = 0 ; i < 5 ; i ++) {
760
- final HttpURLConnection connect = getConnection (getCollectionUri () + "/requestparameter.xql?doc=somedoc" + i + "&_omit-xml-declaration=yes" );
760
+ final HttpURLConnection connect = getConnection (getCollectionUri () + "/requestparameter.xql?doc=somedoc" + i );
761
761
try {
762
762
connect .setRequestProperty ("Authorization" , "Basic " + credentials );
763
763
connect .setRequestMethod ("GET" );
@@ -831,7 +831,7 @@ public void execGuestQueryWithNoAuth() throws IOException {
831
831
chmod (XmldbURI .ROOT_COLLECTION + "/test/auth.xq" , "rwxrw-r-x" );
832
832
833
833
// call the auth.xq
834
- final String uri = getCollectionUri () + "/auth.xq?_omit-xml-declaration=yes " ;
834
+ final String uri = getCollectionUri () + "/auth.xq" ;
835
835
final HttpURLConnection connect = getConnection (uri );
836
836
try {
837
837
connect .setRequestMethod ("GET" );
@@ -876,7 +876,7 @@ public void execQueryWithBasicAuth() throws IOException {
876
876
chmod (XmldbURI .ROOT_COLLECTION + "/test/auth.xq" , "rwxrw-r--" );
877
877
878
878
// call the auth.xq
879
- final String uri = getCollectionUri () + "/auth.xq?_omit-xml-declaration=yes " ;
879
+ final String uri = getCollectionUri () + "/auth.xq" ;
880
880
final HttpURLConnection connect = getConnection (uri );
881
881
try {
882
882
connect .setRequestProperty ("Authorization" , "Basic " + credentials );
@@ -922,7 +922,7 @@ public void execQueryWithBasicAuthCaseInsensitive() throws IOException {
922
922
chmod (XmldbURI .ROOT_COLLECTION + "/test/auth.xq" , "rwxrw-r--" );
923
923
924
924
// call the auth.xq
925
- final String uri = getCollectionUri () + "/auth.xq?_omit-xml-declaration=yes " ;
925
+ final String uri = getCollectionUri () + "/auth.xq" ;
926
926
final HttpURLConnection connect = getConnection (uri );
927
927
try {
928
928
connect .setRequestProperty ("Authorization" , "bAsiC " + credentials ); // NOTE(AR): Intentional use of 'bAsiC' to test case-insensitive scheme matching
@@ -968,7 +968,7 @@ public void execSetUidQueryWithNoAuth() throws IOException {
968
968
chmod (XmldbURI .ROOT_COLLECTION + "/test/auth.xq" , "rwsr--r-x" );
969
969
970
970
// call the auth.xq
971
- final String uri = getCollectionUri () + "/auth.xq?_omit-xml-declaration=yes " ;
971
+ final String uri = getCollectionUri () + "/auth.xq" ;
972
972
final HttpURLConnection connect = getConnection (uri );
973
973
try {
974
974
connect .setRequestMethod ("GET" );
@@ -1019,7 +1019,7 @@ public void execSetUidQueryWithBasicAuth() throws IOException {
1019
1019
chmod (XmldbURI .ROOT_COLLECTION + "/test/auth.xq" , "rwsr--r-x" );
1020
1020
1021
1021
// call the auth.xq
1022
- final String uri = getCollectionUri () + "/auth.xq?_omit-xml-declaration=yes " ;
1022
+ final String uri = getCollectionUri () + "/auth.xq" ;
1023
1023
final HttpURLConnection connect = getConnection (uri );
1024
1024
try {
1025
1025
connect .setRequestMethod ("GET" );
@@ -1088,7 +1088,7 @@ public void execSetUidQueryWithBearerAuth() throws IOException {
1088
1088
chmod (XmldbURI .ROOT_COLLECTION + "/test/auth.xq" , "rwsr--r-x" );
1089
1089
1090
1090
// call the auth.xq
1091
- final String uri = getCollectionUri () + "/auth.xq?_omit-xml-declaration=yes " ;
1091
+ final String uri = getCollectionUri () + "/auth.xq" ;
1092
1092
final HttpURLConnection connect = getConnection (uri );
1093
1093
try {
1094
1094
connect .setRequestMethod ("GET" );
@@ -1136,7 +1136,7 @@ public void execSetUidQueryWithBearerAuth() throws IOException {
1136
1136
// all the tests with EncodedPath in function declaration aim to test rest server ability to handle special characters
1137
1137
@ Test
1138
1138
public void doGetEncodedPath () throws IOException {
1139
- String DOC_URI = getServerUri () + XmldbURI .ROOT_COLLECTION + "/AéB/AéB.xml?_omit-xml-declaration=yes " ;
1139
+ String DOC_URI = getServerUri () + XmldbURI .ROOT_COLLECTION + "/AéB/AéB.xml" ;
1140
1140
final HttpURLConnection connect = getConnection (DOC_URI );
1141
1141
try {
1142
1142
connect .setRequestMethod ("GET" );
@@ -1177,7 +1177,7 @@ public void doHeadEncodedPath() throws IOException {
1177
1177
1178
1178
@ Test
1179
1179
public void doPutEncodedPath () throws IOException {
1180
- String DOC_URI = getServerUri () + XmldbURI .ROOT_COLLECTION + "/AéB/AéB.xml?_omit-xml-declaration=yes " ;
1180
+ String DOC_URI = getServerUri () + XmldbURI .ROOT_COLLECTION + "/AéB/AéB.xml" ;
1181
1181
final HttpURLConnection connect = getConnection (DOC_URI );
1182
1182
final HttpURLConnection getConnect = getConnection (DOC_URI );
1183
1183
String data = "<foobar/>" ;
@@ -1305,7 +1305,7 @@ public void getDocTypeDefault() throws IOException {
1305
1305
1306
1306
@ Test
1307
1307
public void getDocTypeNo () throws IOException {
1308
- final HttpURLConnection connect = getConnection (getResourceWithDocTypeUri () + "& _output-doctype=no" );
1308
+ final HttpURLConnection connect = getConnection (getResourceWithDocTypeUri () + "? _output-doctype=no" );
1309
1309
try {
1310
1310
connect .setRequestMethod ("GET" );
1311
1311
connect .connect ();
@@ -1330,7 +1330,7 @@ public void getDocTypeNo() throws IOException {
1330
1330
1331
1331
@ Test
1332
1332
public void getDocTypeYes () throws IOException {
1333
- final HttpURLConnection connect = getConnection (getResourceWithDocTypeUri () + "& _output-doctype=yes" );
1333
+ final HttpURLConnection connect = getConnection (getResourceWithDocTypeUri () + "? _output-doctype=yes" );
1334
1334
try {
1335
1335
connect .setRequestMethod ("GET" );
1336
1336
connect .connect ();
@@ -1429,7 +1429,7 @@ public void getXmlDeclDefault() throws IOException {
1429
1429
1430
1430
@ Test
1431
1431
public void getXmlDeclNo () throws IOException {
1432
- final HttpURLConnection connect = getConnection (getResourceWithXmlDeclUri () + "?_omit-xml-declaration=no&_omit- original-xml-declaration=no" );
1432
+ final HttpURLConnection connect = getConnection (getResourceWithXmlDeclUri () + "?_omit-original-xml-declaration=no" );
1433
1433
try {
1434
1434
connect .setRequestMethod ("GET" );
1435
1435
connect .connect ();
@@ -1455,7 +1455,7 @@ public void getXmlDeclNo() throws IOException {
1455
1455
1456
1456
@ Test
1457
1457
public void getXmlDeclYes () throws IOException {
1458
- final HttpURLConnection connect = getConnection (getResourceWithXmlDeclUri () + "?_omit-xml-declaration=yes&_omit- original-xml-declaration=yes" );
1458
+ final HttpURLConnection connect = getConnection (getResourceWithXmlDeclUri () + "?_omit-original-xml-declaration=yes" );
1459
1459
try {
1460
1460
connect .setRequestMethod ("GET" );
1461
1461
connect .connect ();
@@ -1516,7 +1516,7 @@ private void doPut(final String data, final String path, final int responseCode)
1516
1516
1517
1517
private void doStoredQuery (final boolean cacheHeader , final boolean wrap ) throws IOException {
1518
1518
1519
- String uri = getCollectionUri () + "/test.xq?p=Hello&&_omit-xml-declaration=yes " ;
1519
+ String uri = getCollectionUri () + "/test.xq?p=Hello" ;
1520
1520
if (wrap ) {
1521
1521
uri += "&_wrap=yes" ;
1522
1522
}
0 commit comments