Commit Graph

125 Commits

Author SHA1 Message Date
Antoine Parent
ab6aa521e7 fix(TBD-9669): add method signature for class RunStat (#2888)
* fix(TBD-9669): add method signature for class RunStat

add a new signature for the method "log"

* fix(TBD-9669): add method signature for failed tujs

fix variable name as it lead to compile error
2019-12-09 10:16:15 +01:00
Richard Lecomte
b5240d1762 Rlecomte/fix/tdi 42188 harden deserialization 2 (#2884)
* fix : TDI-42188

Harden Deserializaion (RunTrace)
InputStream in a try-with-resource block (GetJarsToRegister)

* fix : TDI-42188

Harden Deserializaion (RunTrace)
InputStream in a try-with-resource block (GetJarsToRegister)

* fix : TDI-42188

Copy expectedTypes to avoid security leak
Better type checking

* fix : TDI-42188

Deserialized type checked in GetJarsToRegister

* fix : TDI-42188

Removed deserialized type checking in GetJarsToRegister
2019-12-05 10:25:30 +01:00
kjwang
d95d058e75 Kjwang/fix tup 22966 remove hard coded key in password encrypt util 1 (#2829)
* feat(TUP-24862) Key rotation

* feat(TUP-24862) Add key rotation

* feat(TUP-24862) Refactor

* feat(TUP-24862) Refactor

* feat(TUP-24862) Fix logger

* feat(TUP-24862) Add Key rotation

* feat(TUP-24862) add test case

* feat(TUP-24862) Fix test case

* feat(TUP-24862) Fix password encrypt util

* feat(TUP-24862) Resolve comments

* kjwang/Fix TUP-22966 Remove hard-coded key in PasswordEncryptUtil_1
https://jira.talendforge.org/browse/TUP-22966

* kjwang/Fix TUP-22966 Remove hard-coded key in PasswordEncryptUtil_1
https://jira.talendforge.org/browse/TUP-22966

* kjwang/Fix TUP-22966 Remove hard-coded key in PasswordEncryptUtil_1
https://jira.talendforge.org/browse/TUP-22966

* kjwang/Fix TUP-22966 Remove hard-coded key in PasswordEncryptUtil_1
https://jira.talendforge.org/browse/TUP-22966

* kjwang/Fix TUP-22966 Remove hard-coded key in PasswordEncryptUtil_1
https://jira.talendforge.org/browse/TUP-22966

* kjwang/Fix TUP-22966 Remove hard-coded key in PasswordEncryptUtil_1
https://jira.talendforge.org/browse/TUP-22966

* kjwang/Fix TUP-22966 Remove hard-coded key in PasswordEncryptUtil_1
https://jira.talendforge.org/browse/TUP-22966

* kjwang/Fix TUP-22966 Remove hard-coded key in PasswordEncryptUtil_1
https://jira.talendforge.org/browse/TUP-22966
2019-12-05 15:00:46 +08:00
wang wei
d889b21c6d fix(TDI-43101) : support to generate a sample logging file for runtime lineage (#2855)
* fix(TDI-33262): align slf4j version to 1.8.0-beta4

* Revert "fix(TDI-33262): align slf4j version to 1.8.0-beta4"

This reverts commit 68bb6ba4dd.

* bump the version as we update the jar which remove log4j1 dependency and
then use slf4j

* fix(TDI-43101): [Research] Generate a sample logging file for runtime
lineage

* fix(TDI-43101): fix it
2019-11-26 18:11:20 +08:00
wang wei
273fe48fa7 fix(TDI-43211): SharedDBConnectionLog4j use log4j1 api, should use slf4j (#2841) 2019-11-22 11:01:21 +08:00
bhe-talendbj
9a6fe39e7d feat(TUP-24862) encryption key rotation (#2806)
* feat(TUP-24862) Key rotation

* feat(TUP-24862) Add key rotation

* feat(TUP-24862) Refactor

* feat(TUP-24862) Refactor

* feat(TUP-24862) Fix logger

* feat(TUP-24862) Add Key rotation

* feat(TUP-24862) add test case

* feat(TUP-24862) Fix test case

* feat(TUP-24862) Fix password encrypt util

* feat(TUP-24862) Resolve comments

* feat(TUP-24862) Resolve comments
2019-11-21 10:13:37 +08:00
AlixMetivier
655418754a add method to fix arguments (#2788) 2019-10-24 13:14:47 +02:00
Roman
96a90bc9d4 fix(TDI-43022): change LN method in Routines (#2751) 2019-10-23 07:41:17 +03:00
bhe-talendbj
755fed6f00 feat(TUP-21518) Remove CryptoHelper (#2655)
* feat(TUP-21518) initial change from cryptohelper to AESEncryption

feat(TUP-21518) Replace CryptoHelper

feat(TUP-21518) Revert migration related changes and changes to old hardcoded key of AESEncryption, tracked by https://jira.talendforge.org/browse/TUP-22966

feat(TUP-21518) Add CryptoHelperWrapper which will be intended for
migration

feat(TUP-21518) Add methods to CryptoHelperWrapper

feat(TUP-21518) Fix Separate migration code

feat(TUP-21518) Rename AESEncryption

feat(TUP-21518) Rename AESEncryption

feat(TUP-21518) Rename AESEncryption

feat(TUP-21518) Rename AESEncryption

feat(TUP-21518) Format source code

* feat(TUP-21518) Uptake new daikon lib

* feat(TUP-21518) initial change from cryptohelper to AESEncryption

feat(TUP-21518) Replace CryptoHelper

feat(TUP-21518) Revert migration related changes and changes to old hardcoded key of AESEncryption, tracked by https://jira.talendforge.org/browse/TUP-22966

feat(TUP-21518) Add CryptoHelperWrapper which will be intended for
migration

feat(TUP-21518) Add methods to CryptoHelperWrapper

feat(TUP-21518) Fix Separate migration code

feat(TUP-21518) Rename AESEncryption

feat(TUP-21518) Rename AESEncryption

feat(TUP-21518) Rename AESEncryption

feat(TUP-21518) Rename AESEncryption

feat(TUP-21518) Format source code

feat(TUP-21518) Uptake new daikon lib

feat(TUP-21518) Rename encryption key

* feat(TUP-21518) Update system property

* kjwang/Fix TUP-24212 Create migration for CryptoHelper to AES upgrading
https://jira.talendforge.org/browse/TUP-24212

* feat(TUP-21518) Update log level

* feat(TUP-21518) Set encryption key system property only if it is not set

* kjwang/Fix TUP-24212 Create migration for CryptoHelper to AES upgrading
https://jira.talendforge.org/browse/TUP-24212

* kjwang/Fix TUP-24212 Create migration for CryptoHelper to AES upgrading
https://jira.talendforge.org/browse/TUP-24212

* kjwang/Fix TUP-24212 Create migration for CryptoHelper to AES upgrading
https://jira.talendforge.org/browse/TUP-24212

* feat(TUP-21518) Set up default keys

* kjwang/Fix TUP-24212 Create migration for CryptoHelper to AES upgrading
https://jira.talendforge.org/browse/TUP-24212

* feat(TUP-21518) Setup default encryption keys

* feat(TUP-21518) Update crypto-utils

* feat(TUP-21518) Merge changes

* kjwang/Fix TUP-24212 Create migration for CryptoHelper to AES upgrading
https://jira.talendforge.org/browse/TUP-24212

* feat(TUP-21518) Fix test case and load default keys for tac and
jobserver

* feat(TUP-21518) Fix load key file

* feat(TUP-21518) Revert pom_minimal and server

* feat(TUP-21518) Fix test case

* feat(TUP-21518) Fix test case

* feat(TUP-21518) Fix test case

* feat(TUP-21518) Fix ElementParameterParserTest

* fix(TDQ-16616): refactor the code to make it reuseable

* feat(TUP-21518) Fix TUP-24580

* feat(TUP-21518) Fix TUP-24578

* feat(TUP-21518) Add JDBC connection type

* feat(TUP-21518) Resolve comments

* feat(TUP-21518) Resolve comments

* feat(TUP-21518) Resolve comments

* feat(TUP-21518) Refactor

* feat(TUP-21518) Fix log

* feat(TUP-21518) Fix format of source code

* feat(TUP-21518) Resolve comments

* feat(TUP-21518) Resolve comments

* feat(TUP-21518) Load migration.token.encryption.key from local jar

* feat(TUP-21518) Resolve comments

* feat(TUP-21518) Resolve comments

* feat(TUP-21518) Fix TUP-24868
2019-10-18 09:36:24 +08:00
wang wei
15216b8be3 fix(TDI-42183): Avoid locale dependent checks (#2715)
* fix(TDI-42183): Avoid locale dependent checks

* fix(TDI-42183): declare the code come from apache commons lang
2019-09-23 18:04:06 +08:00
wang wei
1f385ee333 fix(TDI-42187): Fix Double Checked Locking in GlobalResource (#2708)
* fix(TDI-42187): Fix Double Checked Locking in GlobalResource

* fix(TDI-42187): use more readable method
2019-09-23 17:42:49 +08:00
wang wei
7b21c010e2 fix(TDI-42192): Use SecureRandom in system routines (#2707) 2019-09-18 18:34:00 +08:00
Richard Lecomte
2aae24829a fix : TDI-42776 (#2692)
* fix : TDI-42776

Numeric sequence is now thread safe
2019-08-30 10:50:32 +02:00
Emmanuel GALLOIS
a26002f9a2 feat(TDI-40339): add Snowflake SQL Templates (#2633)
* feat(TDI-40339): add Snowflake Merge template
* feat(TDI-40339): add Snowflake table management templates
* fix(TDI-40339): correct create target table template
* fix(TDI-40339): remove the OR REPLACE statement
2019-08-16 11:23:22 +02:00
wang wei
bea0b2a13b fix(TDI-42522): avoid 65535 issue (#2540) 2019-08-16 11:59:59 +08:00
Irene Wang
dcd7bf8010 DEVOPS-6106 Update copyright year to 2019 2019-06-10 17:34:30 +02:00
wang wei
5d627f8d64 fix(TDI-42071): PoC for job runtime information publishing (#2454) 2019-06-05 17:58:06 +08:00
kjwang-talend
f01cd163ef TUP-23201 Need change of encryption for jobs (#2445)
https://jira.talendforge.org/browse/TUP-23201
2019-05-29 15:59:08 +08:00
kjwang-talend
f807ca1839 TUP-23004 Fail to decrypte password (#2411)
* TUP-23004 Fail to decrypte password
https://jira.talendforge.org/browse/TUP-23004

* TUP-23004 Fail to decrypte password
https://jira.talendforge.org/browse/TUP-23004
2019-05-14 17:01:59 +08:00
kjwang-talend
97dd532fdd Fix TUP-21510 Update PasswordEncryptUtil (#2380)
* Fix TUP-21510 Update PasswordEncryptUtil
https://jira.talendforge.org/browse/TUP-21510

* Fix TUP-21510 Update PasswordEncryptUtil
https://jira.talendforge.org/browse/TUP-21510

* Fix TUP-21510 Update PasswordEncryptUtil
https://jira.talendforge.org/browse/TUP-21510

* Fix TUP-21510 Update PasswordEncryptUtil
https://jira.talendforge.org/browse/TUP-21510

* Fix TUP-21510 Update PasswordEncryptUtil
https://jira.talendforge.org/browse/TUP-21510

* Fix TUP-21510 Update PasswordEncryptUtil
https://jira.talendforge.org/browse/TUP-21510

* Fix TUP-21510 Update PasswordEncryptUtil
https://jira.talendforge.org/browse/TUP-21510

* Fix TUP-21510 Update PasswordEncryptUtil (Update slf4j version)
https://jira.talendforge.org/browse/TUP-21510
2019-05-09 11:52:58 +08:00
TKaczynski
eb33120cac fix(TBD-7687): tFileInputDelimited issue with separator (#2314)
* fix(TBD-7687): tFileInputDelimited issue with separator

add a null instead of delete the column

* Update StringUtils.java

* Update StringUtils.java

* Update StringUtils.java

* Update StringUtils.java
2019-04-04 13:53:30 +02:00
chmyga
82f48b9ec9 fix(TDI-41681): fix XMLHelper (#2263) 2019-03-19 10:09:41 +02:00
Dmytro Sylaiev
a101784871 Dsylaiev/tdi 41808 fix showing pass nzload (#2276)
* fix(TDI-41808): Add password for logging constant

* fix(TDI-41808): Rename constant

* chore(TDI-41808): Update year in copyright
2019-03-07 11:12:46 +02:00
Tao Tao
4e2069f2f5 Revert XMLHelper.java changed in TUP-21232. (#2217) 2019-01-22 19:20:24 +08:00
Tao Tao
e5deedc9a8 workItem(TUP-21307):Duplicate code in IdGenerator + TalendString (#2193)
* workItem(TUP-21307):Duplicate code in IdGenerator + TalendString

https://jira.talendforge.org/browse/TUP-21307

* workItem(TUP-21307):Duplicate code in IdGenerator + TalendString

https://jira.talendforge.org/browse/TUP-21307

* workItem(TUP-21307):Use SecureRandom + StringBuilder in IdGenerator +
TalendString

https://jira.talendforge.org/browse/TUP-21307
2019-01-15 18:30:29 +08:00
Tao Tao
d287b431b5 workItem(TUP-21232):Secure SAXParserFactory configuration (#2185)
* workItem(TUP-21232):Secure SAXParserFactory configuration

https://jira.talendforge.org/browse/TUP-21232

* workItem(TUP-21232):Secure SAXParserFactory configuration

https://jira.talendforge.org/browse/TUP-21232
2019-01-15 11:30:26 +08:00
Pierre Teyssier
db0a79887b TDI-41577 fix wheather strings 2018-12-25 17:12:27 +08:00
chmyga
036b6b090f fix(TDI-31052): tRowGenerator Numeric.random (#2043)
* fix(TDI-31052): tRowGenerator Numeric.random

* throw RuntimeException if max value is less than or equal to min

* fix(TDI-31052): tRowGenerator Numeric.random

* throw exception only for max < min values

* fix(TDI-31052): tRowGenerator Numeric.random

* Fix javadoc
2018-11-30 16:19:55 +02:00
mbasiuk-talend
b608c2a769 fix(TDI-40846): create isDateStrict in routines (#1823) 2018-10-10 17:11:17 +08:00
wang wei
61b14bd1f5 fix(TDI-40981): Resuming log header miss last column name (#1866) 2018-09-30 10:10:31 +08:00
Yu
aa5e7e2806 Add epoch time parser (#1840) 2018-09-03 18:19:07 +02:00
kcoepeau
ab8c9b7875 fix(TBD-7393): job jar in job server does not have ./ (#1789) 2018-07-20 15:28:32 +02:00
wang wei
bd408c6563 fix(TDI-40756): out of memory happen when use statistics in Run pannel (#1787) 2018-07-18 11:06:06 +08:00
wang wei
2c085c753f fix(TDI-40688): tVerticaOutput in Copy mode: Nullable Float-values are rounded to the nearest integer (#1769) 2018-07-05 10:49:28 +08:00
wang wei
d991436b57 fix(TDI-39874): Numeric.sequence increments by 2 instead of 1 in tXMLMap (#1690) 2018-05-29 14:04:46 +08:00
wang wei
946d8cd432 fix(TDI-36094): Need a method format_Number(String, String, String ) in FormatterUtils.java to solve the different setting(#1516) 2018-03-15 10:23:22 +08:00
Irene Wang
4f5f8406d2 DEVOPS-3791 Update copyright year to 2018 2018-02-09 12:55:53 +01:00
Pierre Teyssier
c0b4e5ed99 fix(TDI-39791): extract JSONArray from JSONObject routines (#1321) 2017-12-28 14:55:57 +08:00
kcoepeau
46068705b2 fix(TBD-5136): support space encoding in classpath (#1312)
* fix(TBD-5136): support space encoding in classpath

* fix(TBD-5136): support space encoding in classpath
2017-12-14 02:55:15 -06:00
Yu
aea4bfad67 feat(TBD-5415) Add GCS User Agent String in Constant class (#1303)
* feature(TBD-5415) Add GCS User Agent String in Constant class

* change the way of getting studio version

I changed the way of getting version of studio because there are some problems for the previous commit.

It doesn't work because the org.talend.commons.utils.VersionUtils class is in fact in code generating (eclipse) level. So we will not have it in the generated project in Studio, so I moved it (version retrieving) to javajet level as shown in the 3 other related commits, to get the version correctly.

* rename variable
2017-12-01 16:44:18 +01:00
wang wei
b3a63df08b fix(TDI-39625): System routine BufferedOutput using sun api (#1287) 2017-11-16 13:53:22 +08:00
jzhao
e05da6e27d fix(TDI-39670) Side effect when using TalendDate.formatDateInUTC() and TalendDate.parseDate() (#1279) 2017-11-10 15:06:58 +08:00
Ihor Istomin
bc461d91f6 fix(TDI-38240): Make JSONException public. Replace StringBuffer with StringBuilder in JSONObject. (#1150) 2017-11-07 10:05:18 +08:00
Irene Wang
1dd17dda4a Update copyright to 2017 2017-09-05 19:24:56 +02:00
Irene Wang
df57151cc9 Update copyright to 2017 2017-09-05 17:12:21 +02:00
Andreas Mattes
e3a2fcfcdd TESB-20301 - Helper class for late resolution of OSGi services added. (#1216) 2017-09-05 14:33:35 +02:00
wang wei
34cec768b8 fix(TDI-38904): Tracking influence for AWS connectors (#1085) 2017-06-12 17:30:11 +08:00
Ihor Istomin
a960435233 fix(TDI-34726): Implement SAX filter for removing of namespaces (#1048)
* Implemented SAX filter for removing of namespace-prefix mappings.
2017-06-06 10:32:58 +03:00
wang wei
6461724c1b fix(TDI-32437): fix the Bug_TDI_29037_tOracleInput_65535 tuj (#1059) 2017-06-05 18:03:52 +08:00
pyzhou
a18357f27d TDI-38803:StringHandling.LPAD(first_string, length) return wrong value (#1031) 2017-05-19 10:58:47 +08:00