Coder Social home page Coder Social logo

chemistry-dotcmis's People

Contributors

fmui avatar froth avatar more0401 avatar nicolas-raoul avatar soneyworld avatar

Stargazers

 avatar  avatar

Watchers

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

chemistry-dotcmis's Issues

Malformed User Agent

in HttpUtils the used user-agent is not valid:

The User-Agent request-header field contains information about the user agent originating the request. This is for statistical purposes, the tracing of protocol violations, and automated recognition of user agents for the sake of tailoring responses to avoid particular user agent limitations. User agents SHOULD include this field with requests. The field can contain multiple product tokens (section 3.8) and comments identifying the agent and any subproducts which form a significant part of the user agent. By convention, the product tokens are listed in order of their significance for identifying the application.

User-Agent = "User-Agent" ":" 1*( product | comment )

Where product is defined as:

product = token ["/" product-version]
product-version = token
token = 1*

And comment as:

comment = "(" *( ctext | quoted-pair | comment ) ")"
ctext = <any TEXT excluding "(" and ")">

so it should be "ApacheChemistryDotCMIS" (without spaces)
ps. and maybe it could also specify the version and the OS ("ApacheChemistryDotCMIS/0.7 (Windows NT 6.1)"

XmlException: For security reasons DTD is prohibited in this XML document

Hello OpenDataSpace!

We are using your DotCMIS fork in CmisSync with a lot of different CMIS server, and we have noticed this problem with Documentum and SharePoint servers: aegif/CmisSync#540

A solution to this exception is described here: http://stackoverflow.com/a/28459398/226958

We implemented this solution (minus the DDOS protection a client-side library is probably not a recipient of DDOS attacks) in this commit: aegif@ee7e593

Even if this problem does not happen with OpenDataSpace, you might want to merge it to make the OpenDataSpace/chemistry-dotcmis library more attractive to other developers :-)

Cheers!
Nicolas

ChangeLog unusable if many changes

Fetching changes little by little (10 at each loop pass) is supposed to work like this:

            IChangeEvents changes;
            do
            {
                changes = session.GetContentChanges(token, false, 10);
                // Process these few changes
                token = changes.LatestChangeLogToken;
            }
            while (changes.HasMoreItems ?? false);

Problem: It does not work with OpenDataSpace/chemistry-dotcmis nor with the official DotCMIS.

With OpenDataSpace/chemistry-dotcmis, changes.LatestChangeLogToken returns an object identifier instead of a ChangeLog token:

token

Uploading big file from Mac sometimes get stuck at requestStream.Close()

Hello,

When I upload a 400MB or 40MB file using OpenDataSpace's DotCMIS from Mac OS X, the upload often (50% probability) gets stuck at line 234 in http.cs:

                    // send data
                    if (writer != null)
                    {
                        conn.SendChunked = true;
                        Stream requestStream = conn.GetRequestStream();
                        writer(requestStream);
                        requestStream.Close();          <- Gets stuck here
                    }

In those cases, the program just gets stuck there and never ends.

I have created a small proof-of-concept that shows the bug:
https://github.com/nicolas-raoul/dotcmis-upload
Just replace the URL/folder/username/password, compile and execute.

Tested with Alfresco 4.2.e on Mac OS X 10.9 and Mac OS X 10.10

Thank you!
Nicolas

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.