From e1434a9a3dfecd94294bc5dc527d059412797e4d Mon Sep 17 00:00:00 2001
From: madiot <madiot@localhost>
Date: Tue, 25 Aug 2009 08:54:24 +0000
Subject: [PATCH] dsml issues identification in functional test

---
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch127.res.nullPointer.4181.issue                               |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/070_bind_2.res.missingPaulCezanne.4178.issue                     |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del010.res.4178.issue                                       |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch040.res.4178.issue                                           |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del002.res.4178.issue                                       |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/multipost-submission.4182.issue                                     |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/010_compare.res.missingClintEastwood.4178.issue                  |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/09modDNsuite/data/moddn998.res.4178.issue                                         |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/110_bind_6.res.missingPaulCezanne.4178.issue                     |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del999.res.4178.issue                                       |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missing_ou=americas.4178.issue                 |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missing_ou=help_desk.4178.issue                |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-ImportIssue-4178.missing_ou=sales.4178.issue                    |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch999.res.4178.issue                                           |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178-indexSearchProhibited.4178.issue               |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178-presenceIndexSearchMissing.4178.issue          |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/900_proxyauth_1.res.4178.issue                                   |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/02oasissuite/data/search.res.4178.issue                                           |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/search_emptydn.res.nullPointer.4181.issue                     |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/060_bind_1.res.missingPaulCezanne.4178.issue                     |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/05modsuite/data/mod999.res.4178.issue                                             |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch075.res.nullPointer.4181.issue                               |    7 +
 opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_cleanup.xml                                                                           |   16 ++
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/add_novalue.res.4178.issue                                    |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_unitaryor.res.nullPointer.4181.issue             |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missingClintEastwood.4178.issue                |    7 +
 opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_setup.xml                                                                             |   36 ++++
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/modDN_emptyrdn.res                                            |   19 --
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/115_bindwithdn.res.missingPaulCezanne.4178.issue                 |    7 +
 opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_test.xml                                                                              |  136 +++++++++++++++++++
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ou=Corporate_Tax_missing_ref-importIssue.4178.issue                 |    7 +
 opends/tests/staf-tests/shared/dsml/dsmlService.jar                                                                                                |    0 
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/04addmodaddsuite/data/add999.res.missingJpeg.4178.issue                           |    7 +
 opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_substringsnosubfilter.res.nullPointer.4181.issue |    7 +
 opends/tests/staf-tests/functional-tests/testcases/dsml/dsml.xml                                                                                   |    2 
 35 files changed, 390 insertions(+), 22 deletions(-)

diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/02oasissuite/data/search.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/02oasissuite/data/search.res.4178.issue
new file mode 100644
index 0000000..c8e1cc0
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/02oasissuite/data/search.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Tue, 18 Aug 2009 11:34:39 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultEntry dn="dc=example,dc=com"><attr name="dc"><value>example</value></attr><attr name="objectClass"><value>domain</value><value>top</value></attr></searchResultEntry><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/add_novalue.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/add_novalue.res.4178.issue
new file mode 100644
index 0000000..5a5af3f
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/add_novalue.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 08:28:06 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core" requestID="[attr] element has no child [value] element"><addResponse><resultCode code="32"/><errorMessage>Entry uid=abergin,ou=People,dc=siroe,dc=com cannot be added because its parent entry ou=People,dc=siroe,dc=com does not exist in the server</errorMessage></addResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/modDN_emptyrdn.res b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/modDN_emptyrdn.res
index b966475..5a6047e 100755
--- a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/modDN_emptyrdn.res
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/modDN_emptyrdn.res
@@ -1,18 +1,7 @@
-HTTP/1.1 200 OK
-X-Powered-By: Servlet/2.5
-Server: Sun Java System Application Server 9.1
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:49:52 GMT
+Server: Apache-Coyote/1.1
 Content-Type: text/xml
-Date: Thu, 29 Nov 2007 15:25:35 GMT
 Connection: close
 
