Commit Graph

4492 Commits

Author SHA1 Message Date
Joe Nahmias ee6cdb3565 picodb(mssql): support all MSSQL pdo drivers
For MSSQL make all connection attributes optional.
Handle differing DB connection params based on driver used.
connection can be made via ODBC DSN or server/hostname
username/password can be embedded in DSN definition or simply
omitted and single-signon will be attempted.
2022-10-23 16:19:50 -07:00
Joe Nahmias bb7f8b4621 picodb(mssql): recognize 2627 and 23000 as dup key errors 2022-10-23 16:19:50 -07:00
Joe Nahmias 104f492301 picodb(mssql): fix retrieval of DB version on MSSQL 2022-10-23 16:19:50 -07:00
Joe Nahmias 66d55e5be0 picodb(mssql): fix implementation of getLastId() on MSSQL 2022-10-23 16:19:50 -07:00
Joe Nahmias 37bc859df5 picodb(mssql): teach picodb to use TOP for limits on MSSQL 2022-10-23 16:19:50 -07:00
Joe Nahmias 5493c2997e picodb(mssql): fix disable/enable foreign keys by removing GO 2022-10-23 16:19:50 -07:00
Joe Nahmias 0047efe803 picodb(mssql): fix conditional creation of schema table 2022-10-23 16:19:50 -07:00
Joe Nahmias 55c80aa090 picodb(mssql): escape closing brackets within identifiers
Ref: https://docs.microsoft.com/en-us/sql/t-sql/functions/quotename-transact-sql
2022-10-23 16:19:50 -07:00
Joe Nahmias 427abb9961 picodb: include error code in SQLException error message 2022-10-23 16:19:50 -07:00
Joe Nahmias 64f589f759 picodb: Table::buildSelectQuery() should default columns to current table 2022-10-23 16:19:50 -07:00
Joe Nahmias e3b9b2ce8f picodb: when logging SQL, include params as well 2022-10-23 16:19:50 -07:00
Joe Nahmias bff5c15544 fix(picodb): do not include useless OFFSET 0 clauses
throws an error on MSSQL
2022-10-23 16:19:50 -07:00
Christoph Reiter 0b8a270bbb tests: port assertEquals() with delta to assertEqualsWithDelta()
assertEquals() in phpunit 9.5 no longer takes a delta parameter
and has assertEqualsWithDelta() as a replacement. This means
float get compared without a delta atm, and a recent phpunit
release (9.5.25) has made float comparisons stricter resulting in
test suite errors such as:

1) SubtaskTimeTrackingModelTest::testCalculateSubtaskTime
Total spent
Failed asserting that 3.3000000000000003 matches expected 3.3.
tests/units/Model/SubtaskTimeTrackingModelTest.php:186

