openkm / document-management-system Goto Github PK
View Code? Open in Web Editor NEWOpenKM is a Open Source Document Management System
Home Page: https://www.openkm.com/
License: GNU General Public License v2.0
OpenKM is a Open Source Document Management System
Home Page: https://www.openkm.com/
License: GNU General Public License v2.0
OKM version:6.3.4;
Description:
1, disable PDF download privilege on user profile for user A
2, login as this user A
3, navigate to the PDF file which user A has read privilege (w/o write)
4, preview this PDF document
5, user A can download the PDF file on pdf viewer on Chrome/firefox or download it via a right-click menu on Edge.
It would need to hide the toolbar and rightclick of pdf viewer.
Hi all
I am trying to install the community edition.
My OS is Windows 10 pro.
Browser is Chrome version 62.
JDK 1.8
MYSQL server 5.7
OpenKM jar 6.3.4
When I run "java -jar OKMInstaller.jar" I get "Failed installing 'OpenKM' service".
When I run "service.bat install" I get the same.
When I run "openkm.exe" I get "Service 'openkm' is missing the ImageFile" and "Failed to run service as console application".
Also in the bin folder I do not see the tomcat7.exe file and tomcat7w.exe file even though I installed this via openkm installer.
Anyone has any idea?
here is a link to the openkm forum post:
https://forum.openkm.com/viewtopic.php?f=3&t=21569&p=44953#p44953
and to the screen shot
https://forum.openkm.com/download/file.php?id=1987&mode=view
Thanks
Shahar
Can anyone please help to import the source code open km to Eclipse
Hi @darkman97i ,
I tried to install OpenKM but catch the error when download Tomcat
ERROR: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path
See more details below
MacOS 10.12.5
sudo java -jar OKMInstaller.jar
Unknown platform: 0.0.0 (build: 0)
Local host: PC-5.local
Java version: 1.8.0_31
Free disk size: 14.3 GB
RAM size: 8.0 GB
CPU cores: 4
Current directory: /Users/username/Downloads
Database [h2]: mysql
Database host [localhost]:
Database name [okmdb]:
Database user [openkm]:
Database password [EzViiI0wTx52]:
---------------------------
- Database: mysql
- Database host: localhost
- Database name: okmdb
- Database user: openkm
- Database password: EzViiI0wTx52
- Install version: 6.3.4
---------------------------
Start install process? [y/N]: y
- Downloading Tomcat: 7.0.61
ERROR: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I tried to import manually Tomcat certificate into jre/lib/security/cacerts (export cert from this link https://tomcat.apache.org/download-70.cgi) but it didn't work. Please take a look. Thank you!
Hi guys your help please
I tried to connect to openKM via Rest API but i have problem when i send request to check login credential and username i get error 401 back and this error is handing by browser and some boring window will appear i want change this error from source code to send back another error number instate of error 401 to prevent browser to show this window , could you please help me how can I do that inside source code ?
Check copy to clipboard goes right from all the browsers
pull request url -> #34
To reproduce:
1- Upload the e-mail ( using UI for uploading )
2- Download the e-mail from UI ( the download size is quite different in comparison with the first file uploaded )
3- Upload again and you will see the attachment file is lost
Origin of the issue: https://forum.openkm.com/viewtopic.php?f=5&t=21532
Error getting translations: No row with the given identifier exists: [com.openkm.dao.bean.Language#zh-CN]
I added default.lang=en-GB got the same problem
I have to edit system language as English then can login
I have open a issue with opekm forum as well.
I am storing my files in the database as per below configuration..
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
hibernate.hbm2ddl=none
repository.datastore.backend=db
logback.config=logback.xml
I am importing the files from filesystem but while importing the files getting below errors..
2018-03-05 17:16:00,736 INFO Start repository import from '/marif/Documents' to '/okm:root/Intranet/Document'
2018-03-05 17:16:00,893 INFO Created folder '/okm:root/Intranet/Document/401k information'
2018-03-05 17:16:00,950 INFO Created folder '/okm:root/Intranet/Document/401k information/Fund Fact Sheet'
2018-03-05 17:16:01,390 INFO Created document '/okm:root/Intranet/Document/401k information/Fund Fact Sheet/Oppeheimer Rising Div.pdf'
2018-03-05 17:16:01,656 INFO Created document '/okm:root/Intranet/Document/401k information/Fund Fact Sheet/Pioneer Emerging Market.pdf'
2018-03-05 17:16:01,838 INFO Created document '/okm:root/Intranet/Document/401k information/Fund Fact Sheet/Aim Constellation.pdf'
2018-03-05 17:16:02,015 INFO Created document '/okm:root/Intranet/Document/401k information/Fund Fact Sheet/BlackRock Aur-Inv.pdf'
2018-03-05 17:16:02,234 INFO Created document '/okm:root/Intranet/Document/401k information/Fund Fact Sheet/BlackRock Equity_Dividend_Fund_Client_FS.pdf'
2018-03-05 17:16:02,334 ERROR IOException 'Cant' delete file (not exists) '/opt/tomcat-7.0.61/repository/datastore/02/55/20/45/02552045-43f3-4c53-bbc2-b18aad30e2e2''
This is the fresh install . I did not run any import before that.
I am not able to understand why it want to delete any file which is not exists.
it is showing the file error which stored in the datastore. I am not using that configuration at all.
Please help me on this now i am running out of ideas.
Thank You
-Arif
On 6.3.4 using firefox, using a massive add keyword not always accepts the keyword
More info on https://forum.openkm.com/viewtopic.php?f=5&p=44647#p44647
Using the URL to reference a document in OpenKM doesn't work by UUID if the default language is set to something. The issue is present in version CE 6.3.6. See full discussion and suggested fix in the forums here:
https://forum.openkm.com/viewtopic.php?f=5&t=9826&start=15
In order to fix the issue, the file index.jsp needs to be changed. The below line, which is currently line 29:
if (docPath != null || fldPath != null) {
Needs to be changed to:
if (docPath != null || fldPath != null || uuid != null) {
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.037 s
[INFO] Finished at: 2018-09-14T23:27:26+02:00
[INFO] Final Memory: 29M/436M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (default-cli) on project openkm: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - /home/jllort/git/document-management-system/src/main/java/com/openkm/kea/RDFREpository.java:62: warning: no @return
[ERROR] public RepositoryConnection getSKOSConnection() throws RepositoryException {
al intentar restablecer una contraseña de cualquier cuenta por medio de la Opcion Forgot your Password
me da el error "Failed reset the user password"
mismo error con una cuenta con rol de ADMIN, que una cuenta con rol de USER.
la instalada es Version: 6.3.6 (build: 87d181f)
revisando el log $TOMCAT_HOME\log\openkm.log
encuentro el siguiente error:
2018-06-13 18:49:58,719 [ajp-nio-127.0.0.1-8109-exec-7] [] ERROR c.o.servlet.PasswordResetServlet - You need administrator grants for this change
com.openkm.core.AccessDeniedException: You need administrator grants for this change
at com.openkm.dao.AuthDAO.checkAccessGrants(AuthDAO.java:599) ~[classes/:6.3.6]
at com.openkm.dao.AuthDAO.updateUserPassword(AuthDAO.java:142) ~[classes/:6.3.6]
at com.openkm.servlet.PasswordResetServlet.doPost(PasswordResetServlet.java:71) ~[classes/:6.3.6]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) [servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [servlet-api.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [catalina.jar:8.5.24]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.24]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.5.24]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.24]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.24]
Saludos
Intentar realizar la lectura de los mails de forma similar a como se realiza en la 6.4 ( la lógica como puede verse en la clase encargada de este menester es un tanto distinta, me refiero a la implementación del método ).
Esto esta relacionado con este post en el foro
http://forum.openkm.com/viewtopic.php?f=5&t=21006&p=42508#p42508
Hello!
Initial report (re-sounded from):
[0] https://forum.openkm.com/viewtopic.php?f=3&t=21975
During OpenKM 6.3.6 on openSUSE Leap 15 have got an error message: "ERROR: Unknown Linux distro: unknown".
k_mikhail@linux-mk500:/opt/openkm> sudo java -jar OKMInstaller.jar
Running in Linux: 0.9.6-CE (build: f6d8e19)
Linux distro: unknown (Unknown - 0)
Local host: linux-mk500 (xxx.xxx.xxx.xxx)
Java version: 1.8.0_171
Free disk size: 29.8 GB
RAM size: 3.7 GB
CPU cores: 4
Supported databases: [h2, hsqldb, mariadb, mysql, oracle, postgresql, sqlserver]
Current directory: /opt/openkm
Database [h2]: mariadb
Database host [localhost]:
Database name [okmdb]:
Database user [openkm]:
Database password [some_password]:
---------------------------
- Database: mariadb
- Database host: localhost
- Database name: okmdb
- Database user: openkm
- Database password: some_password
- Install version: 6.3.6
---------------------------
Start install process? [y/N]: y
- Downloading Tomcat: 8.5.24
....*.... 10% ....*.... 20% ....*.... 30% ....*.... 40% ....*.... 50% ....*.... 60% ....*.... 70% ....*.... 80% ....*.... 90% ....*.... 100%
- Unzipping archive... Done!
- Fix permissions... Done!
- Downloading OpenKM: 6.3.6
....*.... 10% ....*.... 20% ....*.... 30% ....*.... 40% ....*.... 50% ....*.... 60% ....*.... 70% ....*.... 80% ....*.... 90% ....*.... 100%
- Unzipping archive... Done!
- Check archive integrity... Done!
- Copy OpenKM
- Configure OpenKM
- Configure service
ERROR: Unknown Linux distro: unknown
Java version:
java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (IcedTea 3.8.0) (build 1.8.0_171-b11 suse-lp150.2.3.1-x86_64)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
At the same time openKM 6.3.1
and 6.3.2
(both are *.run
installers) work fine for openSUSE.
Thanks!
When we install OpenKM-6.3.4 community edition, 'path' environment variable is getting cleared on windows machine.
It replaces previous %path configurations and populates it with "%PATH%;C:\tomcat-7.0.61\lib\sigar;"
I have noticed that the filter options aren't available when looking at nodes in the Categories view.
Version 6.4.3 (build 47204ef)
Apply css changes applied into professional version for better UI in Administration section
I found docker image on docker hub but no Dockerfile, how can I build my image?
add swagger support
Hi,
As requested to post an issue here, referring to the post in the link below.
https://forum.openkm.com/viewtopic.php?f=31&t=21830
When metadata scripting is applied to change file name from XXXX.pdf to YYYY.pdf, the UI is trying to look for XXXX.pdf. Where the UI did not evaluate if the name has been changed before trying to refresh to previous path thus causing the error below.
Thank you!
If there is a file in repository larger than 2GB, only the first 2GB of the file will be downloaded. This appears to be related to InpustStream -> is.available() and a 2GB limit. Apparently the integer is not able to handle file sizes over 2GB.
To verify:
To improve compatibility between v6.3 and v6.4
Caused by Integer MAX_VALUE restriction.
The button of "add category" would turn grey when I selected more than one file. However it is supposed to be functional as the desription in wiki site https://www.openkm.com/wiki/index.php/Massive_add_category. It is a great pain when dealing with thousands of files ...
Good day, I would be willing to collaborate and make a new logo design for your app. Pls do reply if you accept my offer. I do work for free, dont worry. I would do anything for the benefit of this project.
THE OMR feature was removed by mistake while upgrading from version 6.2 to 6.3
Forum link https://forum.openkm.com/viewtopic.php?f=3&t=21523&p=44769#p44769
I was trying to run:
mvn clean package
But testcases are failing
Tests run: 16, Failures: 2, Errors: 5, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.288 s
[INFO] Finished at: 2018-05-23T00:45:02+05:30
[INFO] Final Memory: 77M/681M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project openkm: There are test failures.
I have been trying to create an automation rule to capture the movement of a node (file) to a specified folder.
When using the automation
Nothing happens after the document move and I see the following in openkm.log
2018-02-22 13:57:28,825 [http-bio-10.30.40.185-8180-exec-349] [] ERROR c.o.a.validation.PathContains - null
java.lang.NullPointerException: null
at com.openkm.automation.validation.PathContains.isValid(PathContains.java:49) ~[PathContains.class:na]
We had installed OpenKM 6.3.4 Community Edition from the openKM official website https://www.openkm.com/en/download.html sometime back. Please find the attached Installer jar, named OKMInstaller_Old.jar.
We are using Java SDK 1.1 APIs.
We used to upload the document using,
com.openkm.sdk4j.OKMWebservices.createDocumentSimple(String docPath, InputStream is)
And then we are associating document properties by calling,
com.openkm.sdk4j.OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId, String grpName, Map<String, String> properties).
The above functionality was working fine and we had certified our Application with OpenKM 6.3.4 Community Edition.
But today when I try to install OpenKM 6.3.4 Community Edition from the openKM official website https://www.openkm.com/en/download.html, I get the Installer jar, named OKMInstaller_New.jar.
And we are installing OpenKm using the same.
But now the behaviour is different i.e
com.openkm.sdk4j.OKMWebservices.createDocumentSimple(String docPath, InputStream is)
Is working fine but,
com.openkm.sdk4j.OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId, String grpName, Map<String, String> properties)
Is failing with the error,
com.openkm.rest.GenericException: com.openkm.core.RepositoryException: Property group not assigned to this node
So basically it is expecting com.openkm.sdk4j.OKMWebservices.addGroup(String grpName) to be called before com.openkm.sdk4j.OKMWebservices.setPropertyGroupPropertiesSimple
Please refer discussion here,
https://forum.openkm.com/viewtopic.php?f=5&t=21699
Remove deprecated code
Hi *;
building current sources at the moment fails because artifacts because several artifacts don't seem to be available (in the right places?) anymore. See:
[ERROR] Failed to execute goal on project OpenKM: Could not resolve dependencies for project de.planconnect:OpenKM:war:6.3.3.1-SNAPSHOT: The following artifacts could not be resolved: com.github.dcarter.gdata-java-client:gdata-contacts-3.0:jar:1.46.0, com.github.dcarter.gdata-java-client:gdata-client-1.0:jar:1.46.0, com.github.dcarter.gdata-java-client:gdata-core-1.0:jar:1.46.0, com.github.dcarter.gdata-java-client:gdata-docs-3.0:jar:1.46.0, com.github.dcarter.gdata-java-client:gdata-media-1.0:jar:1.46.0, com.github.dcarter.gdata-java-client:gdata-spreadsheet-3.0:jar:1.46.0: Could not find artifact com.github.dcarter.gdata-java-client:gdata-contacts-3.0:jar:1.46.0 in openkm.com (http://maven.openkm.com/maven2) -> [Help 1]
Same happened before for com.ettrema:milton-api:jar:1.8.1.3; haven't found this version publicly available anywhere but in these case we at least used to have them in some local .m2/repository. What's wrong here?
Thanks in advance and all the best,
Kristian
when downloading files with openkm-joomla extension, the file with a wrong name.
I'm using IE 8.0
Please kindly help.
Ref https://forum.openkm.com/viewtopic.php?f=3&t=21866&p=46081#p46081
Does not save the properties
Version: 6.3.6 (build: 87d181f)
iOS 11.4.1
Error on Safari on iOS
No error on Safari/Chrome MacOS
No error on IE on Windows server
no errors in Catalina.out
The 'comment' is not being saved in the document versions when doing a checkin using the PHP library.
Im using version 6.3.4, PHP library version 1.1.2.
Hello
I found mistake in Polish language translation for OpenKM Community. Date pattern wasn't set correctly.
Please change this lines from:
INSERT INTO OKM_TRANSLATION (TR_MODULE, TR_KEY, TR_TEXT, TR_LANGUAGE) VALUES ('frontend', 'general.date.pattern', 'dd.MM.yyyy hh:mm:ss', 'pl-PL');
...
INSERT INTO OKM_TRANSLATION (TR_MODULE, TR_KEY, TR_TEXT, TR_LANGUAGE) VALUES ('extension', 'general.date.pattern', 'dd.MM.yyyy hh:mm:ss', 'pl-PL');
to
INSERT INTO OKM_TRANSLATION (TR_MODULE, TR_KEY, TR_TEXT, TR_LANGUAGE) VALUES ('frontend', 'general.date.pattern', 'dd.MM.yyyy HH:mm:ss', 'pl-PL');
...
INSERT INTO OKM_TRANSLATION (TR_MODULE, TR_KEY, TR_TEXT, TR_LANGUAGE) VALUES ('extension', 'general.date.pattern', 'dd.MM.yyyy HH:mm:ss', 'pl-PL');
Best regards,
Daniel Pająk.
Make exclusive use of logback.
This REST API works?
I need upload documents with javascript, I think that I can use the REST API to do this.
The link above is deprecated and I can't find the new version.
Make use of plugins for automation.
Error while adding groups or setting metadata
Migrate findByQuery method.
upgrade current gwt version to enable super dev mode
As most developers and power users are aware of, flash is soon (if not now) obsolete. It is going to be EOL in 2020 and I suspect mainstream browsers may totally cut flash support officially.
I think the OpenKM development team may consider html5 solution and replace flash preview.
Thanks.
Actual task and new crontab task, must always set the maill address as empty String. Consider first time creating crontab task when starting application.
Also must create small script for next OpenKM upgrade process in order replace all [email protected] from all existing crontab task to empty string.
I using openkm via it's API I make folder and delete it , after some white I saw the OpenKM is too slow i login to the default web interface i see trash was too growing i decide to purge the trash but when i tried to remove the big folder i get below error
Cant' delete file (not exists) '/home/joh/Desktop/okm-installer/tomcat-7.0.61/repository/datastore/1f/5a/0c/b5/1f5a0cb5-d30d-479d-bf2b-33497d875adb
Note: my openkm versionis 6.3.4
also i install two instance of openkm with diffrent PORT 8080,8081 but with same database but now i deleted one of them
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.