gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated (6f1c95a8 -> a1df8992)


From: gnunet
Subject: [libeufin] branch master updated (6f1c95a8 -> a1df8992)
Date: Wed, 06 Jul 2022 17:06:42 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a change to branch master
in repository libeufin.

    from 6f1c95a8 remove hard-coded currency
     new 0c7d378c avoid breaking (CAMT) node
     new a1df8992 make XML validation unparallel

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt    | 5 +++--
 util/build.gradle                                                    | 2 +-
 util/src/main/kotlin/XMLUtil.kt                                      | 4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git 
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index 4b0ec286..a4b1f5c4 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -302,14 +302,15 @@ fun buildCamtString(
                     element("CreDtTm") {
                         text(zonedDateTime)
                     }
-                    element("MsgPgntn") {
+                    // Block below used to fail validation:
+                    /*element("MsgPgntn") {
                         element("PgNb") {
                             text("001")
                         }
                         element("LastPgInd") {
                             text("true")
                         }
-                    }
+                    }*/
                 }
                 element(if (type == 52) "Rpt" else "Stmt") {
                     element("Id") {
diff --git a/util/build.gradle b/util/build.gradle
index 6f67b788..06d1d18c 100644
--- a/util/build.gradle
+++ b/util/build.gradle
@@ -36,7 +36,7 @@ dependencies {
     implementation 'ch.qos.logback:logback-classic:1.2.5'
 
     // XML Stuff
-    implementation "javax.xml.bind:jaxb-api:2.3.0"
+    implementation "javax.xml.bind:jaxb-api:2.3.1"
     implementation "org.glassfish.jaxb:jaxb-runtime:2.3.1"
     implementation 'org.apache.santuario:xmlsec:2.2.2'
 
diff --git a/util/src/main/kotlin/XMLUtil.kt b/util/src/main/kotlin/XMLUtil.kt
index 5f6baffa..1fa993dc 100644
--- a/util/src/main/kotlin/XMLUtil.kt
+++ b/util/src/main/kotlin/XMLUtil.kt
@@ -248,7 +248,7 @@ class XMLUtil private constructor() {
          * @param xmlDoc the XML document to validate
          * @return true when validation passes, false otherwise
          */
-        fun validate(xmlDoc: StreamSource): Boolean {
+        @Synchronized fun validate(xmlDoc: StreamSource): Boolean {
             try {
                 getEbicsValidator().validate(xmlDoc)
             } catch (e: Exception) {
@@ -264,7 +264,7 @@ class XMLUtil private constructor() {
          * @param domDocument DOM to validate
          * @return true/false if the document is valid/invalid
          */
-        fun validateFromDom(domDocument: Document): Boolean {
+        @Synchronized fun validateFromDom(domDocument: Document): Boolean {
             try {
                 getEbicsValidator().validate(DOMSource(domDocument))
             } catch (e: SAXException) {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]