This replaces all assertEquals() calls that pass a delta value
with assertEqualsWithDelta().
2022-10-10 18:57:22 -07:00
Frédéric Guillot 2d4ee932da Update ChangeLog 2022-10-09 15:55:33 -07:00
Frédéric Guillot 669b5c7e2e Avoid deprecation warning when the task description is null 2022-10-09 15:44:25 -07:00
greyaz 1664f4c304
Update zh_CN translations 2022-10-09 15:17:10 -07:00
dependabot[bot] a1bdca646a Bump symfony/stopwatch from 5.4.5 to 5.4.13
Bumps [symfony/stopwatch](https://github.com/symfony/stopwatch) from 5.4.5 to 5.4.13.
- [Release notes](https://github.com/symfony/stopwatch/releases)
- [Changelog](https://github.com/symfony/stopwatch/blob/6.1/CHANGELOG.md)
- [Commits](https://github.com/symfony/stopwatch/compare/v5.4.5...v5.4.13)

---
updated-dependencies:
- dependency-name: symfony/stopwatch
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 17:42:07 -07:00
Frédéric Guillot bc673cf6dc Set explicitly the time picker control to select 2022-09-28 20:55:29 -07:00
Frédéric Guillot 11edef20d2 No internal link creation on subtask to task conversion if language is not English 2022-09-28 20:28:16 -07:00
Marco van Duijvenbode 55a3b242bf
Move version.txt to app folder 2022-09-28 19:42:35 -07:00
dependabot[bot] c6b5f4ac5f Bump phpunit/phpunit from 9.5.24 to 9.5.25
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.24 to 9.5.25.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.24...9.5.25)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 16:09:39 -07:00
greyaz 8443f60748 Update translations.php
some translations of colors are wrong
2022-09-21 17:33:08 -07:00
irdc 4b76bc5b32
Use a HMAC to sign and validate CSRF tokens, instead of generating random ones and storing them in the session data
* Use a HMAC to sign and validate CSRF tokens, instead of generating random
ones and storing them in the session data. Reduces number of writes to
sessions table and fixes kanboard issue #4942.
* Added missing CSRF check for starting/stopping subtask timers.

Co-authored-by: Willemijn Coene <willemijn@irdc.nl>
2022-09-17 17:23:41 -07:00
Frédéric Guillot f68996b9c7 Remove assertion to avoid flaky test 2022-09-16 18:08:32 -07:00
Pascal Rigaux 829c47ee60 fix re-opening dropdown-menu
This fixes the following case:

1. open the dropdown menu of a "Filename"
2. click elsewhere on the page to close the dropdown menu
   (or click on a submenu element)
3. try to open the same dropdown menu => it fails the first time (since it does not have the "dropdown-menu" class)
2022-09-16 18:05:53 -07:00
greyaz edf31ab20b Update TaskAssignDueDateOnMoveColumn.php 2022-09-15 21:08:59 -07:00
greyaz b7761b05e1 More precise zh_CN translations 2022-09-15 20:30:50 -07:00
Frédéric Guillot 29e434b4d6 Update Croatian translations 2022-09-13 20:17:47 -07:00
Rafael de Camargo 3c5cafc8eb Fixes warning when project description is null
Fixes #5059
2022-09-13 19:37:28 -07:00
dependabot[bot] adf7430b72 Bump phpunit/phpunit from 9.5.23 to 9.5.24
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.23 to 9.5.24.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.23...9.5.24)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 15:33:30 -07:00
Frédéric Guillot 75e4e85d0f Updated ChangeLog 2022-09-04 22:19:39 -07:00
Frédéric Guillot 2aad3ec03e Regenerate Composer auto-loader 2022-09-04 22:13:36 -07:00
Frédéric Guillot 4f3fcfee75 Update ChangeLog 2022-09-04 22:12:19 -07:00
Frédéric Guillot f3966c99fc Open SVG files in browser 2022-09-04 16:40:05 -07:00
Frédéric Guillot d7a4b59db3 Open videos in browser 2022-09-04 16:12:14 -07:00
Frédéric Guillot 1c8b278116 Open Ogg file attachments in browser 2022-09-04 15:51:27 -07:00
Frédéric Guillot 84c7692710 Update jQuery to latest stable version 2022-09-04 15:08:20 -07:00
Frédéric Guillot fa229bf03f Update Docker image to PHP 8.1 2022-09-04 15:02:56 -07:00
Frédéric Guillot 7d0647cbed Rename master to main in Makefile 2022-09-04 13:51:07 -07:00
dependabot[bot] 776cbe6830 Bump phpunit/phpunit from 9.5.21 to 9.5.23
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.21 to 9.5.23.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.21...9.5.23)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 17:34:58 -07:00
Frédéric Guillot b433519686 Rename default branch from master to main 2022-08-11 21:57:19 -07:00
dependabot[bot] ce6c4dfc67 Bump symfony/finder from 5.4.8 to 5.4.11
Bumps [symfony/finder](https://github.com/symfony/finder) from 5.4.8 to 5.4.11.
- [Release notes](https://github.com/symfony/finder/releases)
- [Changelog](https://github.com/symfony/finder/blob/6.1/CHANGELOG.md)
- [Commits](https://github.com/symfony/finder/compare/v5.4.8...v5.4.11)

---
updated-dependencies:
- dependency-name: symfony/finder
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 19:32:30 -07:00
Jack Williams c53bee4a08
Translate subtask status on demand
Fixes #4476
2022-07-11 20:45:06 -07:00
Tomas Dittmann 6308ac41cd add projectoverview document template hook 2022-07-10 17:03:18 -07:00
dependabot[bot] 43e168b721 Bump phpunit/phpunit from 9.5.20 to 9.5.21
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.20 to 9.5.21.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.20...9.5.21)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-27 17:42:51 +02:00
Eskiso 4112f55219 Added more extensions to FileHelper - Fixes #5024
Added more video, music, code and excel extensions to show a more correct icon on the attachments.
2022-06-27 17:40:29 +02:00
Eskiso aac2f93264 Updated PT translations. 2022-06-27 17:36:56 +02:00
korlikiangel fe42db9ea5
Update pl_PL translations 2022-06-02 15:34:22 +02:00
Frédéric Guillot db08ea531e Update Docker image to Alpine 3.16 2022-05-23 20:52:54 -07:00
dependabot[bot] 13882fe556 Bump alpine from 3.15.4 to 3.16.0
Bumps alpine from 3.15.4 to 3.16.0.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 20:48:26 -07:00