-<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
-<SOAP-ENV:Body>
-<dsml:batchResponse xmlns:dsml="urn:oasis:names:tc:DSML:2:0:core" requestID="Mandatory attribute [newrdn] of [modDNRequest] element is empty">
-<dsml:modDNResponse>
-<dsml:resultCode code="32"/>
-<dsml:errorMessage>
-The modify DN operation for entry uid=abergin,ou=People,dc=siroe,dc=com cannot be performed because no backend is registered to handle that DN</dsml:errorMessage>
-</dsml:modDNResponse>
-</dsml:batchResponse>
-</SOAP-ENV:Body>
-</SOAP-ENV:Envelope>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core" requestID="Mandatory attribute [newrdn] of [modDNRequest] element is empty"><modDNResponse><resultCode code="34"/><errorMessage>Unable to decode the provided string as a relative distinguished name because the provided string was empty or null</errorMessage></modDNResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/search_emptydn.res.nullPointer.4181.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/search_emptydn.res.nullPointer.4181.issue
new file mode 100644
index 0000000..1fd9c3f
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/search_emptydn.res.nullPointer.4181.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 08:28:35 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core" requestID="Mandatory attribute [dn] of [searchRequest] element is empty"><errorResponse type="gatewayInternalError"><message>java.lang.NullPointerException</message></errorResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_substringsnosubfilter.res.nullPointer.4181.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_substringsnosubfilter.res.nullPointer.4181.issue
new file mode 100644
index 0000000..41e41e0
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_substringsnosubfilter.res.nullPointer.4181.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 08:28:53 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core" requestID="[substrings] element has no subfilter [initial], [any], [final]"><errorResponse type="gatewayInternalError"><message>java.lang.NullPointerException</message></errorResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_unitaryor.res.nullPointer.4181.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_unitaryor.res.nullPointer.4181.issue
new file mode 100644
index 0000000..d50ce05
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_unitaryor.res.nullPointer.4181.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 08:28:53 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core" requestID="???"><errorResponse type="gatewayInternalError"><message>java.lang.NullPointerException</message></errorResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/04addmodaddsuite/data/add999.res.missingJpeg.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/04addmodaddsuite/data/add999.res.missingJpeg.4178.issue
new file mode 100644
index 0000000..65cdc21
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/04addmodaddsuite/data/add999.res.missingJpeg.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 09:26:27 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse><searchResponse><searchResultEntry dn="uid=foo1,ou=People,o=dsmlfe.com"><attr name="telephonenumber"><value>+1 408 555 1221</value></attr></searchResultEntry><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse><searchResponse><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse><searchResponse><searchResultEntry dn="uid=foo41,ou=People,o=dsmlfe.com"><attr name="givenName"><value>foo41</value></attr><attr name="objectClass"><value>person</value><value>inetOrgPerson</value><value>organizationalPerson</value><value>top</value></attr><attr name="pager"><value>+1 999 555 1212</value></attr><attr name="uid"><value>foo41</value></attr><attr name="cn"><value>foo41</value></attr><attr name="telephoneNumber"><value>+1 418 555 1221</value></attr><attr name="sn"><value>41</value></attr><attr name="roomNumber"><value>7t</value></attr><attr name="mail"><value>foo41@airius.com</value></attr><attr name="ou"><value>People</value></attr><attr name="l"><value>foo41bar</value></attr><attr name="facsimileTelephoneNumber"><value>+ 1 418 555 1221</value></attr></searchResultEntry><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/05modsuite/data/mod999.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/05modsuite/data/mod999.res.4178.issue
new file mode 100644
index 0000000..5f1a0e0
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/05modsuite/data/mod999.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 09:26:41 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse><searchResponse><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse><searchResponse><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del002.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del002.res.4178.issue
new file mode 100644
index 0000000..9ac1c69
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del002.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 09:55:00 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><modifyResponse><resultCode code="16"/><errorMessage>Entry uid=tmorris,ou=People,o=dsmlfe.com cannot be modified because an attempt was made to remove one or more values from attribute jpegphoto but this attribute is not present in the entry</errorMessage></modifyResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del010.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del010.res.4178.issue
new file mode 100644
index 0000000..fcc521b
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del010.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 09:55:02 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><delResponse matchedDN="ou=People,o=dsmlfe.com"><resultCode code="32"/><errorMessage>Entry uid=bscharp,ou=People,o=dsmlfe.com does not exist in the Directory Server</errorMessage></delResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del999.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del999.res.4178.issue
new file mode 100644
index 0000000..b603bc7
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/06delmoddelsuite/data/del999.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 10:14:24 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone><resultCode code="50"/><errorMessage>You do not have sufficient privileges to perform an unindexed search</errorMessage></searchResultDone></searchResponse><searchResponse><searchResultDone><resultCode code="50"/><errorMessage>You do not have sufficient privileges to perform an unindexed search</errorMessage></searchResultDone></searchResponse><searchResponse><searchResultDone><resultCode code="50"/><errorMessage>You do not have sufficient privileges to perform an unindexed search</errorMessage></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch040.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch040.res.4178.issue
new file mode 100644
index 0000000..66f9213
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch040.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:27:29 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone matchedDN="ou=Search,o=IMC,c=US"><resultCode code="32"/><errorMessage>The search base entry 'cn=Sophia Loren,ou=Lorgs,ou=Sales,ou=Americas,ou=Search,o=IMC,c=US' does not exist</errorMessage></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch075.res.nullPointer.4181.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch075.res.nullPointer.4181.issue
new file mode 100644
index 0000000..ad4cab7
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch075.res.nullPointer.4181.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:52:22 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><errorResponse type="gatewayInternalError"><message>java.lang.NullPointerException</message></errorResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch127.res.nullPointer.4181.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch127.res.nullPointer.4181.issue
new file mode 100644
index 0000000..22a8a15
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch127.res.nullPointer.4181.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:52:36 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><errorResponse type="gatewayInternalError"><message>java.lang.NullPointerException</message></errorResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch999.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch999.res.4178.issue
new file mode 100644
index 0000000..7518665
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/07srchsuite/data/srch999.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 13:25:45 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultEntry dn="dc=example,dc=com"><attr name="dc"><value>example</value></attr><attr name="objectClass"><value>domain</value><value>top</value></attr></searchResultEntry><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/010_compare.res.missingClintEastwood.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/010_compare.res.missingClintEastwood.4178.issue
new file mode 100644
index 0000000..83728de
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/010_compare.res.missingClintEastwood.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:52:49 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><compareResponse matchedDN="ou=search,o=imc,c=us"><resultCode code="32"/><errorMessage>The specified entry cn=clint eastwood,ou=corporate tax,ou=fin-accounting,ou=americas,ou=search,o=imc,c=us does not exist in the Directory Server</errorMessage></compareResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/060_bind_1.res.missingPaulCezanne.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/060_bind_1.res.missingPaulCezanne.4178.issue
new file mode 100644
index 0000000..4e169c3
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/060_bind_1.res.missingPaulCezanne.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:52:52 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><modifyResponse><resultCode code="0"/></modifyResponse><searchResponse><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse><modifyResponse><resultCode code="32"/><errorMessage>Entry cn=paul cezanne,ou=americas,ou=search,o=imc,c=us cannot be modified because no such entry exists in the server</errorMessage></modifyResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/070_bind_2.res.missingPaulCezanne.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/070_bind_2.res.missingPaulCezanne.4178.issue
new file mode 100644
index 0000000..f5b1e4a
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/070_bind_2.res.missingPaulCezanne.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:52:54 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><modifyResponse><resultCode code="32"/><errorMessage>Entry cn=paul cezanne,ou=americas,ou=search,o=imc,c=us cannot be modified because no such entry exists in the server</errorMessage></modifyResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/110_bind_6.res.missingPaulCezanne.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/110_bind_6.res.missingPaulCezanne.4178.issue
new file mode 100644
index 0000000..2f01870
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/110_bind_6.res.missingPaulCezanne.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:52:58 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><modifyResponse><resultCode code="32"/><errorMessage>Entry cn=paul cezanne,ou=americas,ou=search,o=imc,c=us cannot be modified because no such entry exists in the server</errorMessage></modifyResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/115_bindwithdn.res.missingPaulCezanne.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/115_bindwithdn.res.missingPaulCezanne.4178.issue
new file mode 100644
index 0000000..3957fdc
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/115_bindwithdn.res.missingPaulCezanne.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:53:01 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><modifyResponse><resultCode code="32"/><errorMessage>Entry cn=paul cezanne,ou=americas,ou=search,o=imc,c=us cannot be modified because no such entry exists in the server</errorMessage></modifyResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/900_proxyauth_1.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/900_proxyauth_1.res.4178.issue
new file mode 100644
index 0000000..bb62224
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/08miscsuite/data/900_proxyauth_1.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:53:46 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><modifyResponse><resultCode code="32"/><errorMessage>Entry cn=paul cezanne,ou=americas,ou=search,o=imc,c=us cannot be modified because no such entry exists in the server</errorMessage></modifyResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/09modDNsuite/data/moddn998.res.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/09modDNsuite/data/moddn998.res.4178.issue
new file mode 100644
index 0000000..8733812
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/09modDNsuite/data/moddn998.res.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:53:53 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse requestID="229"><searchResultDone><resultCode code="50"/><errorMessage>You do not have sufficient privileges to perform an unindexed search</errorMessage></searchResultDone></searchResponse><searchResponse requestID="230"><searchResultDone><resultCode code="50"/><errorMessage>You do not have sufficient privileges to perform an unindexed search</errorMessage></searchResultDone></searchResponse><searchResponse requestID="232"><searchResultDone><resultCode code="50"/><errorMessage>You do not have sufficient privileges to perform an unindexed search</errorMessage></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
\ No newline at end of file
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/multipost-submission.4182.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/multipost-submission.4182.issue
new file mode 100644
index 0000000..262f723
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/multipost-submission.4182.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:53:03 GMT
+Transfer-Encoding: chunked
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><errorResponse type="malformedRequest"><message>javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: Content is not allowed in trailing section.</message></errorResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ou=Corporate_Tax_missing_ref-importIssue.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ou=Corporate_Tax_missing_ref-importIssue.4178.issue
new file mode 100644
index 0000000..16be487
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ou=Corporate_Tax_missing_ref-importIssue.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:27:27 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone matchedDN="ou=Search,o=IMC,c=US"><resultCode code="32"/><errorMessage>The search base entry 'ou=Corporate Tax,ou=Fin-Accounting,ou=Americas,ou=Search,o=IMC,c=US' does not exist</errorMessage></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-ImportIssue-4178.missing_ou=sales.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-ImportIssue-4178.missing_ou=sales.4178.issue
new file mode 100644
index 0000000..17c9c3a
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-ImportIssue-4178.missing_ou=sales.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:27:31 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone matchedDN="ou=Search,o=IMC,c=US"><resultCode code="32"/><errorMessage>The search base entry 'ou=Sales,ou=Americas,ou=Search,o=IMC,c=US' does not exist</errorMessage></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178-indexSearchProhibited.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178-indexSearchProhibited.4178.issue
new file mode 100644
index 0000000..ea6563c
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178-indexSearchProhibited.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 10:14:26 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone><resultCode code="50"/><errorMessage>You do not have sufficient privileges to perform an unindexed search</errorMessage></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178-presenceIndexSearchMissing.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178-presenceIndexSearchMissing.4178.issue
new file mode 100644
index 0000000..8e6903f
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178-presenceIndexSearchMissing.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 10:14:29 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone><resultCode code="0"/></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope+>
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missingClintEastwood.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missingClintEastwood.4178.issue
new file mode 100644
index 0000000..8ad0f4b
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missingClintEastwood.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:53:42 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><compareResponse matchedDN="ou=search,o=imc,c=us"><resultCode code="32"/><errorMessage>The specified entry cn=clint eastwood,ou=corporate tax,ou=fin-accounting,ou=americas,ou=search,o=imc,c=us does not exist in the Directory Server</errorMessage></compareResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missing_ou=americas.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missing_ou=americas.4178.issue
new file mode 100644
index 0000000..a51e3ca
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missing_ou=americas.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:27:34 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone matchedDN="ou=Search,o=IMC,c=US"><resultCode code="32"/><errorMessage>The search base entry 'ou=Americas,ou=Search,o=IMC,c=US' does not exist</errorMessage></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
diff --git a/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missing_ou=help_desk.4178.issue b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missing_ou=help_desk.4178.issue
new file mode 100644
index 0000000..689d0d2
--- /dev/null
+++ b/opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/genericIssues/ref-importIssue-4178.missing_ou=help_desk.4178.issue
@@ -0,0 +1,7 @@
+HTTP1.1 200 OK
+Date: Wed, 19 Aug 2009 11:27:42 GMT
+Server: Apache-Coyote/1.1
+Content-Type: text/xml
+Connection: close
+
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"><searchResponse><searchResultDone matchedDN="ou=Search,o=IMC,c=US"><resultCode code="32"/><errorMessage>The search base entry 'ou=Help Desk,ou=IT,ou=Americas,ou=Search,o=IMC,c=US' does not exist</errorMessage></searchResultDone></searchResponse></batchResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
diff --git a/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml.xml b/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml.xml
index c096616..9c82c62 100755
--- a/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml.xml
+++ b/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml.xml
@@ -51,7 +51,7 @@
               suiteList = []
               suiteList.append('dsml_test')
             </script>
