Skip to content

Commit

Permalink
Update changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed Dec 30, 2024
1 parent ae75881 commit c658c52
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
linuxmuster-webui7 (7.2.72) lmn72-testing; urgency=medium

* Install Ajenti in a venv.

-- Arnaud Kientz <[email protected]> Mon, 30 Dec 2024 15:26:56 +0100

linuxmuster-webui7 (7.2.71) lmn72; urgency=medium

* [session] Don't filter samaccountname in stop exam.
Expand Down
2 changes: 1 addition & 1 deletion usr/lib/linuxmuster-webui/plugins/lmn_smbclient/davxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def make_propfind_response(self, items):
xml_href.text = href
self._make_item_propstat(xml_response, properties)

return etree.tostring(xml_root).decode()
return '<?xml version="1.0"?>\n' + etree.tostring(xml_root).decode()

def _make_item_propstat(self, xml_response, properties):
propstat_200 = etree.SubElement(xml_response, "{DAV:}propstat")
Expand Down
15 changes: 12 additions & 3 deletions usr/lib/linuxmuster-webui/plugins/lmn_smbclient/views/lmnwebdav.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,15 @@ def handle_api_webdav_delete(self, http_context, path=''):
@options(r'/webdav/(?P<path>.*)')
@endpoint(api=True, auth=False)
def handle_api_webdav_options(self, http_context, path=''):
http_context.add_header("Allow", "OPTIONS, GET, HEAD, PUT, DELETE, COPY, MOVE")
http_context.add_header("Allow", "MKCOL, PROPFIND")
http_context.add_header("Allow", "OPTIONS, GET, HEAD, PUT, DELETE, COPY, MOVE, MKCOL, PROPFIND")
http_context.add_header("DAV", "1, 3")
return ''

@options(r'/webdav')
@endpoint(api=True, auth=False)
def handle_api_webdav_bulk_options(self, http_context):
return self.handle_api_webdav_options(http_context, path='')

@propfind(r'/webdav/(?P<path>.*)')
@endpoint()
def handle_api_webdav_propfind(self, http_context, path=''):
Expand Down Expand Up @@ -330,6 +334,11 @@ def handle_api_webdav_propfind(self, http_context, path=''):

return response.make_propfind_response(items)

@propfind(r'/webdav')
@endpoint()
def handle_api_webdav_bulk_propfind(self, http_context):
return self.handle_api_webdav_propfind(http_context, path='')

@mkcol(r'/webdav/(?P<path>.*)')
@endpoint()
def handle_api_dav_create_directory(self, http_context, path=''):
Expand Down Expand Up @@ -513,4 +522,4 @@ def handle_api_webdav_get_qrcode(self, http_context):
"qrcode": base64.b64encode(buffer.getvalue()).decode('utf-8'),
"url": f"{env['wsgi.url_scheme']}://{env['HTTP_HOST']}/webdav",
"username": self.context.identity
}
}

0 comments on commit c658c52

Please sign in to comment.