[Libreoffice-commits] online.git: loolwsd/DocumentStoreManager.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Mar 14 03:07:18 UTC 2016


 loolwsd/DocumentStoreManager.hpp |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

New commits:
commit 8d108a03b8b8eea6fbd7bf2a750fa780b442e483
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sat Mar 12 18:10:53 2016 -0500

    loolwsd: childId -> jailId
    
    Change-Id: I56af542e6cf1d9cfd493b5033441d2c6a9edee2f
    Reviewed-on: https://gerrit.libreoffice.org/23214
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/DocumentStoreManager.hpp b/loolwsd/DocumentStoreManager.hpp
index d8fca30..68ecdae 100644
--- a/loolwsd/DocumentStoreManager.hpp
+++ b/loolwsd/DocumentStoreManager.hpp
@@ -56,8 +56,8 @@ public:
 
     static
     std::shared_ptr<DocumentStoreManager> create(const std::string& uri,
-                                        const std::string& jailRoot,
-                                        const std::string& childId)
+                                                 const std::string& jailRoot,
+                                                 const std::string& jailId)
     {
         std::string decodedUri;
         Poco::URI::decode(uri, decodedUri);
@@ -75,22 +75,23 @@ public:
             throw std::runtime_error("Invalid URI.");
         }
 
-        return create(uriPublic, jailRoot, childId);
+        return create(uriPublic, jailRoot, jailId);
     }
 
     static
     std::shared_ptr<DocumentStoreManager> create(
                                         const Poco::URI& uriPublic,
                                         const std::string& jailRoot,
-                                        const std::string& childId)
+                                        const std::string& jailId)
     {
-        Log::info("Creating DocumentStoreManager with uri: " + uriPublic.toString() + ", jailRoot: " + jailRoot + ", childId: " + childId);
+        Log::info("Creating DocumentStoreManager with uri: " + uriPublic.toString() +
+                  ", jailRoot: " + jailRoot + ", jailId: " + jailId);
 
         // The URL is the publicly visible one, not visible in the chroot jail.
         // We need to map it to a jailed path and copy the file there.
 
-        // user/doc/childId
-        const auto jailPath = Poco::Path(JailedDocumentRoot, childId);
+        // user/doc/jailId
+        const auto jailPath = Poco::Path(JailedDocumentRoot, jailId);
 
         Log::info("jailPath: " + jailPath.toString() + ", jailRoot: " + jailRoot);
 
@@ -113,7 +114,7 @@ public:
             uriJailed = Poco::URI(Poco::URI("file://"), localPath);
         }
 
-        auto document = std::shared_ptr<DocumentStoreManager>(new DocumentStoreManager(uriPublic, uriJailed, childId, storage));
+        auto document = std::shared_ptr<DocumentStoreManager>(new DocumentStoreManager(uriPublic, uriJailed, jailId, storage));
 
         return document;
     }


More information about the Libreoffice-commits mailing list