-    
+
             <!-- Run the test suites -->
             <iterate  var="_suite" in="suiteList">
               <sequence>              
diff --git a/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_cleanup.xml b/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_cleanup.xml
index 9264314..890fbdf 100755
--- a/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_cleanup.xml
+++ b/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_cleanup.xml
@@ -114,6 +114,22 @@
               { 'location'   : STAF_REMOTE_HOSTNAME ,
               'wcPath' : '%s/%s-%s' % (WC_DIRECTORY,WC_TYPE,WC_VERSION) }
             </call>
+            <message>'getting the list of generic known Issues spanning multiple tests'</message>
+            <call function="'runSTAFCommand'">
+              { 'name'      :  'backup tomcat log files',
+                'location'  :  STAXServiceMachine,
+                'service'   :  'FS',
+                'request'   :  'COPY ',
+                'arguments' :  'DIRECTORY %s/%s-%s/logs TODIRECTORY %s/tomcatLogBackup RECURSE' % (WC_DIRECTORY, WC_TYPE, WC_VERSION, local.temp)
+              }
+            </call>
+
+            <if expr="RC != 0">
+              <sequence>
+                <message>'Failed to backup tomcat log file'</message>
+                <return>0</return>
+              </sequence>
+            </if>
 
             <call function="'testCase_Postamble'"/>
           </sequence>
