Commit Graph

54 Commits

Author SHA1 Message Date
Carlos Ruiz 5f2d71347d
IDEMPIERE-3101 implement OAuth2 for mail (gmail, outlook and other mail system) (#593)
* IDEMPIERE-3101 implement OAuth2 for mail (gmail, outlook and other mail system)

WIP - initial version working on zk with google apps mail using OAuth2 Authorization Code Flow and Client Type = web application

* Enable imap reading with OAuth2 in RequestEMailProcessor
* Simplify the code - tested plain and OAuth2 can use the same methods
* Add +SCOPE parameter to AddAuthorizationForm according to IDEMPIERE-4713
* Rename the form AddAuthorizationMailForm to AddAuthorizationForm as is now more generic

* IDEMPIERE-4713
* Rename migration scripts to make it newer than IDEMPIERE-4713
* Add list of scopes attended by a credential
* Change form to accept other scopes, if no scope parameter is passed, then a list is shown, change the menu to fix the EMail scope
* Add MAuthorizationAccount.refreshAndGetAccessToken
* Add translation for messages

* make call generic oauth, avoid using specific google API

* Tests with microsoft as OAuth2 provider
* Add record for microsoft as provider
* Increase size of tokens
* Define mandatory and secure columns
* Update refresh token when it comes on the refresh call
* Revoke endpoint is optional

* Change the approach to a process instead of a form (WIP)
* Implement servlet to process the OAuth2 code

* Solve context suggestion from hengsin

* Implement the form in an automatic popup approach for running on zkwebui

* i18n - add translations for all messages that are shown to user
* on the form opted for click to avoid the problem with browsers forbidding popups
* clean spaces and tabs on line endings

* avoid logging and copy of the secure columns

* Fix problem reported by @d-ruiz about hidden NPE when SMTP Authentication is disabled

* Add writing to AD_PInstance_Para and AD_PInstance_Log the results of processing the servlet
* Control to avoid using the same authorization URL twice
2021-03-06 11:49:39 +01:00
hengsin 3beccdf38e
IDEMPIERE-4722 Remove constraint that idempiere source folder must be… (#606)
* IDEMPIERE-4722 Remove constraint that idempiere source folder must be used as Eclipse workspace

use project_loc of org.adempiere.base instead of workspace_loc
integrate additional fix from Carlos
2021-03-02 20:51:20 +08:00
Carlos Ruiz df47a79531
IDEMPIERE-4618 Obfuscate ADEMPIERE_KEYSTOREPASS as suggested by jetty (#494) 2020-12-31 10:04:39 +08:00
hieplq d2a2e3d19f
Idempiere 4492 improve target platform (continue) (#335)
* IDEMPIERE-4492 update jetty to 9.4.33.v20201020 update atmosphere to 2.5.15

* IDEMPIERE-4492 update jetty to 9.4.33.v20201020 (update configuration)

update to default jetty configuration
delete unused configuration (alpn, http2,..)

* IDEMPIERE-4492 update orbit eclipse repository to 4.17

* IDEMPIERE-4492 update orbit eclipse repository to 4.17 (on parent pom)

* IDEMPIERE-4492 update jasper to 6.15.0

* IDEMPIERE-4492 update jasper to 6.15.0 (IDEMPIERE-4504)

get rid of bundle "org.w3c.dom.events version 3.0.0" by use old version of org.w3c.dom.smil

note: on target platform a bundle has multi version then tycho can pickup correct version define on feature (tab included plugins, field version)
but on eclipse when sync launching from .product it don't respect that value, always set highest version to bundle
workaround: on target platform manual un-select bundle org.w3c.dom.smil 1.0.1

* IDEMPIERE-4492 update atmosphere to 2.6.4

* IDEMPIERE-4492 refine target platform

use targetplatform-dsl to generate target platform https://github.com/eclipse-cbi/targetplatform-dsl
   + don't need to care update bundle version when update repository
   + at moment org.idempiere.eclipse.platform-feature include some feature form eclipse repository
     so target has to include that feature so target platform will include all bundler request by feature and bundle request by plugins of that feature and so on (ever optional
     so it make target content has more plugins than what we use on project
     next step will convert include feature to include plugins to define only what we used

* IDEMPIERE-4492 refine target platform (continue)

don't include framework feature, use include plugins to void load transitive dependency so minimize target flatform
remove some unused feature from idempiere product

* IDEMPIERE-4492 update c3p0 and database jdbc (patch from Carlos)

* IDEMPIERE-4492 improve target platform (continue)

provide test bundle require to repository for use on offline
remove some unused bundle
also fix for IDEMPIERE-4475

* IDEMPIERE-4492 improve target platform (continue IDEMPIERE-4475)

add launch for unittest
add more require bundle for unit test
2020-10-31 13:48:16 +01:00
hieplq 58258ad506
Idempiere-4492 update library (eclipse-4.17, jasper 6-15, jetty-9.4.33, atmosphere-2.6.4) (#331)
* IDEMPIERE-4492 update jetty to 9.4.33.v20201020 update atmosphere to 2.5.15

* IDEMPIERE-4492 update jetty to 9.4.33.v20201020 (update configuration)

update to default jetty configuration
delete unused configuration (alpn, http2,..)

* IDEMPIERE-4492 update orbit eclipse repository to 4.17

* IDEMPIERE-4492 update orbit eclipse repository to 4.17 (on parent pom)

* IDEMPIERE-4492 update jasper to 6.15.0

* IDEMPIERE-4492 update jasper to 6.15.0 (IDEMPIERE-4504)

get rid of bundle "org.w3c.dom.events version 3.0.0" by use old version of org.w3c.dom.smil

note: on target platform a bundle has multi version then tycho can pickup correct version define on feature (tab included plugins, field version)
but on eclipse when sync launching from .product it don't respect that value, always set highest version to bundle
workaround: on target platform manual un-select bundle org.w3c.dom.smil 1.0.1

* IDEMPIERE-4492 update atmosphere to 2.6.4

* IDEMPIERE-4492 refine target platform

use targetplatform-dsl to generate target platform https://github.com/eclipse-cbi/targetplatform-dsl
   + don't need to care update bundle version when update repository
   + at moment org.idempiere.eclipse.platform-feature include some feature form eclipse repository
     so target has to include that feature so target platform will include all bundler request by feature and bundle request by plugins of that feature and so on (ever optional
     so it make target content has more plugins than what we use on project
     next step will convert include feature to include plugins to define only what we used

* IDEMPIERE-4492 refine target platform (continue)

don't include framework feature, use include plugins to void load transitive dependency so minimize target flatform
remove some unused feature from idempiere product

* IDEMPIERE-4492 update c3p0 and database jdbc (patch from Carlos)
2020-10-31 06:53:36 +08:00
hengsin c3cad0d1e2
IDEMPIERE-4249 Platform Refresh for 7.1z (#19)
Upgrade to Tycho 1.7.0, Eclipse 2020-03, Zk 9.0.1 and Jetty 9.4.28
2020-04-30 16:01:19 +02:00
hengsin 0b3d1415b5 IDEMPIERE-4199 Clean up org.adempiere.extend 2020-04-02 19:27:07 +08:00
hengsin 3cc17d25fd IDEMPIERE-4158 Move Swing Client out of core. Drop restlet dependency, drop webstart and applet stuffs and some minor dependency adjustments. 2020-01-29 08:00:36 +08:00
Carlos Ruiz cf379fca3c IDEMPIERE-4136 Upgrading Jasper report
Fix launchers with the new versions of bundles, and changes to the new
eclipse 2019-12 format
2019-12-29 14:01:41 +01:00
Deepak Pansheriya f13bcd6de9 IDEMPIERE-4136: Upgrading Jasper report to version 6.11.0 2019-12-25 20:28:37 +05:30
Carlos Ruiz a7abef0253 IDEMPIERE-3948 Implement QRCode support in report engine 2019-04-11 17:40:45 +02:00
hieplq fb1ebefdf2 IDEMPIERE-3909:update webservice library to jdk-11 2019-03-02 20:22:16 +07:00
Carlos Ruiz e278db4d73 IDEMPIERE-3808 - remove environment variable J2D_UISCALE - breaking windows execution of swing 2019-01-31 19:01:01 +01:00
hieplq 45e54b5da0 IDEMPIERE-3808:collect info to move idempiere to jdk-11 (update lib j2ee take out from jdk)
https://github.com/eclipse-ee4j
some already release so update, some not yet release so wait

https://eclipse-ee4j.github.io/javamail/
https://eclipse-ee4j.github.io/jaf/
2018-12-23 11:08:13 +07:00
hieplq 942800418e IDEMPIERE-3808:collect info to move idempiere to jdk-11 (zk8.6.0.1, eclipse-1812, java11, tycho 1.3)
still use local repository for maven.to.p2 to continue update library
2018-12-22 15:49:50 +07:00
hieplq 8b18a199af IDEMPIERE-3808:collect info to move idempiere to jdk-11 (update restlet)
restlet: manifest of restlet 2.4.1 isn't yet complete so copy it from release 2.3.12
https://github.com/restlet/restlet-framework-java/issues/1321
2018-11-18 12:07:54 +07:00
Carlos Ruiz f65f6f5d19 IDEMPIERE-3798 Fix launchers 2018-10-31 21:58:21 +01:00
hieplq 79613e7a07 IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (rest/launcher) 2018-10-31 15:09:16 +07:00
hieplq c75b678db5 IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (sync launch/check jvm version) 2018-10-27 23:02:52 +07:00
hieplq 671bc4ed9c IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (sync launch)
move temp folder inside workspace_loc to avoid conflict when hava some dev environment
dev/idempiere_home1
dev/idempiere_home2
2018-10-24 13:58:02 +07:00
hieplq 2d6d70ef06 IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (update lib)
spring to osgi, deduce install configuration
2018-10-24 08:48:02 +07:00
hieplq 6bc86a754c IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (update lib)
spring, service, xml http://openjdk.java.net/jeps/320
2018-10-23 22:27:06 +07:00
hieplq b2fa99b192 IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (update lib)
update jetty to 12
update almost library to latest version
change org.eclipse.jdt.core.compiler.batch to org.eclipse.jdt.core
change javax.management.j2ee-api to org.apache.geronimo.specs.geronimo-j2ee-management_1.1_spec, reduce dependency and correct dependency of activeMQ
javax.activation to com.sun.activation.javax.activation
lib for service will take from library instea of jdk
groovy to date
2018-10-23 09:36:53 +07:00
hieplq 2ac37db0ad IDEMPIERE-3531:export to excel get error "java.lang.NoSuchMethodError: org.apache.poi.hssf.util.HSSFColor.getTripletHash()Ljava/util/Map" 2018-09-28 00:28:46 +07:00
hieplq 5c3e738dab IDEMPIERE-2610:kill warning:Class path contains multiple SLF4J bindings. 2018-09-12 17:01:04 +07:00
hieplq 9b33710a19 IDEMPIERE-3531:adapt with buckminster method
maven have beta version of groovy-all, so fix version of groovy-all to help buckminster materialize
new version of org.apache.commons.configuration request org.apache.commons.lang3
correct source bundle of zk and https://github.com/jetty-project/jasper-jsp/issues/5
update launch
2018-02-26 03:11:03 +07:00
hieplq 5b556121fb IDEMPIERE-3136:update equinox to 4.7.x (OXYGEN)
https://www.eclipse.org/eclipse/news/4.7/platform_isv.php#Equinox
2017-07-01 22:25:41 +07:00
hieplq 768762d32a IDEMPIERE-3136:all stuff relate library of idempiere
sync/clean/test when merger to core
2017-05-21 00:29:38 +07:00
hieplq 29dac9e3fb IDEMPIERE-3136:update jasper report to use P2
update note install launch
2017-05-14 22:39:20 +07:00
Nicolas Micoud d556cb2a2d IDEMPIERE-3312 MUserPreference.createUserPreferences should use transaction 2017-03-25 14:18:46 +01:00
Carlos Ruiz 64371d758d Fix launchers 2017-02-18 08:34:15 +01:00
hieplq 16bfc4f59b IDEMPIERE-3136:all stuff relate library of idempiere
update jetty to 9.3.10
2016-07-08 23:22:03 +07:00
hieplq 093c95874f IDEMPIERE-3136:all stuff relate library of idempiere
set runtime of all project to 1.8
2016-07-08 16:18:44 +07:00
hieplq 07ada50393 IDEMPIERE-3136:all stuff relate library of idempiere
replace bundle dependency by use import package for jasper report
2016-07-08 10:47:30 +07:00
Carlos Ruiz 4803643ab2 IDEMPIERE-2245 Platform Upgrade for r3 2014-10-29 13:36:29 -05:00
Carlos Ruiz 21cf6fc9c5 IDEMPIERE-1939 zk7:request plug-in of model.generator is outdate. 2014-10-23 08:27:01 -05:00
Heng Sin Low 0b2fbe27ae IDEMPIERE-2245 Platform Upgrade for r3. 2014-10-13 11:05:19 +08:00
Heng Sin Low 9e5826b772 IDEMPIERE-1635 Upgrade to zk7. Update platform to Gemini Web 2.2.2, Tomcat 7.0.35 and Eclipse 4.3 ( Kepler ). 2014-04-03 01:31:20 +08:00
Heng Sin Low 7023ce3eea IDEMPIERE-359 Add OSGi Service support for existing extension point. Fixed launch config for setup and model generator. 2012-11-08 07:46:58 +08:00
Heng Sin Low 22769a3584 Merge with 249b385b81d453843c74d8667f698ddc1c6cdaf9 2012-10-23 11:52:17 +08:00
Heng Sin Low b133cd9c3b IDEMPIERE-461 error to send reports (Mail) in ZK Web Client (loader constraint violation). Fixed buckminster build error. 2012-10-23 11:43:58 +08:00
Carlos Ruiz 29c85da0bc Ignore iDempiereEnv.properties - add webservices to launcher 2012-10-19 11:06:35 -05:00
David Peñuela 549f7c3249 IDEMPIERE-77 Start on the left, Cancel on the right 2012-10-11 14:00:08 -05:00
Carlos Ruiz cdafec1522 IDEMPIERE-260 Configuration using Eclipse install.app does not work when db is Oracle / previous approach broke install.app 2012-09-04 18:14:17 -05:00
Carlos Ruiz f1cecaaa7f IDEMPIERE-260 Configuration using Eclipse install.app does not work when db is Oracle 2012-08-30 00:53:49 -05:00
Heng Sin Low 869b404e3b IDEMPIERE-141 Update Platform to Eclipse 3.7.1 2012-02-17 06:28:30 +08:00
Carlos Ruiz 5bbd7015ab Execute Add required plugins on launchers to solve start problems because of missing plugins 2011-06-02 00:12:46 -05:00
Heng Sin Low 3f1d941305 Fixed buckminster materialization and bundle version dependency issues.
(transplanted from c6461faa371127b56d214c804a21b37ec90ce4cf)
2011-05-27 05:56:38 +08:00
Heng Sin Low 969b0cb3ad Fixed launch configuration for install.app and install.console.app. Rename application id org.adempiere.install.console.application to org.adempiere.install.console-application to resolve plugin validation error. 2010-12-16 16:54:50 +08:00
Heng Sin Low dcdd67d07c minor launch config update. 2010-12-14 16:03:24 +08:00