From dee98c9c1e3fb1f9cc1fec416b7bd98d9c65ccbf Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 17 Nov 2024 10:20:37 +0800 Subject: [PATCH 1/2] bugfix --- ahserver/__init__.py | 0 ahserver/auth_api.py | 0 ahserver/baseProcessor.py | 0 ahserver/configuredServer.py | 0 ahserver/dbadmin.py | 0 ahserver/dsProcessor.py | 0 ahserver/error.py | 0 ahserver/filedownload.py | 0 ahserver/filestorage.py | 0 ahserver/functionProcessor.py | 0 ahserver/globalEnv.py | 0 ahserver/llmProcessor.py | 0 ahserver/myTE.py | 0 ahserver/p2p_middleware.py | 0 ahserver/processorResource.py | 0 ahserver/proxyProcessor.py | 0 ahserver/restful.py | 0 ahserver/serverenv.py | 0 ahserver/sqldsProcessor.py | 0 ahserver/uriop.py | 0 ahserver/url2file.py | 0 ahserver/utils.py | 0 ahserver/version.py | 0 ahserver/websocketProcessor.py | 0 ahserver/xlsxData.py | 0 ahserver/xlsxdsProcessor.py | 0 26 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 ahserver/__init__.py mode change 100755 => 100644 ahserver/auth_api.py mode change 100755 => 100644 ahserver/baseProcessor.py mode change 100755 => 100644 ahserver/configuredServer.py mode change 100755 => 100644 ahserver/dbadmin.py mode change 100755 => 100644 ahserver/dsProcessor.py mode change 100755 => 100644 ahserver/error.py mode change 100755 => 100644 ahserver/filedownload.py mode change 100755 => 100644 ahserver/filestorage.py mode change 100755 => 100644 ahserver/functionProcessor.py mode change 100755 => 100644 ahserver/globalEnv.py mode change 100755 => 100644 ahserver/llmProcessor.py mode change 100755 => 100644 ahserver/myTE.py mode change 100755 => 100644 ahserver/p2p_middleware.py mode change 100755 => 100644 ahserver/processorResource.py mode change 100755 => 100644 ahserver/proxyProcessor.py mode change 100755 => 100644 ahserver/restful.py mode change 100755 => 100644 ahserver/serverenv.py mode change 100755 => 100644 ahserver/sqldsProcessor.py mode change 100755 => 100644 ahserver/uriop.py mode change 100755 => 100644 ahserver/url2file.py mode change 100755 => 100644 ahserver/utils.py mode change 100755 => 100644 ahserver/version.py mode change 100755 => 100644 ahserver/websocketProcessor.py mode change 100755 => 100644 ahserver/xlsxData.py mode change 100755 => 100644 ahserver/xlsxdsProcessor.py diff --git a/ahserver/__init__.py b/ahserver/__init__.py old mode 100755 new mode 100644 diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py old mode 100755 new mode 100644 diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/configuredServer.py b/ahserver/configuredServer.py old mode 100755 new mode 100644 diff --git a/ahserver/dbadmin.py b/ahserver/dbadmin.py old mode 100755 new mode 100644 diff --git a/ahserver/dsProcessor.py b/ahserver/dsProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/error.py b/ahserver/error.py old mode 100755 new mode 100644 diff --git a/ahserver/filedownload.py b/ahserver/filedownload.py old mode 100755 new mode 100644 diff --git a/ahserver/filestorage.py b/ahserver/filestorage.py old mode 100755 new mode 100644 diff --git a/ahserver/functionProcessor.py b/ahserver/functionProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/globalEnv.py b/ahserver/globalEnv.py old mode 100755 new mode 100644 diff --git a/ahserver/llmProcessor.py b/ahserver/llmProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/myTE.py b/ahserver/myTE.py old mode 100755 new mode 100644 diff --git a/ahserver/p2p_middleware.py b/ahserver/p2p_middleware.py old mode 100755 new mode 100644 diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py old mode 100755 new mode 100644 diff --git a/ahserver/proxyProcessor.py b/ahserver/proxyProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/restful.py b/ahserver/restful.py old mode 100755 new mode 100644 diff --git a/ahserver/serverenv.py b/ahserver/serverenv.py old mode 100755 new mode 100644 diff --git a/ahserver/sqldsProcessor.py b/ahserver/sqldsProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/uriop.py b/ahserver/uriop.py old mode 100755 new mode 100644 diff --git a/ahserver/url2file.py b/ahserver/url2file.py old mode 100755 new mode 100644 diff --git a/ahserver/utils.py b/ahserver/utils.py old mode 100755 new mode 100644 diff --git a/ahserver/version.py b/ahserver/version.py old mode 100755 new mode 100644 diff --git a/ahserver/websocketProcessor.py b/ahserver/websocketProcessor.py old mode 100755 new mode 100644 diff --git a/ahserver/xlsxData.py b/ahserver/xlsxData.py old mode 100755 new mode 100644 diff --git a/ahserver/xlsxdsProcessor.py b/ahserver/xlsxdsProcessor.py old mode 100755 new mode 100644 From 0b1e5c35ac944ed3fd919fd0294f2808fc46e34b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 17 Nov 2024 20:07:35 +0800 Subject: [PATCH 2/2] bugfix --- ahserver/filestorage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ahserver/filestorage.py b/ahserver/filestorage.py index d7f05e3..b2854df 100755 --- a/ahserver/filestorage.py +++ b/ahserver/filestorage.py @@ -88,6 +88,10 @@ class FileStorage: p = os.path.abspath(os.path.join(self.root,path)) return p + def webpath(self, path): + if path.startswith(self.root): + return path[len(self.root):] + def _name2path(self,name, userid=None): name = os.path.basename(name) paths=[191,193,197,97]