diff --git a/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_setup.xml b/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_setup.xml
index 4393bdc..3285df9 100755
--- a/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_setup.xml
+++ b/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_setup.xml
@@ -51,7 +51,7 @@
               </message>
               <call function="'prepareInstanceCreation'">
                 { 'groupDataDir' : 'dsml',
-                  'fileExtensions' : ['dat','res'] }
+                  'fileExtensions' : ['dat','res','issue'] }
               </call>
               <call function="'checktestRC'">
                 {
@@ -132,9 +132,9 @@
               </message>
               <script>
                 dsmlBaseDNs = {
-                  'o=dsmlfe.com'      : ('dsmlfe.ldif', 'dsmlfe_BE'),
-                  'dc=example,dc=com' : ('oasis.ldif', 'oasis_BE'),
-                  'o=IMC, c=US'       : ('search.ldif', 'example_BE')
+                  'o=dsmlfe.com'      : ('dsmlfe.ldif', 'dsmlfe_BE', 160),
+                  'dc=example,dc=com' : ('oasis.ldif', 'oasis_BE', 160),
+                  'o=IMC, c=US'       : ('search.ldif', 'example_BE', 1084),
                 }
               </script>
               <iterate var="baseDN" in="dsmlBaseDNs.keys()">
@@ -180,6 +180,34 @@
                       'backEnd' : '%s' % dsmlBaseDNs.get(baseDN)[1]
                     }
                   </call>
