diff --git a/README.md b/README.md index 67c8025e7eccb7a351181eca7b0c09a6016f4b0f..dfe08b16bbd4993c40756d6c08e0704195ee7f2d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master) # Python Unified Device Interface -Current stable version: 9.3.1 +Current stable version: 9.3.2 ## Installation 1. Install the WZL-UDI package via pip @@ -58,6 +58,9 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) ## Recent changes +**9.3.2** - 2024-03-14 + - fixed semantic name resolution (again) + **9.3.1** - 2024-03-14 - fixed semantic name resolution diff --git a/setup.py b/setup.py index 85c2d036b5128dbdf7e2a9ec760f83208ddc783a..1169d5df9e927885f9ea5d88e9b90f595984a783 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup(name='wzl-udi', - version='9.3.1', + version='9.3.2', url='https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python', project_urls={ "Bug Tracker": "https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python/-/issues", diff --git a/src/http/server.py b/src/http/server.py index 0b56d8e689c5077d0cbdec186b6b4d915e119599..cfe5c2bde54dca94acbdc90f483ef2c8b5b21b19 100644 --- a/src/http/server.py +++ b/src/http/server.py @@ -216,7 +216,9 @@ class HTTPServer(object): item, status = None, 200 elif resource_type == ResourceType.metadata or resource_type == ResourceType.data: - item, resource_type = self.root.resolve_semantic_path(request.url.parts[-1]) + semantic_name = request.url.parts[-2] if request.url.parts[-1] == '' else request.url.parts[-1] + + item, resource_type = self.root.resolve_semantic_path(semantic_name) else: assert resource_type == ResourceType.element uuids = HTTPServer.parse_uuids(request)