Modified UserCSVUploadPost behaviour to use an empty string for password creation instead of the user's first name.
Modified RepositoryAuthenticationDao > createUser behaviour to treat the case when the password is an empty string or null.
Added a Unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@136902 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- add embedded testArchiveToPdf & ensure ArchiveContentTransformerTest is added to suite (wasn't being run before ?)
- minor refactor of related tests to ensure "Transformers" subsystem is started before checking content transformer registry
- add TEMP workaround to attempt to (re-)start LibreOffice/OpenOffice when running in local env
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@136802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- The reason that no tasks were found was that the ActivitiTypeConverter.findUserTasks(...)
method simply did not take sup processes into account. Transitions in a sub process were
not being walked, so no user tasks inside the sub process were found. A test was added that
ensures that the task inside the sub process of the sample workflow is now found.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@136799 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
136703 cpopa: APPSREPO-183 : Create repository unit tests for the new policies added for PermissionService and AuthorityService
- added Junit tests that exercise the new PermissionServicePolicies and AuthorityServicePolicies
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@136715 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
135804 jkaabimofrad: APPSREPO-35, APPSREPO-118: Added tests for reset password service and REST API.
- Added a utility class (EmailUtil) to work with MailActionExecutor in test mode
- Added a new workflow task responsible for sending the reset password confirmation email (per peer review)
- Changed the reset-password endpoint to return a 202 response for an inactive workflow or invalid workflow id, key or mismatched user
- Some other minor changes as the result of adding tests
- Also, fixed tests failures by changing the reset password workflow definition target namespace URI.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135931 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Added two JUnit tests that test that the audit records are added when using SearchService query(SearchParameters): one in the AuditMethodInterceptorTest and another one in AuditWebScriptTest that is using the Rest-API get audit method to query the audit
- Refactored also an existing test in AuditMethodInterceptorTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135899 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
* Support the creation of thumbnails for 2008/9 and 2013/14 iWorks file types.
* Support the preview of 2008/9 and 2013/14 iWorks file types. It should be noted that the
embedded PDF files from 2008/9 no longer are used for the preview, so the quality is not
as good as it was in the past. It is however using the embedded JPEG and quality is reasonable.
* AppleIWorksContentTransformer no longer supports PDF as an target mimetype, as the newer
iWoks 2013/14 formats no longer includes an embedded PDF file. Having PDF supported by the
transformer resulted in Share always trying PDF which was one of the reasons that the newer
formats did not preview. The other reason was that the embedded JPEG filename also changed.
* Added 'quick' files for testing.
* Also modified the exception message thrown when the iWorks file did not contain an embedded
preview file, which is optional. An example would is "The source numbers file did not contain
a jpg preview", rather than "Unable to transform numbers file to jpg". This should reduce the
number of issues raised with support.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135869 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- explicit charset requests are not supported by Alfresco repository. we use guess encoding methods
- the fix is to correctly interpret the mimetype text for the CMIS requests and make CMIS behave similarly to REST V1 APIs when working with content.
- added tests for the 3 affected methods
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
135505 jkaabimofrad: APPSREPO-137: Made quick-share email template configurable via properties file. The template path property value could be an XPATH, a NodeRef of the template or a class path of the template.
- Added a helper class to provide email template related utility functions
- Added share as a default registered client for sending email - the template assets (images) will be available in share.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135566 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- fallout from MNT-12894
- noticed by customer when iterating via CMIS getChildren with no explict sort order
- we need to put back an implicit sort order, if none is specified
- note: todo - we could consider optimising further for those use-cases where maxItems is greater than a pre-configured threshold (eg. > 1000) and we don't expect to sensibly page through that many results
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135457 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
135141 cpopa: Merged WEBAPP-API (5.2.1) to 5.1.N (5.1.3)
135076 cpopa: MNT-17341 : External users with Manager role cannot invite other external users to the site because site invitation accept fails
- removed redundant test which was also causing problems to AbstractInvitationServiceImplTest because of a name clash
SiteService.deleteSite doesn't remove a site completely, instead it leaves behind authorities and permissions, thus a SiteService.createSite would throw an exception
even though SiteService.getSite returns null.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135151 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
135140 cpopa: Merged WEBAPP-API (5.2.1) to 5.1.N (5.1.3)
135064 cpopa: MNT-17341 : External users with Manager role cannot invite other external users to the site because site invitation accept fails
- added test ActivitiInvitationServiceImplTests to its own suite
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135150 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
135139 cpopa: Merged WEBAPP-API (5.2.1) to 5.1.N (5.1.3)
135063 cpopa: MNT-17341 : External users with Manager role cannot invite other external users to the site because site invitation accept fails
- added the @Category(BaseSpringTestsCategory.class) to ActivitiInvitationServiceImplTests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135149 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
135138 cpopa: Merged WEBAPP-API (5.2.1) to 5.1.N (5.1.3)
135053 cpopa: MNT-17341 : External users with Manager role cannot invite other external users to the site because site invitation accept fails
- moved the ActivitiInvitationServiceImplTests test to the proper suite
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135148 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
135137 cpopa: Merged WEBAPP-API (5.2.1) to 5.1.N (5.1.3)
135050 cpopa: MNT-17341 : External users with Manager role cannot invite other external users to the site because site invitation accept fails
- Enabled test ActivitiInvitationServiceImplTests by adding it to AllUnitTestsSuite
- Fixed a couple of failing tests from ActivitiInvitationServiceImplTests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135147 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
135136 cpopa: Merged WEBAPP-API (5.2.1) to 5.1.N (5.1.3)
135040 cpopa: MNT-17341 : External users with Manager role cannot invite other external users to the site because site invitation accept fails
- Remove the ASPECT_ANULLABLE from an invited user if the invitation is accepted successfully
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135146 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- part 2 - enable "addTags" to handle configurable list of separators (when using "enableStringTagging" option of "extract-metadata" action)
- initial default separators/delimiters => comma, semi-colon & vertical bar (pipe)
- also means we can re-enable & fix ContentMetadataExtractorTagMappingTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135061 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261