Commit Graph

14 Commits

Author SHA1 Message Date
Andreea Nechifor
d0753c9c42 MNT-20932: Unguarded access to a Pair value retrieved using nodeDao.getNodePair method which can return null
Cherry-picked from master 2d9b5e5 to support/SP/7.N
2020-02-24 23:33:28 +02:00
Andrei Forascu
3583e56ba2 MNT-20139: CmisConnector returns wrong values for changeLogToken and hasMoreItems (#271)
- ensure that the returned token is always updated. This is currently not the case when there are no more items. The next token is set to null in that case, even though there might be (maxItems-1) results.
- added Junit tests
2018-11-08 11:20:54 +02:00
Andrei Forascu
4a460637c0 REPO-3627 / MNT-19630: CMIS: Unable to call getAllVersions() if node is checked out and if binding type is WSDL (#229)
- removed code that was made useless by previous code changes (see MNT-15338)
- added junit for the case when getAllVersions() is used with null objectId (Cmis WS binding)
2018-10-26 10:45:22 +03:00
Derek Hulley
3f8eeb5e70 Minor formatting in passing 2018-03-05 19:05:54 +00:00
Alexandru-Eusebiu Epure
191b545c03 REPO-2182 : Community: ALF-21852: setContentStream() returns the wrong document version when auto-versioning is turned on (#63)
* REPO-2182 : Community: ALF-21852: setContentStream() returns the wrong document version when auto-versioning is turned on
   Separete into different new transactions writing content from creatingObjectId for setContentStream()
   Separate into different new transactions deleteing content from creatingObjectId for deleteContentStream()
   Separate into different new transations appending content from creatingObjectId for appendContentStream()
   Create JUnit CMISTest.testSetDeleteAppendContentStreamVersioning() testing that set/delete/apped calls return the new version.
2018-01-11 13:35:12 +02:00
Andrei Rebegea
b0f057f0d7 REPO-2028: Remove lucene dependency
Refactor test to avoid using search service or mock it.
Mark some of the tests as redundant, this will be processed in REPO-3019.
2017-10-31 12:18:00 +00:00
alandavis
b0a3a4edac Fix/repo 2025 cat tests (#31)
REPO-2025 Marked existing tests with categories LuceneTests and DBTests

Also includes a few PerformanceTests. So that the DB tests could be run on their own for each DB, a new
AllDBTestsTestSuite was created and it was tried out with MySQL (REPO-2002), MariaDB (REPO-2005) and PostgreSQL (REPO-2954).

A few existing TestSuites have been removed because we now have AllDBTestsTestSuite or the same set was covered by one of the TestSuites run in the latest Bamboo build jobs.
2017-10-11 09:37:32 +01:00
Matt Ward
36e70bf36a Merge pull request #26 from Alfresco/fix/REPO-2926_fix_cmis_sys_updates
REPO-2926: CMIS update now ignores aspects in the sys namespace (MNT-18340)
2017-09-27 14:51:33 +01:00
Matt Ward
f61b3c747f Merge branch 'develop' into fix/MNT-18340_needs_two_updates
# Conflicts:
#	src/main/java/org/alfresco/opencmis/CMISConnector.java
2017-09-22 15:43:24 +01:00
Alexandru-Eusebiu Epure
366a0e773e Fix/mnt 16641 cmis applying aspects including protected properties (REPO-1065) (#20)
* REPO-1065 : Service Pack: MNT-16641 CMIS API: Applying aspects including protected properties results in CmisInvalidArgumentException: Property is read-only!
   Remove code from CMISConnector.processSecondaryTypes, that for each aspect added, it will search all of his properties in repository and add them with a null value(if not included in the propsToAdd).
      Add an extra check to CMISTest.testUpdatePropertiesSetDeleteContentVersioning now adding the P:cm:lockable aspect to a document (before this fix failing).
         Added CMISConnector.isUpdatable returns true/false if a property is updatable
2017-09-22 14:45:14 +03:00
Matt Ward
a321e1a812 REPO-2926: CMIS update now ignores aspects in the sys namespace
Includes tests
2017-09-21 17:18:11 +01:00
Matt Ward
bb53033ce5 MNT-18340: test to prove prop updates work when removing aspects 2017-09-20 17:45:05 +01:00
Ancuta Morarasu
28366861fc REPO-2705 / MNT-17961: Cannot create new Alfresco NON-versioned document with CMIS API Calls - test 2017-09-12 00:26:57 +03:00
Alex Mukha
5e247e50b4 REPO-2724 Apply default maven folder structure 2017-07-28 14:51:21 +01:00