diff --git a/linux/debian/changelog b/linux/debian/changelog index 4449a56..c5aafb6 100644 --- a/linux/debian/changelog +++ b/linux/debian/changelog @@ -1,4 +1,10 @@ -ogagent (2.0.0-1) UNRELEASED; urgency=medium +ogagent (3.0.0-1) stable; urgency=medium + + * Ignore module provided in the URLs to the API + + -- OpenGnsys developers Mon, 31 Mar 2025 10:16:07 +0200 + +ogagent (2.0.0-1) stable; urgency=medium * EjecutarScript/ConsolaRemota: expect "scp" parameter encoded in base64 diff --git a/src/VERSION b/src/VERSION index 227cea2..4a36342 100644 --- a/src/VERSION +++ b/src/VERSION @@ -1 +1 @@ -2.0.0 +3.0.0 diff --git a/src/opengnsys/httpserver.py b/src/opengnsys/httpserver.py index e2b8be2..166f31c 100644 --- a/src/opengnsys/httpserver.py +++ b/src/opengnsys/httpserver.py @@ -30,6 +30,7 @@ """ +import os import json import ssl import threading @@ -77,8 +78,11 @@ class HTTPServerHandler(BaseHTTPRequestHandler): except Exception: params = {} + ## quick override because universities do not actually want the module to be extracted out of the URL + module = 'ogAdmClient' if os.path.exists ('/scripts/oginit') else 'opengnsys' + for v in self.service.modules: - if v.name == path[0]: # Case Sensitive!!!! + if v.name == module: # Case Sensitive!!!! return v, path[1:], params return None, path, params