688689690691692693694695696697698
} if (exists) { boolean result = true; try { resources.unbind(path); } catch (NamingException e) { result = false; } if (result) { resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
975976977978979980981982983984985
{ // expected behaviour } // Remove entry (use new rdn) ctx.unbind( newRdn ); } /** * Test for DIRSERVER-1162 and DIRSERVER-1085.
10161017101810191020102110221023102410251026
{ // expected behaviour } // Remove entry (use new rdn) ctx.unbind( newRdn ); } private String getRdn( Attributes attributes, String... rdnTypes ) throws Exception {
389390391392393394395396397398399
{ // expected behaviour } // Remove entry (use old rdn) ctx.unbind( oldRdn ); } /** * Test for DIRSERVER-1086.
18001801180218031804180518061807180818091810
boolean collection = (object instanceof DirContext); if (!collection) { try { resources.unbind(path); } catch (NamingException e) { resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR); return false; } } else {
18111812181318141815181618171818181918201821
Hashtable errorList = new Hashtable(); deleteCollection(req, resources, path, errorList); try { resources.unbind(path); } catch (NamingException e) { errorList.put(path, new Integer (WebdavStatus.SC_INTERNAL_SERVER_ERROR)); }
670671672673674675676677678679680
373374375376377378379380381382383
958959960961962963964965966967968
9991000100110021003100410051006100710081009