Commit Graph

4909 Commits

Author SHA1 Message Date
Matt Ward
dfb270a6e1 REPO-2575: allow sending 'AlfTicket' scheme in WWW-Authenticate header
"401 response with www-authenticate header causes browser native login prompt to be shown."

By sending:

    WWW-Authenticate: AlfTicket realm="..."

We can avoid making the browser pop up a Basic auth dialogue box. This
is particularly useful for apps built for the browser that talk directly
to the Alfresco public APIs at the backend.

To use this feature, set alfresco.restApi.basicAuthScheme=false
2017-10-09 14:39:21 +01:00
Alexandru-Eusebiu Epure
72b037b30c Merge pull request #10 from Alfresco/fix/REPO-1882_Create_group_or_person_with_backslash
Fix/repo 1882 create group or person with backslash
2017-10-06 15:40:24 +03:00
Alexandru-Eusebiu Epure
250e6c34d0 REPO-1882: Create a group or a person with an id that contains backslash does not throw an error
Remove testCreatePersonWithInvalidCharacter() JUnit created in the prevoius commit, and modified testCreatePerson(), that previously verified creation of '/' to verify all 4 invalid characters.
      Merged checking of '\' and '/' when creating groups into one single block that verifies all 4 invalid character in testCreateGroup() JUnit.
2017-10-06 14:33:31 +03:00
Alexandru-Eusebiu Epure
723fb50d67 REPO-1882: Create a group or a person with an id that contains backslash does not throw an error
Added an char array containing illegall characters (/,\,\n,\r) to Groups and People API's, and adapted the checking of the previous illlegal character (/), to verify all of them.
      Added two tests (one for group and one for people), creating using invalid id's.
2017-10-05 17:25:14 +03:00
Matt Ward
1742e74001 Merge pull request #9 from Alfresco/fix/REPO-2827_incorrect_favourite_description
REPO-2827: fixed favourite folders/files description field
2017-10-04 09:40:26 +01:00
Matt Ward
dda8557aea REPO-2827: fixed favourite folders/files description field
When listing favourites through the REST API, the folders and files were showing the “title” in the description field rather than the “description”.

Fixed and also added a test.
2017-10-02 12:18:38 +01:00
Derek Hulley
d7178c9870 Merge pull request #8 from Alfresco/fix/REPO-1253_fix_error_surname
Fix     REPO-1253  Community: ALF-21749: Manage Sites page broken when users without a surname are synchronized from LDAP
2017-09-26 13:29:47 +01:00
Abdul Mohammed
22c5ad9e70 REPO-1253: ALF-21749: Manage Sites page broken when users without a surname are synchronized from LDAP 2017-09-21 15:00:36 +01:00
Abdul Mohammed
39d8a172c2 REPO-1253: ALF-21749: Manage Sites page broken when users without a surname are synchronized from LDAP 2017-09-21 14:44:15 +01:00
Abdul Mohammed
b0cf0872e1 Merge pull request #7 from Alfresco/fix/REPO-2897_fix_error_typo
REPO-2897: ALF-21944: membership.delete.js - wrong exception variable…
2017-09-21 13:06:36 +01:00
Abdul Mohammed
9fdc923d00 REPO-2897: ALF-21944: membership.delete.js - wrong exception variable name in catch block 2017-09-21 12:46:23 +01:00
Alan Davis
a35545fee6 REPO-2921 Put a .gitbugtraq file in all develop Branches 2017-09-20 15:14:57 +01:00
Andrei Rebegea
fc403cef1c REPO-2881: standardize the l10n file - adding new line at the end 2017-09-19 15:08:53 +03:00
Andrei Rebegea
3f4e64b6e0 REPO-2881 : L10n: Add l10n.properties to code repositories : remote-api 2017-09-19 13:18:15 +03:00
alfresco-build
c0bd09f047 [maven-release-plugin] prepare for next development iteration 2017-09-12 14:16:46 +01:00
alfresco-build
48ca3dd9e3 [maven-release-plugin] prepare release alfresco-remote-api-6.2 2017-09-12 14:16:40 +01:00
Alex Mukha
4f57f3ad03 Merge pull request #6 from Alfresco/develop
REPO-2815 Sync master with develop
2017-09-12 13:42:52 +01:00
Alex Mukha
ae53ab6f1c REPO-2815 Update repository version to 6.4 2017-09-12 13:09:20 +01:00
aforascu
14c0280d85 Merge pull request #5 from Alfresco/fix/MNT-17918_updateInitiator
REPO-2514 / MNT-17918: Workflow API: Update Process Variable Rest API…
2017-08-28 11:00:55 +03:00
Andrei Forascu
018eabcb3b REPO-2514 / MNT-17918: Workflow API: Update Process Variable Rest API fails on updating "initiator":
- removed redundant cast
2017-08-28 10:55:36 +03:00
Andrei Forascu
1bc4059594 REPO-2514 / MNT-17918: Workflow API: Update Process Variable Rest API fails on updating "initiator":
- fixed by converting the initiator actual value to a ActivitiScriptNode instead of NodeRef. Still, the value passed in the response must be of type NodeRef
  - added a check in WorkflowRestImpl for cases where customers already updated "initiator" process variable with type NodeRef
  - added a Junit that checks also the "initiator" value after it is set using PUT request
