mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gary_williams
12.29.2007 b6d6b516bb7268e7af2ca1569a00e0437bbcfd06
Fix Issue 898 function deletefolder should check folder exist before delete
1 files modified
24 ■■■■■ changed files
opends/tests/functional-tests/shared/functions/stafcmd.xml 24 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/shared/functions/stafcmd.xml
@@ -313,7 +313,29 @@
      <sequence>
        <stafcmd name="'STAF Command: Recursively Delete Folder'">
      <stafcmd name="'STAF Command: Get Folder Attributes'">
        <location>'%s' % (hostname)</location>
        <service>'fs'</service>
        <request>'GET ENTRY %s TYPE' % (foldername)</request>
      </stafcmd>
      <if expr="RC == 48">
        <sequence>
          <message log="1">
            'Folder does not exist, do not delete it.'
          </message>
          <return>0</return>
        </sequence>
        <else>
          <sequence>
            <message log="1">
              'Folder exists, will delete it'
            </message>
          </sequence>
        </else>
      </if>
      <stafcmd name="'STAF Command: Recursively Delete Folder'">
          <location>'%s' % (hostname)</location>
          <service>'fs'</service>
          <request>