Update to 2024-05-02 00:01

This commit is contained in:
Daniel Berteaud 2024-05-02 00:01:40 +02:00
parent f51f6fd9bc
commit 649b1c50ee
5 changed files with 2 additions and 21 deletions

View File

@ -5,12 +5,12 @@
# You can set it to a number or a simple string (no special chars)
kimai_id: 1
# Kimai version to deploy
kimai_version: '2.15.0'
kimai_version: '2.16.0'
# URL of the archive
kimai_archive_url: https://github.com/kevinpapst/kimai2/archive/refs/tags/{{ kimai_version }}.tar.gz
# Expected sha256 of the archive
kimai_archive_sha256: f61c50d3d426922bc6533768ccfa51b428b82506c8fbade4534ff0daf6ccd334
kimai_archive_sha256: c2c6d87e1099fc43b01f82a90c3a3523fe5da8aa180b0f0130e32c3e2e3820ef
# Directory where kimai will be installed
kimai_root_dir: /opt/kimai_{{ kimai_id }}
# Should ansible handle upgrades or only initial install

View File

@ -1,11 +0,0 @@
--- src/API/Authentication/ApiRequestMatcher.php.orig 2024-04-29 13:28:50.876284724 +0200
+++ src/API/Authentication/ApiRequestMatcher.php 2024-04-29 13:29:14.366580152 +0200
@@ -27,7 +27,7 @@
}
// let's use this firewall if a Bearer token is set in the header
- if ($request->headers->has('Authorization')) {
+ if ($request->headers->has('Authorization') && $request->headers->get('Authorization') != "") {
return true;
}

View File

@ -59,12 +59,6 @@
environment:
COMPOSER_ALLOW_SUPERUSER: 1
- name: Fix empty Authorization header
patch:
src: kimai_empty_authorization.patch
dest: "{{ kimai_root_dir }}/app/src/API/Authentication/ApiRequestMatcher.php"
backup: true
tags: kimai
- import_tasks: ../includes/webapps_create_mysql_db.yml

View File

@ -7,4 +7,3 @@ kimai_packages:
- acl
- zstd
- git
- patch

View File

@ -7,4 +7,3 @@ kimai_packages:
- acl
- zstd
- git
- patch