[cpp-sp COMMIT] /branches/REL_2/shibsp/handler/impl/StatusHandler.cpp

noreply at shibboleth.net noreply at shibboleth.net
Wed Jun 20 21:53:03 BST 2012


Author: scantor
Date: Wed Jun 20 16:53:03 2012
New Revision: 3714

URL: http://svn.shibboleth.net/view/cpp-sp?rev=3714&view=rev
Log:
Let handler run when no metadata is present.

Modified:
    branches/REL_2/shibsp/handler/impl/StatusHandler.cpp

Modified: branches/REL_2/shibsp/handler/impl/StatusHandler.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/handler/impl/StatusHandler.cpp?rev=3714&r1=3713&r2=3714&view=diff
==============================================================================
--- branches/REL_2/shibsp/handler/impl/StatusHandler.cpp (original)
+++ branches/REL_2/shibsp/handler/impl/StatusHandler.cpp Wed Jun 20 16:53:03 2012
@@ -419,19 +419,20 @@
             status = "<Partial/>";
         }
 
-        MetadataProvider* m = application.getMetadataProvider();
+        MetadataProvider* m = application.getMetadataProvider(false);
         Locker mlock(m);
 
         const PropertySet* relyingParty = nullptr;
         param=httpRequest.getParameter("entityID");
-        if (param)
+        if (m && param)
             relyingParty = application.getRelyingParty(m->getEntityDescriptor(MetadataProviderCriteria(application, param)).first);
         else
             relyingParty = &application;
 
         s << "<Application id='" << application.getId() << "' entityID='" << relyingParty->getString("entityID").second << "'/>";
 
-        m->outputStatus(s);
+        if (m)
+            m->outputStatus(s);
 
         s << "<Handlers>";
         vector<const Handler*> handlers;



More information about the commits mailing list