Commit Graph

5052 Commits

Author SHA1 Message Date
Andreas Gohr 821c061a6c move ldap debug statement
See https://forum.dokuwiki.org/d/22179-dokuwiki-and-openldap-login-failing-with-no-srch/4

This was probably the result of a messy merge.
2024-04-16 09:24:32 +02:00
Andreas Gohr 0f0ec3b471
Merge pull request #4220 from dokuwiki/csp-nonce
CSP nonce handling
2024-04-10 15:17:33 +02:00
Philip Gabrielsen 25df03c8b9 translation update 2024-04-05 14:41:44 +02:00
splitbrain 3f8a89e5a2 🤖 Rector and PHPCS fixes 2024-03-27 13:12:48 +00:00
Andreas Gohr 4c1ed9da81 usermanager: initialize auth sytem later
This prevents header errors when inspecting the CLI component in
plugin.php
2024-03-27 14:06:17 +01:00
Christoph 8ff79746cf translation update 2024-03-06 14:06:15 +01:00
Schplurtz le Déboulonné 5824a753c1 translation update 2024-03-04 12:16:14 +01:00
Donatas Glodenis 6595e6c8fa Updated Lithuanian translation 2024-02-21 22:30:39 +02:00
Andreas Gohr e0aa67753c move JS detection to default script
This moves the little helper that will remove a "no-js" class from the
header element as soon as JavaScript is detected from the dokuwiki
template to our default inline script that also initializes the JSINFO
array.

This ensures that this inline script is run with a nonce (if available).
See #3788 for more infor
2024-02-21 15:51:21 +01:00
Andreas Gohr 71808afbef fix logo aspect ratio and printing. fixes #4187 2024-02-07 09:30:45 +01:00
Mr_Fang e02c158cf0 translation update 2024-02-04 14:46:15 +01:00
mod cd9495f418 translation update 2024-02-04 07:51:56 +01:00
splitbrain cc47c50fe3 🤖 Rector and PHPCS fixes 2024-02-02 14:08:33 +00:00
Andreas Gohr e6380ba37d replace LESS library. fixes #4088
This replaces the abandoned fork with my own fork at splitbrain/lesserphp