+                  <script>
+                    nbEntriesExpected = dsmlBaseDNs.get(baseDN)[2]
+                  </script>
+                  <call function="'ldapSearchWithScript'">
+                    {
+                    'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+                    'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+                    'dsInstanceDn'   : DIRECTORY_INSTANCE_DN ,
+                    'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+                    'dsCountEntries' : 'True' ,
+                    'dsBaseDN'       : baseDN,
+                    'dsFilter'       : 'objectclass=*' ,
+                    'expectedRC'     : 'noCheck'
+                    }
+                  </call>
+
+                  <script>
+                    returnString = STAXResult[0][1]
+                  </script>
+
+                  <call function="'checktestString'">
+                    {
+                    'returnString'     : returnString ,
+                    'expectedString'   : 'Total number of matching entries: %s' % nbEntriesExpected,
+                    'issue'            : '4178'
+                    }
+                  </call>
+
                   <call function="'checkRC'">
                     { 'returncode' : RC ,
                       'result'     : STAXResult }
diff --git a/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_test.xml b/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_test.xml
index c50ce75..c48d4b5 100755
--- a/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_test.xml
+++ b/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_test.xml
@@ -91,6 +91,10 @@
               # The subversion folder could be present, if so remove it
               if familyList.count != 0:
                 try:
