aboutsummaryrefslogtreecommitdiffstats
path: root/sli/common/src/main/java/org/onap
AgeCommit message (Collapse)AuthorFilesLines
2020-11-17Fix NPE in toJsonString()Dan Timoney1-1/+5
Fixed SvcLogicContext.toJsonString() to return the empty string () if it cannot find the requested prefix in the service logic context. Change-Id: I5e36864f961b36b6c82a3db8d20483df6686ed15 Issue-ID: CCSDK-2990 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-10-19Add file path validationDan Timoney4-18/+4
Add file path validation for EnvVarFileResolver. Refactored PathValidator to org.onap.ccsdk.sli.core.utils so it can be used here. Change-Id: Ibb50df0ad020cf376c1ce20e7b598f7ad7223d48 Issue-ID: CCSDK-2918 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-10-16Add code to validate path names.Dan Timoney4-7/+35
Added code to validate path names to avoid possible attacks due to hidden/special characters and/or embedded new lines. Change-Id: I53d7266e44fbada1d9d5f458dfcdbc452801672c Issue-ID: CCSDK-2918 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-09-02secure printer changesSmokowski, Kevin (ks6305)1-9/+41
add method to print properties alphabetically Issue-ID: CCSDK-2721 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I3bcb46a1f45dc74a2bc97acff08fa8c2c29d0ba7
2020-08-11add new print methodsKevin Smokowski2-1/+108
create filtered print method for svclogic context Issue-ID: CCSDK-2643 Change-Id: I59261b1e581130d0fbe7d6735f96ee4c6e90ae75 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
2020-06-19Implement new method to convert SvcLogicContext to JSONDan Timoney1-217/+354
Added new method toJsonString() to SvcLogicContext class to write out service logic context properties as a JSON string Refactored static method SliPluginUtils.writeJsonToCtx to SvcLogicContext.mergeJson method Change-Id: I4fe134976f93c7d116bc54ad2bae6e486c6fac2c Issue-ID: CCSDK-1760 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-06-17MetricLogger MDC changesSmokowski, Kevin (ks6305)1-5/+17
Generate RequestID if not previously set. Generate a unique InvocationID for each request. Issue-ID: CCSDK-2455 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I3bd8f90efbf98b4bf2a6464d94682bcd80cdd948
2020-04-27metric logger changeSmokowski, Kevin (ks6305)1-9/+24
fix elapsed time in metric logger Issue-ID: CCSDK-2337 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I81c27bbead8614e2927aa9eddef3621559eb7cc0
2020-03-26Use MariaDB instead of DerbyDan Timoney1-1/+1
Use MariaDB instead of Derby as backing store for sliboot Change-Id: Ib9fa4abaaf88bcb1eac2276bc974474f067a06d3 Issue-ID: CCSDK-2188 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-02-28Support merge JSON to SvcLogicContextDan Timoney1-0/+34
Add support for merging JSON into SvcLogicContext Change-Id: If13fd6328a36ccff6393d0829319bbd99cd2a1f0 Issue-ID: CCSDK-2096 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-02-27Add execute-graph and vlbcheck to swagger-codegen codeDan Timoney1-1/+1
Add implementation for execute-graph and vlbcheck RPCs. Also, added junit tests. Change-Id: Id2a31c033d25ef12c455bfee98c5aea8439fc2f9 Issue-ID: CCSDK-2096 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-02-24minor logging updatesSmokowski, Kevin (ks6305)1-0/+100
create error logger, integrate with record node and improve slf4jrecorder Issue-ID: CCSDK-2115 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I857ce0fac070278a195204195eaae0c53d2d0d52
2020-02-17Refactoring deprecated lang3.StringEscapeUtilsSingal, Kapil (ks220y)1-54/+54
Replace deprecated org.apache.commons.lang3.StringEscapeUtils with org.apache.commons.text.StringEscapeUtils Change-Id: Ib0303919d883a577effbb6fa15ddeb289cb936fc Issue-ID: CCSDK-2104 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
2020-01-31minor sli provider base changesSmokowski, Kevin (ks6305)2-1/+21
add more unit testing, use constants for success/failure and improve some logging calls Issue-ID: CCSDK-2064 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I2c7039c706de1172bd506a20e96eb987cc86f211
2019-10-30remove ODL/karaf from commonSmokowski, Kevin (ks6305)6-1540/+2
Don't let sli common use odl or karaf classes Issue-ID: CCSDK-1723 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I740fa32b9c40a7efdf7ef9ce25b26cf43353c559
2019-10-17Update metric loggerSmokowski, Kevin (ks6305)1-0/+4
set status during invoke and escape certain characters Issue-ID: CCSDK-1845 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I3928364f480545ccdcce0af67e198d93152cfbd8
2019-09-19update filtersSmokowski, Kevin (ks6305)1-38/+25
replace legacy filters with common filters Issue-ID: CCSDK-1698 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: Id6b1f003f19105956d221d5bfd31390ac096c9bc
2019-09-05logging changesSmokowski, Kevin (ks6305)3-5/+2
remove old logging statements, add a few helpful ones Issue-ID: CCSDK-1665 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I2272f54b447647c8beab6d2053413c57e816eeac
2019-09-04Merge "remove useless log lines"Dan Timoney1-56/+10
2019-08-30remove useless log linesSmokowski, Kevin (ks6305)1-56/+10
delete excess log statements from sli core Issue-ID: CCSDK-1665 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: Iccf1e5eec024b5d5ba0a63d4a6a9cc45c931ea8a
2019-08-28logging changesSmokowski, Kevin (ks6305)1-223/+52
Synchronize metric logger with casablanca logging spec Issue-ID: CCSDK-1658 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I2d4e6af9eebdd0521792f03bbbaf25736b1b698e
2019-08-09update metric logger name to be consistentSmokowski, Kevin (ks6305)1-1/+1
update metric logger name to be consistent with convention of the other loggers Issue-ID: CCSDK-1601 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: I011745376a940822659eb1de5dcd04aea38b692f
2019-01-10Code changes to sli/core for ODL FluorineTimoney, Dan (dt5972)1-8/+8
Code changes needed to support port to ODL Fluorine. Change-Id: I539aeaabeab1056cd109b6bee12046d91d61cab1 Issue-ID: CCSDK-870 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-01-07fixed sonar issues in PrintYangToProp.javaSandeep J1-10/+8
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Ifb7328c8b3cf40d412a0efffad6cb55673cf83dc Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-18fixed sonar issues in PrintYangToProp.javaSandeep J1-1300/+1300
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Iade7c7e4c5ffad8afbd2d225291f0df68c1e60d0 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-17Merge "fixed sonar issue in SvcLogicExpression.java"Dan Timoney1-1/+3
2018-12-17Merge "fixed sonar issue in SvCLogicExprListener.java"Dan Timoney1-1/+3
2018-12-17Merge "fixed sonar issues in SvcLogicCrawler.java"Dan Timoney1-2/+4
2018-12-14fixed sonar issue in SvcLogicExpression.javaSandeep J1-1/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Ie7d170334ea0c704bf67ee175ef3cd1932171418 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-14fixed sonar issue in SvCLogicExprListener.javaSandeep J1-1/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: I59cfc4c94fe3cb1690ffecc92f10e2543ca645fe Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-14fixed sonar issues in SvcLogicCrawler.javaSandeep J1-2/+4
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I4d5e95cfac8bb04d03752015d64f7c3b61495f1a Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-14fixed sonar issues in PrintYangToProp.javaSandeep J1-18/+19
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Icd98cabe0f1322abbfb580ee37c8c15bbc315463 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-11Merge "fixed sonar issues in SvcLogicNode.java"Dan Timoney1-8/+11
2018-12-11Merge "fixed sonar issue in SvcLogicLoader.java"Dan Timoney1-3/+5
2018-12-11Merge "fixed sonar issue in SvcLogicGraoh.java"Dan Timoney1-3/+6
2018-12-11Merge "fixed sonar issues in SvcLogicDblibStore.java"Dan Timoney1-3/+3
2018-12-11Merge "fixed sonar issue in SvcLogicBinaryExpression"Dan Timoney1-1/+3
2018-12-07fixed sonar issues in SvcLogicNode.javaSandeep J1-8/+11
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I2f7e33601cac898069836bc5461e92dc5fe5d442 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issue in SvcLogicLoader.javaSandeep J1-3/+5
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I515fcdbae28518e0a25f1370173b1dd4f77b816e Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issue in SvcLogicGraoh.javaSandeep J1-3/+6
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: If14288410ad7be50d8fdfb942f11383a9f58eab0 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issues in SvcLogicDblibStore.javaSandeep J1-3/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Ia1ddf9787311b786c71b19e651730b65c2c0835e Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issue in SvcLogicBinaryExpressionSandeep J1-1/+3
fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Iea683bb51d07daa0f7f3b48b4c83642a427edfbd Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-12-07fixed sonar issues in PrintYangToProp.javaSandeep J1-13/+17
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Ie44b6710411605e262fd74fa7e4947eb3bd05a90 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-11-19Sonar fixes for PrintYangToProp.javaezhil1-18/+3
Fixed sonar issues in PrintYangToProp class Issue-ID: CCSDK-730 Change-Id: If344af657356ee0d2499fbd061e23fbd06617d2b Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-10-04implement exit nodeSmokowski, Kevin (ks6305)1-0/+46
exit node functions similar to a return statement in most programming languages Change-Id: I2991590fb700b03a9f3d72ae0bc7b5dd9bb25f74 Issue-ID: CCSDK-611 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
2018-09-12SvcLogicLoader ImprovementsSmokowski, Kevin (ks6305)4-59/+41
restore storing md5sum and add bulkActivate Change-Id: I27ea86c667d61f435bd2f0a77934d00db57bc218 Issue-ID: CCSDK-473 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-08-02add null check to format stringSmokowski, Kevin (ks6305)1-3/+5
add null check to format string Change-Id: If82f751ec679189620e02fafdcd2e1af9258268f Issue-ID: CCSDK-424 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
2018-07-25Fix sonar issuesParshad Patel1-1/+1
Fix sonar issues in ccsdk/sli/core Issue-ID: CCSDK-332 Change-Id: I2aee69cf410d8f9cb63f3a22aeb793a99e27d2c7 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-07-06sonar issue fixONAP1-2/+2
Issue-ID: CCSDK-332 Change-Id: Iec65b1ff600518b04ab13fb3508827864074a31b Signed-off-by: ONAP <arind.mondal@samsung.com>
2018-03-27Add unit tests for sliTimoney, Dan (dt5972)4-7/+19
Added unit tests for ccsdk/sli/core/sli Change-Id: I0d2408c43b9e56a78f3e01e87985aedb6cad5953 Issue-ID: CCSDK-213 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>