I took the url form your documentation: https://docs.openkm.com/kcenter/view/sd ... lient.html
But thanks. Https is working!
I took the url form your documentation: https://docs.openkm.com/kcenter/view/sd ... lient.html
But thanks. Https is working!
Hi. I cannot download the SDK4J 1.2. http://maven.openkm.com/maven2/ seems to be down. I'm using: <repository> <id>openkm.com</id> <name>OpenKM Maven Repository</name> <url>http://maven.openkm.com/maven2</url> </repository> ... and ... <dependency> <groupId>com.openkm</groupId> <artifactId>sdk4j</ar...
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 ...
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. ...
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.
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...
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...
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...
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.
Goto https://validator.w3.org/#validate_by_input
Paste in XML from first post. And hit "check".
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.
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...
No, we don't changes the rest endpoint because of authentication, but to develop a more powerful rest endpoint.
Everything is fine.
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...
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!