Code Monkey home page Code Monkey logo

document-management-system's People

Contributors

daflo1981 avatar darkman97i avatar gdeldago avatar gjacquenot avatar gnujavasergio avatar jlleitschuh avatar monkiki avatar peterbraemac avatar pherrera87 avatar sbingner avatar

Stargazers

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

Watchers

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

document-management-system's Issues

PDF still can be downloaded on preview after disable PDF download on user profile

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.

Service 'openkm' is missing the ImageFile

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

Install error SunCertPathBuilderException

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!

Change unauthorized error 401 with Rest API

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 ?

Blank page after login and Error getting translations

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

Storing the file in database

I have open a issue with opekm forum as well.

I am storing my files in the database as per below configuration..

OpenKM Hibernate configuration values

hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
hibernate.hbm2ddl=none
repository.datastore.backend=db

Logback configuration file

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

Copy URL to a file won't work by UUID

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) {

Error generating javadoc with JDK 1.8

[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 {

Forgot your Password Error

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

OpenKM 6.3.6 vs openSUSE Leap 15 (unknown distro)

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!

Build docker image

I found docker image on docker hub but no Dockerfile, how can I build my image?

InpustStream -> is.available() is limited to 2GB not allowing file >2GB to download properly

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:

  1. upload file larger than 2GB to OpenKM
  2. download file larger than 2GB from OpenKM
  3. Web browser will file as 2GB and only 2GB will download.

Graphics Designer/ Logo Designer

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.

Failing test cases and not able to run the source code

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.

Automation to capture move of node TO new folder path

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

screenshot from 2018-02-22 13-56-43

screenshot from 2018-02-22 13-57-01

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]

com.openkm.sdk4j.OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId, String grpName, Map<String, String> properties) fails with latest OpenKM 6.3.4 Community Edition

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

openkm.com maven repository / missing artifacts?

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

Data pattern in Polish language translation wasn't set correctly

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.

REST API

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.

Document browse - column names not inline with columns

There is a small issue/bug in the css which does not correctly align column names vs. content in the file browser. I did some research and find out that styles.css dont have declared padding-left: 2px in .gwt-ScrollTable .dataTable tr td.

Before padding
image

After insertion
image

Flash Preview

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.

Remove [email protected] from crontab task

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.

can not purge trash

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

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.