fix parser issue
authorBen-kimon, Hofit (hb272c) <hb272c@att.com>
Sun, 16 Sep 2018 14:31:41 +0000 (17:31 +0300)
committerBen-kimon, Hofit (hb272c) <hb272c@att.com>
Sun, 16 Sep 2018 14:31:41 +0000 (17:31 +0300)
update max hierarchy level from 10 to 20

Change-Id: Ic530b8d0d909be788c2f4af4a3c880fbd795c92c
Issue-ID: SDC-1764
Signed-off-by: Ben-kimon, Hofit (hb272c) <hb272c@att.com>
pom.xml
src/main/java/org/onap/sdc/toscaparser/api/ToscaTemplate.java
version.properties

diff --git a/pom.xml b/pom.xml
index f0383b1..aa95d28 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
 
        <groupId>org.onap.sdc.jtosca</groupId>
        <artifactId>jtosca</artifactId>
-       <version>1.4.2-SNAPSHOT</version>
+       <version>1.4.3-SNAPSHOT</version>
        <name>sdc-jtosca</name>
        <properties>
 
index f236a0a..b5ae4c4 100644 (file)
@@ -35,6 +35,7 @@ import org.yaml.snakeyaml.Yaml;
 
 public class ToscaTemplate extends Object {
 
+       public static final int MAX_LEVELS = 20;
        private static Logger log = LoggerFactory.getLogger(ToscaTemplate.class.getName());
 
        // TOSCA template key names
@@ -582,7 +583,7 @@ public class ToscaTemplate extends Object {
        // multi level nesting - RECURSIVE
        @SuppressWarnings("unchecked")
        private void _handleNestedToscaTemplatesWithTopology(TopologyTemplate tt) {
-               if(++nestingLoopCounter > 10) {
+               if(++nestingLoopCounter > MAX_LEVELS) {
                        log.error("ToscaTemplate - _handleNestedToscaTemplatesWithTopology - Nested Topologies Loop: too many levels, aborting");
                        return;
                }
index 0d94dfd..a54766f 100644 (file)
@@ -5,7 +5,7 @@
 
 major=1
 minor=4
-patch=2
+patch=3
 
 base_version=${major}.${minor}.${patch}