Merged 5.2.0 (5.2.0) to HEAD (5.2)

133222 jkaabimofrad: Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
      133185 jkaabimofrad: APPSREPO-61: As part of code review, renamed the quick share expiry date period flag.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@133407 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-12-06 17:23:05 +00:00
parent 88dfe85b18
commit d55a13c3c3

View File

@@ -903,7 +903,7 @@ public class SharedLinkApiTest extends AbstractBaseApiTest
body.setExpiresAt(DateTime.now().minusSeconds(20).toDate());
post(URL_SHARED_LINKS, RestApiUtil.toJsonAsString(body), 400);
// The default expiryDate period is DAYS (see: 'system.quickshare.expiry_date.enforce.period' property),
// The default expiryDate period is DAYS (see: 'system.quickshare.expiry_date.enforce.minimum.period' property),
// so the expiry date must be at least 1 day from now
body.setExpiresAt(DateTime.now().plusMinutes(5).toDate());
post(URL_SHARED_LINKS, RestApiUtil.toJsonAsString(body), 400);