Giter Club home page Giter Club logo

alfresco-api-java-examples's Introduction

Howdy, folks ๐Ÿ‘‹

I used to implement custom solutions as part of my consulting company, Metaversant. Those solutions usually involved content management, search, and workflow technology. I've also written blog posts, tips, and tutorials at ECM Architect and a couple of books. You can follow me on Twitter and YouTube.

These days I work for Apple, and they've got pretty tight restrictions on what I can do with my open source projects, so feel free to log issues, create pull requests, and fork these projects to keep them moving forward without me for now.

alfresco-api-java-examples's People

Contributors

jpotts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alfresco-api-java-examples's Issues

Required Dependencies

Hi jeff,

Can you please tell me what are all the dependency jar files which i require to 
configure to run these examples because i don't have maven and i want to run 
these examples as standalone.

Thanks,
Nikhilesh


Original issue reported on code.google.com by [email protected] on 1 Oct 2013 at 9:22

Add repository for opencmis snapshots

The snapshot versions of opencmis was not pulled when doing a vanilla mvn 
install on this project.

Added the following to the repository section of the pom.xml to make it work:

    <repository>
        <id>repository.apache.org</id>
        <name>Apache Maven Repository</name>
        <url>https://repository.apache.org/content/groups/public/</url>
    </repository>     

Original issue reported on code.google.com by [email protected] on 3 Oct 2012 at 2:51

File content is getting enocode when file been saved into alfresco.

1. take the file1.txt attached
2. take the file2.txt attached
3. upload both to the alfresco
4. use webdav to see the files i.e., file1.txt, file2.txt

Expected output is file content can not be encoded while seeing it through 
webdav.
actual output : file1.txt is not proper file2.txt is proper

i have generated file2.txt using the below program.


File file = new File("C:\\file1.txt");
        FileInputStream fis = new FileInputStream(file);
        InputStreamReader isr = new InputStreamReader(fis,"UTF-8");
        BufferedReader in = new BufferedReader(isr);
        FileOutputStream fo = new FileOutputStream(new File("C:\\file2.txt"));
        OutputStreamWriter osr = new OutputStreamWriter(fo);
        BufferedWriter bw = new BufferedWriter(osr);
        StringBuilder sb = new StringBuilder();
        String line;
        while((line = in.readLine()) != null) {         
                bw.write(line);
                bw.write("\n");
        }
        bw.close();
        osr.close();
        fo.close();
        in.close();
        isr.close();
        fis.close();

Problem:- when i upload files through alfresco UI, file1 content is getting 
encode, but not file2 at the time of viewing the file using webdav. if i upload 
both the files through java program and if i see the file contents using webdav 
both the file contents are getting encode. the code used to upload the file to 
alfresco is attached in the file code.txt.

we need to upload the file asitis. with out changing the encoding style at the 
time of upload the file to Alfresco using java program mentioned in the 
code1.txt

please help me in this

thanks,
Saran.



Original issue reported on code.google.com by [email protected] on 12 Mar 2014 at 3:27

Attachments:

OAuth2 authentication fails

What steps will reproduce the problem?
1. Running the project in eclipse with GetSitesExample as entry
2. Browser window comes up asking for authorisation, which I provide
3. OAuth2 Authentication fails with a debug message

What is the expected output? What do you see instead?
"javax.net.ssl.SSLException: Server key
    at sun.security.ssl.Handshaker.throwSSLException(Handshaker.java:1274)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1090)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
    at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:80)
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1009)
    at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:299)
    at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:323)
    at com.alfresco.cloud.example.BaseJavaExample.authorize(BaseJavaExample.java:144)
    at com.alfresco.cloud.example.BaseJavaExample.run(BaseJavaExample.java:99)
    at com.alfresco.cloud.example.GetSitesExample.main(GetSitesExample.java:24)
Caused by: java.security.spec.InvalidKeySpecException: Could not create EC 
public key
    at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:169)
    at java.security.KeyFactory.generatePublic(KeyFactory.java:334)
    at sun.security.ssl.HandshakeMessage$ECDH_ServerKeyExchange.<init>(HandshakeMessage.java:1057)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:218)
    ... 17 more
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: 
CKR_DOMAIN_PARAMS_INVALID
    at sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
    at sun.security.pkcs11.P11ECKeyFactory.generatePublic(P11ECKeyFactory.java:233)
    at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:164)
    ... 20 more"

Please provide any additional information below.
The line 
"TokenResponse response = 
codeFlow.newTokenRequest(code).setRedirectUri(redirectUri).setScopes(SCOPE).exec
ute();" in BaseJavaExample.java seems to be at fault. I can't figure out what's 
wrong though.

Original issue reported on code.google.com by vsams14 on 19 Aug 2013 at 12:33

Maven not finding all the necessary repos

Using m2eclipse in Eclipse Kepler (4.3) to load the alfresco-cloud-example repo.

chemistry-opencmis-client-impl v0.8.0-SNAPSHOT could not be found, fixed by 
changing to version 1.0.0-SNAPSHOT

JacksonFactory could not be resolved to a type, fixed by adding 
google-http-client-jackson v1.13.1-beta to pom.xml

It would probably be good to update this in the official repo as well.

Original issue reported on code.google.com by vsams14 on 19 Aug 2013 at 12:26

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.