2017-08-25 14:47:13 +03:00
Alex Mukha
6fed14733c Merge branch 'feature/REPO-1851_get_avatar' into 'develop'
Avatars: retrieve, update and delete

See merge request !23
2017-08-23 11:25:47 +01:00
Andrei Rebegea
3550c00a32 REPO-2794: format a test class 2017-08-23 12:42:53 +03:00
Andrei Rebegea
bdb2739eac REPO-2794: clean up unused test suite class 2017-08-23 12:37:29 +03:00
alfresco-build
cab5f3f63f [maven-release-plugin] prepare for next development iteration 2017-08-22 13:20:52 +00:00
alfresco-build
c0bf9a0fca [maven-release-plugin] prepare release alfresco-remote-api-6.1 2017-08-22 13:20:47 +00:00
Alex Mukha
48b8d2200c Sync master with develop 2017-08-22 14:08:49 +01:00
Alex Mukha
3636b2e488 Update repository version to 6.2 2017-08-22 13:19:49 +01:00
Andrei Rebegea
31b3007a4b Merge pull request #3 from Alfresco/MNT-17745_add_test
MNT-17745: add tests into a test suite. This test does not use an app…
2017-08-22 14:38:25 +03:00
Andrei Rebegea
f206e71020 MNT-17745: add tests into a test suite. This test does not use an app context 2017-08-22 14:06:23 +03:00
Alex Mukha
b3ee00b84d Merge branch 'fix/MNT-17745_IndexDatesBefore1848' into develop 2017-08-22 00:15:31 +01:00
Alex Mukha
0f672dfb26 Code Quality: Added missing null checks 2017-08-22 00:08:20 +01:00
Alex Mukha
751d4c0257 Merge branch 'feature/REPO-437_Audit_REST_API' into develop
* feature/REPO-437_Audit_REST_API: (26 commits)
  REPO-1786 - Retrieve Audit Entries for a Node      - minor code formatting
  REPO-1786 / REPO-2668 / REPO-2669 - Retrieve Audit Entries for a Node - fix permission issue & update related JUnit tests
  REPO-1786 / REPO-2668 / REPO-2669 - Retrieve Audit Entries for a Node - minor re-formatting & cleanup
  REPO-1786 / REPO-2668 / REPO-2669 - Retrieve Audit Entries for a Node:      - fixed a small issue: in case createdByUser is used in 'where' clause to retrieve audit entries for a node that were created by a user, a response code 400 was received. Now the audit entries are retrieved and response code 200 is received      - fixed the case where createdByUser = 'me' is used in 'where' clause to retrieve entries for the current user      - added a Junit test to cover these scenarios
  REPO-1787 - Retrieve Audit Entry - return "values" by default for single audit entry
  REPO-2555 / REPO-1787 - Retrieve Application Audit Entries (minor fix - return auditAppId not auditAppName)
  REPO-2669 - REST API: Retrieve Node (alfresco-access) Audit Entries - add detailed JUnit tests (+ve & -ve):      - refactored the tests to minimize code duplication
  REPO-1519 / REPO-2642: REST API: Delete Application Audit Entries - implement API code      - fixed a small bug: the response code was incorrect (response code 204) in case the parameters from 'between' clause were consecutive and inversed (e.g where=(id BETWEEN(2,1)) ). For this case a Response code 400 is received      - added a Junit to test the above fix
  REPO-2669 REST API: Retrieve Node (alfresco-access) Audit Entries - add detailed JUnit tests (+ve & -ve)
  REPO-1519 / REPO-2645: Delete Application Audit Entries - add detailed JUnit test (+ve & -ve)      - added Junits for +ve and -ve test cases for DELETE /audit-applications/{auditApplicationId}/audit-entries endpoint
  REPO-2664: REST API: Delete Audit Entry - add detailed JUnit test (+ve & -ve)    Correct the comment for the positive test (200 to 204 returned code for the positive test)
  REPO-2598 : REST API: Retrieve Application Audit Entries - add JUnit test (+ve & -ve)
  Revert "REPO-2598 Retrieve Application Audit Entries - add JUnit test (+ve & -ve)"
  REPO-2598 Retrieve Application Audit Entries - add JUnit test (+ve & -ve)
  REPO-2668 REST API: Retrieve Node (alfresco-access) Audit Entries - implement code
  REPO-2661 - REST API: Retrieve Audit Entry - add detailed JUnit test (+ve & -ve)    REPO-2664: REST API: Delete Audit Entry - add detailed JUnit test (+ve & -ve)       Fix comments mistype( for Positive tests we recieve 200 status code instead of 400), convert audit-entry id from long to string at the start of the test instead of converting it on each API call.
  REPO-2664: REST API: Delete Audit Entry - add detailed JUnit test (+ve & -ve)    add test for delete audit entry +ve & -ve       REPO-2661: REST API: Retrieve Audit Entry - add detailed Junit test (+ve & -ve)          add 400 (Bad Request) scenario to the test.
  REPO-2661 - REST API: Retrieve Audit Entry - add detailed JUnit test (+ve & -ve)    Add Junit test +ve &-ve
  REPO-2555 / REPO-1519 - Retrieve / Delete Application Audit Entries - fix ISO8601 parsing (eg. +0000)
  REPO-2555 / REPO-1787 - Retrieve Application Audit Entries / Entry (fix user lookup)
  ...
