[cpp-xmltooling] branch master updated: SSPCPP-819 - XML MetadataProvider file= not recognized

Scott Cantor cantor.2 at osu.edu
Tue Jul 10 20:13:18 EDT 2018


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

scantor pushed a commit to branch master
in repository cpp-xmltooling.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=90b994e5f428627aee16ef8146fbff7ca295b36f

The following commit(s) were added to refs/heads/master by this push:
       new  90b994e   SSPCPP-819 - XML MetadataProvider file= not recognized
90b994e is described below

commit 90b994e5f428627aee16ef8146fbff7ca295b36f
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jul 10 20:12:43 2018 -0400

    SSPCPP-819 - XML MetadataProvider file= not recognized
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-819
    
    More robust child element check.
---
 xmltooling/util/ReloadableXMLFile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xmltooling/util/ReloadableXMLFile.cpp b/xmltooling/util/ReloadableXMLFile.cpp
index 015f92f..679319c 100644
--- a/xmltooling/util/ReloadableXMLFile.cpp
+++ b/xmltooling/util/ReloadableXMLFile.cpp
@@ -233,7 +233,7 @@ ReloadableXMLFile::ReloadableXMLFile(const DOMElement* e, Category& log, bool st
         if (startReloadThread)
             startup();
     }
-    else if (e && e->hasChildNodes()) {
+    else if (e && XMLHelper::getFirstChildElement(e)) {
         // TODO: what we want to do here is delegate a check to the subclasses to immediately check for the "right"
         // child element so we can catch the deprecated syntax mistake here.
         log.info("no resource url/path supplied, assuming inline configuration");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list