Skip to content

Commit

Permalink
HOTFIX: workaround for davrods bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tedgin committed Feb 14, 2024
1 parent be20c77 commit 42b39f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion irods/tests/webdav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
with_items:
- /etc/httpd
- /tmp/cert
- /tmp/key

- name: Test place TLS certificate files
ansible.builtin.stat:
Expand All @@ -195,6 +196,7 @@
with_items:
- /etc/httpd/testing.crt
- /tmp/cert/testing.crt
- /tmp/key/testing.key

- name: Retrieve TLS certificate chain file contents
ansible.builtin.slurp:
Expand Down Expand Up @@ -257,7 +259,7 @@
-----END CERTIFICATE-----
'
- name: Test place TLS key
- name: Verify TLS key contents
ansible.builtin.debug:
msg: TODO implement

Expand Down
7 changes: 7 additions & 0 deletions irods/webdav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
UseCanonicalName On
# XXX - Workaround for https://github.com/UtrechtUniversity/davrods/issues/19
<If "%{REQUEST_METHOD} == 'PROPFIND'">
SetOutputFilter Sed
OutputSed "s,\([^:]\)//,\1/,g"
</If>
# XXX - ^^^
# Redirect dav-anon to dav
<LocationMatch "/dav-anon/{{ _irods_zone_name }}/((commons/(community_released|cyverse_curated)|home|projects)(/.*)?)" >
Require expr %{REQUEST_URI} !~ m#^/dav-anon/{{ _irods_zone_name }}/home(/[^/]*/?)?$#
Expand Down
3 changes: 2 additions & 1 deletion testing/ansible-tester/inventory/group_vars/webdav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ webdav_purgeman_irods_password: password

webdav_tls_chain: "{{ tls_root_cert }}"
webdav_tls_chain_file: /etc/httpd/testing.crt
webdav_tls_key_file: "{{ webdav_tls_cert_file }}"
webdav_tls_cert: "{{ tls_cert_default }}"
webdav_tls_cert_file: /tmp/cert/testing.crt
webdav_tls_key: "{{ tls_key_default }}"
webdav_tls_key_file: /tmp/key/testing.key

0 comments on commit 42b39f7

Please sign in to comment.