That fork has been cleaned up somewhat and the issues in #4088 should be
fixed.
2024-02-02 15:03:49 +01:00
Marek Adamski fba8735a0d translation update 2024-01-30 17:36:14 +01:00
Andreas Gohr fda46cf58c
Merge pull request #4173 from dokuwiki-translate/lang_update_804_1706597818
Translation update (ru)
2024-01-30 10:23:37 +01:00
Impeck 99a964338e translation update 2024-01-30 08:01:38 +01:00
Gerrit Uitslag f4d0426bce show update message in Extension Manager if available 2024-01-30 00:14:36 +01:00
Phy 0175e14a9f
Merge pull request #4167 from dokuwiki-translate/lang_update_800_1706385011
Translation update (pt)
2024-01-28 14:11:27 -05:00
CodyMaster007 e502773d57 translation update 2024-01-28 16:41:39 +01:00
JPdroid d160d64abc translation update 2024-01-27 20:56:15 +01:00
fiwswe a0d0304579 return false in getUserData in case of errors
The interface contract for the method getUserData does not allow an empty array to be returned.
2024-01-26 14:39:13 +01:00
Schplurtz le Déboulonné 23048d5301 translation update 2024-01-25 03:51:55 +01:00
chuachua 4d41588b14 translation update 2024-01-13 13:06:15 +01:00
Andreas Gohr e33e723e8b
Merge pull request #4134 from dokuwiki/betterapi
Complete API Refactoring
2024-01-12 19:24:11 +01:00
k04an fc53e55227 translation update 2024-01-12 09:16:52 +01:00
Andreas Gohr 0ebd3bf191
Merge pull request #4138 from dokuwiki/issue4099
correctly escape comments in user names. fixes #4099
2024-01-10 12:29:10 +01:00
Marek Adamski 30e2689b0b translation update 2024-01-09 17:16:53 +01:00
Andreas Gohr b346670ea2 correctly escape comments in user names. fixes #4099 2024-01-09 14:32:22 +01:00
Andreas Gohr 0a034b36c9 do not pass referrer on api retry. fixes #3824
Our cache system ignores purge requests that have a referrer. The idea
is to avoid permanent recaching because a purge link was posted
somewhere.
However for the retry link in the extension manager we actually want the
link to work. So this patch supresses the referrer for that link.
2024-01-08 16:00:32 +01:00
Andreas Gohr f11d30144b More resilence when talking to plugin repo fixes #4135
When the plugin repository answers but returns non-data (as can happen
when the database isn't available, as we have learned yesterday), the
extension manager still tried to deserialize the data.

This changes all communication from php-serialized to JSON encoded data.
When JSON-decoding fails, the data is ignored and an error message is
shown. Failure data like this will not be cached.
2024-01-08 15:54:34 +01:00
Andreas Gohr d48c2b252a API: code style fixes 2024-01-07 13:41:20 +01:00
Andreas Gohr 9866f25121 wild stab at fixing a failing test
RemoteApiTest::testCreateUserFailAccess failed on github but worked for
me. Seems to be a caching problem in auth_ismanager()
2024-01-07 13:41:19 +01:00
Andreas Gohr cad27e80a9 API: move user related tests to usermanager plugin 2024-01-07 13:41:19 +01:00
Andreas Gohr 7625c9953d OpenAPI docs: fix error code deduplication 2024-01-07 13:41:19 +01:00
Andreas Gohr d3856637cf API: clean up error codes
Error codes are now extracted from API core and printed on the OpenAPI
overview page. This makes it easier to see what is in use.

Error messages have been cleaned up, some new codes have been assigned.

Some errors have been removed. Eg. it is fine to iterate a media
namespace you don't have read access to. The result will either be empty
or contain files from lower namespaces that you *do* have access to.
2024-01-07 13:41:19 +01:00
Andreas Gohr e4e3d43949 moved OpenAPI generator to correct namespace
added missing doc blocks
2024-01-07 13:41:19 +01:00
Andreas Gohr 0caa81c700 API: move create/delete user calls to usermanager
This only moves the calls. A proper refactoring of the user manager
would make sense:

1) introduce a helper component covering the basic operations including
   proper error signalling using Exceptions
2) refactor admin and cli components to make use of 1)
3) make the operations in 1) available via the API
2024-01-07 13:41:19 +01:00
Andreas Gohr cd0c7c3ac3 add title to api explorer 2024-01-07 13:41:19 +01:00
Andreas Gohr 0c6e917818 OpenAPI Explorer basically works 2024-01-07 13:41:19 +01:00
Andreas Gohr 01052543c4 Adjust ACL remote component to new system
There is no need to implement getMethods anymore. All data comes from
reflection
2024-01-07 13:41:19 +01:00
Andreas Gohr 535851891f another set of api tests 2024-01-07 13:41:19 +01:00
Andreas Gohr 5ee967131b attempt to model the JSON-RPC API as openapi spec
Failed because positional parameters are not really possible to model.
Named parameter could be introduces when our minimum requirement is
switched to PHP8+
2024-01-07 13:41:19 +01:00
Schplurtz le Déboulonné 0143b6968f translation update 2024-01-03 23:26:14 +01:00
Marek Adamski 0f7e41ab9a translation update 2024-01-03 11:41:22 +01:00
Andreas Gohr df9e4a18ef automatically prune old logs
This adds a new configuration that allows to define how many logfiles
per facility should be kept. Old files are pruned daily via the task
runner.
2023-12-22 19:30:31 +01:00
Martin Růžička d277f97966 translation update 2023-12-08 14:41:22 +01:00
Zhenzhe Huang c7f1640fbb translation update 2023-12-06 15:41:54 +01:00
Hoàng Vịnh c60f399943 translation update 2023-12-05 05:01:14 +01:00
Andreas Gohr f0319d45ca
Merge pull request #4113 from dokuwiki/jsonrpc-conformity
JSONRPC Standards
2023-11-29 16:09:34 +01:00