alfresco-sdk | Alfresco SDK based on Apache Maven | Build Tool library
kandi X-RAY | alfresco-sdk Summary
kandi X-RAY | alfresco-sdk Summary
Since ACS 7.1, Share build pipeline has been refactored, and you now have to specify the internal Share version number, in addition to the version of the image, because they are not the same anymore.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start Tomcat dependencies .
- Make a POST request to the Alfresco Webapp .
- The destination directory .
- Executes the refresh .
- Returns a normalized version of the version .
- Checks that the parameters are valid .
- Execute the model .
- This is the main entry point .
- Initializes the platform module class .
- Gets the spring context holder instance .
alfresco-sdk Key Features
alfresco-sdk Examples and Code Snippets
Community Discussions
Trending Discussions on alfresco-sdk
QUESTION
I have a dockerized Alfresco 6.2 community version, clean for now, up and running correctly in my AWS server. I can use it ang log in into share.
Now I want to add my custom app, writtein in Vue.js, which is dockerized too, and make calls to the Alfresco REST APIs to develop my customizations. When I call any of the APIs I always receive CORS error.
I've tryied many many times, changing Alfresco configuration, Tomcat server configuration, using jar and so on, but nothing has changed.
The error I get is always Access to XMLHttpRequest at 'http://my-alfresco-url/alfresco/api/-default-/public/authentication/versions/1/tickets' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Here is my simplified API call (just for simplicity, the fetch method I use inside my Vue.js app is the same)
...ANSWER
Answered 2021-Apr-20 at 07:39After many trials, I've managed to work. Here is how I did.
First things first, alfresco-global.properties cors options seems to be useless and uneffective. At least for ACS. If there is anyone who can explain me how they work I'll appreciate it.
I needed to add two libraries to my Alfresco 6.2 tomcat/webapps/WEB-INF/lib folder, cors-filter v2.5 and java-property-utils v. 1.9.1. They has to be exactly those versions (not the newer one 2.10 and 1.16) or they won't work with the next web.xml configuration.
I added them to my acs/platform pom.xml
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install alfresco-sdk
You can use alfresco-sdk like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the alfresco-sdk component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page