+                  familyList.remove('genericIssues')
+                except ValueError:
+                  print "List element genericIssues does not exist"
+                try:
                   familyList.remove('.svn')
                 except ValueError:
                   print "List element .svn does not exist"
@@ -104,6 +108,31 @@
                 'SSL'   : 'https://%s:%s/dsml/DSMLServlet' % (WC_HOST,WC_SSL_PORT) \
               }
             </script>
+            <message>'dsml list of suites %s' % familyList</message>
+            <message>'getting the list of generic known Issues spanning multiple tests'</message>
+            <call function="'runSTAFCommand'">
+              { 'name'      :  'list known generic issues',
+                'location'  :  STAXServiceMachine,
+                'service'   :  'FS',
+                'request'   :  'LIST DIRECTORY',
+                'arguments' :  '%s/dsml/suites/genericIssues EXT issue RECURSE' % (local.data)
+              }
+            </call>
+
+            <if expr="RC != 0">
+              <sequence>
+                <message>
+                  'Failed to get known generic issues from %s/dsml/suites/genericIssues' % (local.data)
+                </message>
+                <return>0</return>
+              </sequence>
+              <else>
+                <script>
+                  genericIssues = STAFResult
+                </script>
+              </else>
+            </if>
+            
             <message>'DSML familyList = %s' % familyList</message>
             <iterate var="family" in="familyList">
               <sequence>
@@ -136,7 +165,7 @@
                 <script>
                   familyExpected = STAFResult
                 </script>
-    
+
                 <iterate var="test" in="familyInput">
                   <testcase name="getTestCaseName('%s-%s' % (family,test))">
                     <sequence>
@@ -250,7 +279,110 @@
                                   'arguments' :  '%s EXP_FILE %s' %(runFilePath, expectedFilePath)
                                 }
                               </call>
