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
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
133903 sglover: MNT-17247 "Disabled user can log into Alfresco Share using external authentication" take user disabled status in to account for external authentication subsystem + tests
133907 sglover: MNT-17247 "Disabled user can log into Alfresco Share using external authentication" don't propagate user disabled exception
133930 sglover: MNT-17247 "Disabled user can log into Alfresco Share using external authentication" move test class and add to a test suite
134295 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
- Added a test to simulate creation of missing person during external auth log in.
134315 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
- Added a fallback to supprt the logging in by non provisioned users.
134354 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
- Added a test with deauthorized user. Refactored existing test to start context once.
134359 jvonka: REPO-1227: External authentication - prevent disabled user from authenticating
- add log warning (with masked username, similar to brute force attack) if authentication bypassed when setting user details
134372 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
- Updated core and data model (contain new logging)
134390 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
- isEnabled flag for users is returned correctly
- Added tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134396 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
120772 amukha: ACE-4909: [Win 10, Chrome] - Site Members: Searching users with two chars results in wrapped exception
- Added a check if the tenant is disabled;
- Added JUnit test for disabled tenant and for deleted tenant.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@120786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
119558 gcornwell: Merged code coverage improvements to 5.1-MC1 (5.1.0)
r117774 gjames: RA-567: Increase /workflow/processes API code coverage
r117773 gjames: RA-567: /workflow/processes coverage, removed unused ActivitiTypeConverter
r116883 gjames: RA-531: reapplied change after merge, for MultiTServiceImpl test coverage
r116629 gjames: RA-568 Increase /workflow/process-definitions API code coverage
r116574 gjames: RA-569 Increase /workflow/tasks API code coverage
r116286 gjames: RA-567: Increase /workflow/processes API code coverage
r115853 gjames: RA-566: Increasing /people api coverage (description field)
r115811 gjames: RA-566: Increasing /people api coverage
r113007 gjames: Adding additional test coverage for DictionaryNamespaceComponent and DynamicNamespacePrefixResolver RA-521
r113006 gjames: Adding additional test coverage for DictionaryNamespaceComponent and DictionaryComponent RA-514
r112969 gjames: Adding additional test coverage for TemplateServiceImpl RA-530
r112960 gjames: Alternative test approach for ModuleServiceImpl RA-520
r112703 gjames: Adding additional test coverage for NodeLocatorService RA-522
r112702 gjames: Adding additional test coverage for JobLockServiceImpl RA-516
r112699 gjames: Adding additional test coverage for ModuleServiceImpl RA-520
r112508 gjames: Adding additional test coverage for RenditionServiceImpl RA-526
r112476 gjames: Adding additional test coverage for ContentServiceImpl RA-513
r112475 gjames: Adding additional test coverage for MimetypeMap RA-519
r112238 gjames: Adding additional test coverage for MimetypeMap RA-519
r112237 gjames: Adding additional test coverage for TaggingService RA-529
r112236 gjames: Adding additional test coverage for MultiTServiceImpl RA-531
r112206 gjames: Adding additional test coverage for ContentServiceImpl RA-513
r112167 gcornwell: RA-523: Increase NodeService code coverage (removed redundant code that was testing a version store we no longer use)
r112102 gjames: Reverted changes to PermissionServiceImpl for RA-524
r112048 gjames: Temporarily removed some PermissionServiceImpl code. I need to put it back.
r111620 gjames: Adding additional test coverage for PermissionService RA-524
r111619 gjames: Added some @Override to make Sonar happier
r111456 gjames: Adding additional test coverage for AuthenticationService RA-509
r111427 gjames: Adding additional test coverage for AttributeService RA-509
r111317 gjames: Adding additional test coverage for WorkflowService RA-533
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@119945 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
119072 adavis: Merged 5.1.N (5.1.1) to 5.1-MC1 (5.1.0)
117355 adavis: Merged 5.0.2-CLOUD42 (Cloud ) to 5.1.N (5.1.1)
117262 adavis: Merged 5.0.2-CLOUD (Cloud ) to 5.0.2-CLOUD42 (Cloud )
114826 gjames: BCRYPT RA-609: Not double hash encoders if not safe so fixing the test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@119911 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
119051 adavis: Merged 5.1.N (5.1.1) to 5.1-MC1 (5.1.0)
117333 adavis: Merged 5.0.2-CLOUD42 (Cloud ) to 5.1.N (5.1.1)
117241 adavis: Merged 5.0.2-CLOUD (Cloud ) to 5.0.2-CLOUD42 (Cloud )
114510 adavis: Merged BCRYPT to 5.0.2-CLOUD
113765 gcornwell: MNT-14892: Users password now gets re-hashed when they login if it is not using the preferred encoding (removes old MD4 and SHA encoded passwords)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@119889 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
110726: ACE-979: WebDav MT RepositoryAuthenticationDao.getUserFolderLocation() seems to be no tenant-safe
- Implemented a JUnit test.
- Fixed RepositoryAuthenticationDAO.getUserFolderLocation() to use cache keys with tenant domain and use the domain to find correct user store.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@111250 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
104179: Merged 5.0.N (5.0.2) to HEAD-BUG-FIX (5.1/Cloud)
104080: Merged DEV (5.0.2) to 5.0.N (5.0.2)
104074: MNT-13989: securing external authentication with non null external.authentication.proxyUserName fails
- Added SSL certificate subject DN validation in case of external.authentication.proxyUserName is set.
- Added JUnit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@104262 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
94234: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud)
94203: Reverse Merge 5.0.N (5.0.1)
<<Caused build failures after 94116>>
93680: MNT-13089: RepoAdminServiceImplTest hangs on SQL Server
Fixed AuthenticationTest and RenditionServiceIntegrationTest not to hang on MS SQl Server.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@95060 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
94232: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud)
94116: MNT-13089 Reinstate the tests that had been disabled on SQLServer, before we understood the problem was with transaction isolation
Reverted following commits:
93292: Disabled org.alfresco.repo.admin.RepoAdminServiceImplTest#testConcurrentDynamicModelCreate in case of SQL Server
93342: Disabled org.alfresco.repo.admin.RepoAdminServiceImplTest#testConcurrentDynamicModelDelete in case of MS SQl Server.
93522: Disabled org.alfresco.repo.node.archive.ArchiveAndRestoreTest#testInTransactionRestore and org.alfresco.repo.node.archive.ArchiveAndRestoreTest#testInTransactionPurge in case of MS SQL Server.
93680: Disabled org.alfresco.repo.rendition.RenditionServiceIntegrationTest.testCompositeReformatAndResizeRendition in case of SQL Server
93772: Disabled for MS SQL Server AuthenticationTest.testLoginNotExistingTenant, RenditionServiceIntegrationTest.testALF3733, RenditionServiceIntegrationTest.testJavascriptAPI.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@95059 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
93839: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud)
93772: MNT-13089: RepoAdminServiceImplTest hangs on SQL Server
Fixed RenditionServicePermissionsTest.userWithoutDeleteAccessToNodeShouldNotCauseFailedThumbnailProblemsOnUpdate.
Disabled for MS SQL Server AuthenticationTest.testLoginNotExistingTenant, RenditionServiceIntegrationTest.testALF3733, RenditionServiceIntegrationTest.testJavascriptAPI.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@95000 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
93833: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud)
93717: Merged DEV (5.0.1) to 5.0.N (5.0.1)
93680: MNT-13089: RepoAdminServiceImplTest hangs on SQL Server
Fixed AuthenticationTest and RenditionServiceIntegrationTest not to hang on MS SQl Server.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@94994 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
90771: Merged V4.2-BUG-FIX (4.2.5) to HEAD-BUG-FIX (5.0/Cloud)
90565: Merged DEV to V4.2-BUG-FIX (4.2.4)
76855 : MNT-11765 : Public API Authentication: Returns error 500 instead of 401 when authenticated with invalid / non existing user
- Avoid InvalidStoreRefException in getUserOrNull and getPersonOrNull methods
90610: MNT-11765 : Public API Authentication: Returns error 500 instead of 401 when authenticated with invalid / non existing user
- Fix for compilation errors
90676: MNT-11765 : Public API Authentication: Returns error 500 instead of 401 when authenticated with invalid / non existing user
- Test is changed to return the system to initial state
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@94713 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
84138: Merged FEATURE2 (5.0.0.FEATURE2) to HEAD-BUG-FIX (5.0/Cloud)
83970: ACE-2268 : make ldaps (LDAP over SSL) configurable using ldap subsystem properties and not only JVM (system) properties (JAVA_OPTS)
Implemented the LDAPS truststore configuration via subsystem's properties.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@84634 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
71601: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud)
70356: MNT-11233: DEV to V4.2-BUG-FIX (4.2.3)
67973: MNT-11233: Alfresco CMIS API /alfresco/api/-default-/cmis/versions/1.1/atom cannot be used with external authentication
- Move RemoteUserMapper from Web-Client to Repository project. Use RemoteUserMapper in PublicApiAuthenticator to retrieve remote user from request.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@74695 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
64105: Reverse Merge HEAD-BUG-FIX (4.3.0.BF)
<< Reverted to see if commit was reason for build failures >>
63912: Merged DEV to HEAD-BUG-FIX (4.3.0.BF)
63885: MNT-10338 : WebDav MT RepositoryAuthenticationDao.getUserFolderLocation() seems to be no tenant-safe
Implemented a JUnit test.
Fixed RepositoryAuthenticationDAO.getUserFolderLocation() to use cache keys with tenant domain and use the domain to find correct user store.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@64358 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
63912: Merged DEV to HEAD-BUG-FIX (4.3.0.BF)
63885: MNT-10338 : WebDav MT RepositoryAuthenticationDao.getUserFolderLocation() seems to be no tenant-safe
Implemented a JUnit test.
Fixed RepositoryAuthenticationDAO.getUserFolderLocation() to use cache keys with tenant domain and use the domain to find correct user store.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@64334 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261