Search found 334 matches

by Catscratch
Tue Feb 06, 2018 5:13 pm
Forum: Web Services
Topic: Concurrency Problems / Stress Test on REST API
Replies: 7
Views: 2011

Re: Concurrency Problems / Stress Test on REST API

If the clients calls close everything is ok. You e.g. use IOUtils to close quietly. Anyway. If you got a client which won't close the stream it's kept open. And this is an easy way for the client to stress the server or even more, bring it down. You can use my demo code from above, e.g. against you ...
by Catscratch
Mon Jan 29, 2018 3:07 pm
Forum: Web Services
Topic: Concurrency Problems / Stress Test on REST API
Replies: 7
Views: 2011

Re: Concurrency Problems / Stress Test on REST API

Usually it would be good. Yes. But the problem is, that you use a StreamedInputStream on server side which means it is read when the client starts to read it. So if you close the stream on the server side the client won't be able to read it anymore. Everything is translated to HTTP chunked loading. ...
by Catscratch
Thu Jan 25, 2018 2:29 pm
Forum: Web Services
Topic: Concurrency Problems / Stress Test on REST API
Replies: 7
Views: 2011

Re: Concurrency Problems / Stress Test on REST API

I'm using the delivered test class. It can be executed from anywhere (not inside the server).

The Sdk4j creates an InputStream and keeps it open which means the http connection is hold open.
by Catscratch
Wed Jan 24, 2018 2:55 pm
Forum: Web Services
Topic: Concurrency Problems / Stress Test on REST API
Replies: 7
Views: 2011

Re: Concurrency Problems / Stress Test on REST API

Ok, further investigation shows the problem is the streaming inputstream used to deliver binaries chunked via http. If the client doesn't close the inputstream on his side, the server keeps the socket open forever. That seems to be a tomcat related problem. Or OpenKM shouldn't use streamed resources...
by Catscratch
Wed Jan 24, 2018 1:05 pm
Forum: Web Services
Topic: Concurrency Problems / Stress Test on REST API
Replies: 7
Views: 2011

Concurrency Problems / Stress Test on REST API

Hi, I noticed a strange behaviour when accessing the rest endpoint massivly parallel. E.g. a lot of users want to download a document. On a certain number OpenKM starts to hang and the threads are working on 100% without returning. I don't know if it is a tomcat configuration problem or another prob...
by Catscratch
Mon Sep 26, 2016 1:19 pm
Forum: Configuration
Topic: Default boolean values in config.java
Replies: 1
Views: 745

Default boolean values in config.java

Hi. I wonder about the default boolean values in config.java. E.g.: STORE_NODE_PATH = ConfigDAO.getBoolean(PROPERTY_STORE_NODE_PATH, "on".equalsIgnoreCase(cfg.getProperty(PROPERTY_STORE_NODE_PATH, "off"))); This always is set to "false" on my installation (fresh install). Shouldn't it be STORE_NODE_...
by Catscratch
Mon Jul 18, 2016 6:30 am
Forum: Usage
Topic: Since https DTDs are no longer validatable
Replies: 7
Views: 1494

Re: Since https DTDs are no longer validatable

Thanks. Now http is working.

Anyway. Https is still not working. But I think this is a problem of HTML standard itself. It seems HTML doesn't allow https in doctype.
by Catscratch
Fri Jun 03, 2016 11:02 am
Forum: Usage
Topic: Since https DTDs are no longer validatable
Replies: 7
Views: 1494

Re: Since https DTDs are no longer validatable

Goto https://validator.w3.org/#validate_by_input

Paste in XML from first post. And hit "check".
by Catscratch
Fri Jun 03, 2016 9:06 am
Forum: Usage
Topic: Since https DTDs are no longer validatable
Replies: 7
Views: 1494

Re: Since https DTDs are no longer validatable

It's not a problem with OpenKM. At least not for me. It's a general problem e.g. when using other tools to build PropertyGroups.xml. Like with jDom2 or something else. The public DTD should be accessible and validatable with any tool or online service.
by Catscratch
Fri Jun 03, 2016 7:12 am
Forum: Usage
Topic: Since https DTDs are no longer validatable
Replies: 7
Views: 1494

Since https DTDs are no longer validatable

Hi, I noticed a problem that when create a PropertyGroups.xml it is no longer possible to validate them against your DTDs. E.g. for 6.2 Community. https://www.openkm.com/dtd/property-groups-2.1.dtd W3C validation fails. You can try something like https://validator.w3.org/check . And use: <?xml versi...
by Catscratch
Wed Apr 06, 2016 2:25 pm
Forum: Usage
Topic: OKMAuth login with token not working
Replies: 16
Views: 2910

Re: OKMAuth login with token not working

No, we don't changes the rest endpoint because of authentication, but to develop a more powerful rest endpoint.

Everything is fine. :-)
by Catscratch
Tue Apr 05, 2016 11:12 am
Forum: Usage
Topic: OKMAuth login with token not working
Replies: 16
Views: 2910

Re: OKMAuth login with token not working

Ok. I found it. We created a new REST Endpoint inside OpenKM with Token authentication and on top of Swagger (and Swagger UI ) which is really nice and gives a very good rest documentation. Anyway. By this, we disabled basic auth for this rest endpoint and used header params for authentication (usin...
by Catscratch
Tue Mar 29, 2016 7:40 am
Forum: Usage
Topic: OKMAuth login with token not working
Replies: 16
Views: 2910

Re: OKMAuth login with token not working

Hm, it seems that the OKMWebservices.login() method is doing the magic, right? Because, when I directly call the REST endpoint (without the SDK) it will fail without success. So my question is, what do you do inside the OKMWebservices.login() method? Can I see sources anywhere?

Thanks!
by Catscratch
Thu Mar 24, 2016 12:15 pm
Forum: Usage
Topic: OKMAuth login with token not working
Replies: 16
Views: 2910

Re: OKMAuth login with token not working

I don't really understand. I know the problem. Now I'm looking forward to solve it. As you see in my curl request I already call the AuthService /login method. I also deliver username and password (parameter -u). It's put into BasicAuth header "Authorization: Basic bmV3dXNlcjpuZXd1c2Vy". And then th...
by Catscratch
Wed Mar 23, 2016 8:29 am
Forum: Usage
Topic: OKMAuth login with token not working
Replies: 16
Views: 2910

Re: OKMAuth login with token not working

Ok, now I got time to test. I updated to the latest sources from sourceforge. Here are the steps to reproduce. 1. log into okm using okmAdmin and create a new user (I called him "newuser" with password "newuser") -> do not log into openkm using web ui! 2. call rest endpoint and see the exception cur...