-        
+                              <if expr="RC != 0">
+                                <!-- list the known issue for the TC -->
+                              <sequence>
+
+
+                                <message>"check against test's known issues"</message>
+
+                                <call function="'runSTAFCommand'">
+                                  { 'name'      :  'list known issues for the test',
+                                    'location'  :  STAXServiceMachine,
+                                    'service'   :  'FS',
+                                    'request'   :  'LIST DIRECTORY',
+                                    'arguments' :  '%s/dsml/suites/%s/data NAME %s* EXT issue RECURSE' % (local.data,family,expectedFileName)
+                                  }
+                                </call>
+
+                                <if expr="RC != 0">
+                                  <sequence>
+                                    <message>
+                                      'Failed to get known issues for %s/dsml/suites/%s/data/%s ' % (local.data,family,expectedFileName)
+                                    </message>
+                                    <return>0</return>
+                                  </sequence>
+                                  <else>
+                                    <try>
+                                      <sequence>
+                                        <script>
+                                          knownTestIssues = STAFResult
+                                        </script>
+                                        <message >'known Test Issues %s' % knownTestIssues</message>
+                                        <if expr="len(knownTestIssues) > 0">
+                                          <iterate var="issueFile" in="knownTestIssues">
+                                            <sequence>
+                                              <script>
+                                                  # the issue number is the before last element of the '.' splited path
+                                                  issue=issueFile.split('.')[-2]
+                                                  issueFilePath = '%s/dsml/suites/%s/data/%s' % (local.data,family,issueFile)
+                                              </script>
+                                              <call function="'runSTAFCommand'">
+                                                { 'name'      :  'check if known issue %s' % issue,
+                                                  'location'  :  STAXServiceMachine,
+                                                  'service'   :  'DSML',
+                                                  'request'   :  'COMPARE',
+                                                  'arguments' :  'FILE %s EXP_FILE %s' %(runFilePath, issueFilePath)
+
+                                                }
+                                              </call>
+                                              <if expr="RC == 0">
+                                                <sequence>
+                                                  <!-- this is a known issue -->
+                                                  <call function="'setKnownIssue'">
+                                                    { 'issueId' : issue }
+                                                  </call>
+                                                  <break/>
+                                                </sequence>
+                                              </if>
+                                            </sequence>
+                                          </iterate>
+                                        </if>
+                                        <if expr="len(genericIssues) > 0">
+                                          <iterate var="issueFile" in="genericIssues">
+                                            <sequence>
+                                              <script>
+                                                  # the issue number is the before last element of the '.' splited path
+                                                  issue=issueFile.split('.')[-2]
+                                                  issueFilePath = '%s/dsml/suites/genericIssues/%s' % (local.data,issueFile)
+                                              </script>
+                                              <call function="'runSTAFCommand'">
+                                                { 'name'      :  'check if known generic issue %s' % issue,
+                                                  'location'  :  STAXServiceMachine,
+                                                  'service'   :  'DSML',
+                                                  'request'   :  'COMPARE',
+                                                  'arguments' :  'FILE %s EXP_FILE %s' %(runFilePath, issueFilePath)
+
+                                                }
+                                              </call>
+                                              <if expr="RC == 0">
+                                                <sequence>
+                                                  <!-- this is a known issue -->
+                                                  <call function="'setKnownIssue'">
+                                                    { 'issueId' : issue }
+                                                  </call>
+                                                  <break/>
+                                                </sequence>
+                                              </if>
+                                            </sequence>
+                                          </iterate>
+                                        </if>
+                                      </sequence>
+                                      <catch exception="'...'" typevar="eType" var="eInfo">
+                                        <sequence>
+                                          <message log="1" level="'fatal'">
+                                            'Test case (%s) failed. eType(%s),eInfo(%s)' % (STAXCurrentTestcase,eType,eInfo)
+                                          </message>
+                                          <tcstatus result="'fail'"/>
+                                        </sequence>
+                                      </catch>
+                                    </try>
+                                  </else>
+                                </if>
+
+                              </sequence>
+
+                              </if>
                               <call function="'checktestRC'">
                                 {
                                 'returncode' : RC ,
diff --git a/opends/tests/staf-tests/shared/dsml/dsmlService.jar b/opends/tests/staf-tests/shared/dsml/dsmlService.jar
index 314f118..b56e1fd 100755
--- a/opends/tests/staf-tests/shared/dsml/dsmlService.jar
+++ b/opends/tests/staf-tests/shared/dsml/dsmlService.jar
Binary files differ

--
Gitblit v1.10.0