opendataspace / chemistry-dotcmis Goto Github PK
View Code? Open in Web Editor NEWThis project forked from apache/chemistry-dotcmis
Mirror of Apache Chemistry DotCMIS
License: Apache License 2.0
This project forked from apache/chemistry-dotcmis
Mirror of Apache Chemistry DotCMIS
License: Apache License 2.0
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)"
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
You might want to merge this piece of code which was missing from the original for some reason (forgotten?):
aegif@6622a2f
Cheers!
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.