2017-08-22 00:06:35 +01:00
Alex Mukha
37ff2cb2af REPO-2669 - REST API: Retrieve Node (alfresco-access) Audit Entries - add detailed JUnit tests (+ve & -ve):
- refactored the tests to minimize code duplication
2017-08-21 23:50:22 +01:00
Alex Mukha
f17fa25151 Create LICENSE 2017-08-17 16:27:38 +01:00
Alex Mukha
062b3aac37 REPO-2756 Add readme and contributing guide 2017-08-17 16:26:01 +01:00
Andrei Rebegea
6149a95104 Repo 2792 split tests on context (#2)
* REPO-2792: add the new test suite structure based on application context

* REPO-2792: balance the tests in the job better

* REPO-2792: delete the old test suites

* REPO-2792: try another rebalance as the first job still had too much work

* REPO-2792: more balancing

* REPO-2792: balance after looking at the times of the tests in the surefire reports
2017-08-16 15:57:02 +03:00
Alex Mukha
e4b4fd50bb REPO-2724 Fix test module to work with repo version 2017-08-04 15:54:48 +01:00
Alex Mukha
7b03b7d76e REPO-2724 Increase repository version 2017-08-04 15:26:08 +01:00
Alex Mukha
80ccfd00d3 REPO-2724 Add licence header checks 2017-08-03 14:22:30 +01:00
Alex Mukha
933fd1befd Merge pull request #1 from Alfresco/develop
REPO-2724 Fix pom to run integration tests
2017-08-01 21:03:13 +01:00
Alex Mukha
5cd452ac22 REPO-2724 Enable FTR for integration tests 2017-08-01 20:44:00 +01:00
Alex Mukha
8c4b16baec REPO-2724 Fix pom config for transformation tests 2017-08-01 17:27:56 +01:00
Alex Mukha
884f618781 REPO-2724 Enhance pom for integration tests 2017-08-01 16:40:33 +01:00
alfresco-build
1efe672a60 [maven-release-plugin] prepare for next development iteration 2017-07-28 18:18:24 +01:00
alfresco-build
a787d15b0b [maven-release-plugin] prepare release alfresco-remote-api-6.0 2017-07-28 18:18:18 +01:00
Alex Mukha
db706a73c4 REPO-2724 Add gitignore 2017-07-28 17:48:29 +01:00
Alex Mukha
427bee5a26 REPO-2724 Fix pom after split 2017-07-28 17:47:37 +01:00
Alex Mukha
de4cb3fdf8 REPO-2724 Apply default maven folder structure 2017-07-28 16:54:44 +01:00
Matt Ward
a9feda2f0b Merge branch 'develop' of git.alfresco.com:Repository/repo into develop 2017-07-21 16:09:23 +01:00