https://issues.shibboleth.net/jira/browse/SSPCPP-612
authorScott Cantor <cantor.2@osu.edu>
Mon, 19 Jan 2015 21:04:46 +0000 (21:04 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 19 Jan 2015 21:04:46 +0000 (21:04 +0000)
shibsp/handler/impl/DiscoveryFeed.cpp

index ad567a1..4b9c438 100644 (file)
@@ -143,7 +143,7 @@ DiscoveryFeed::~DiscoveryFeed()
         // Anything left will be orphaned, but that shouldn't happen too often.
         time_t now = time(nullptr);
         while (!m_feedQueue.empty() && now - m_feedQueue.front().second > 120) {
-            string fname = m_dir + '/' + m_feedQueue.front().first;
+            string fname = m_dir + '/' + m_feedQueue.front().first + ".json";
             remove(fname.c_str());
             m_feedQueue.pop();
         }
@@ -295,7 +295,7 @@ void DiscoveryFeed::feedToFile(const Application& application, string& cacheTag)
 
     // Clean up any old files.
     while (m_feedQueue.size() > 1 && (now - m_feedQueue.front().second > 120)) {
-        string fname = m_dir + '/' + m_feedQueue.front().first;
+        string fname = m_dir + '/' + m_feedQueue.front().first + ".json";
         remove(fname.c_str());
         m_feedQueue.pop();
     }