History log of /dokuwiki/_test/tests/inc/ (Results 101 – 125 of 575)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
9bd7d62f08-Dec-2021 Andreas Gohr <andi@splitbrain.org>

Changed IndexAccessor names based on access method not content

b8ef19fe04-Dec-2021 Andreas Gohr <andi@splitbrain.org>

Add support to access multiple rows at once

When saving word indexs (w*.idx) often multiple words of the same length
will need to be accessed. This implements a new method that allows that
in an eff

Add support to access multiple rows at once

When saving word indexs (w*.idx) often multiple words of the same length
will need to be accessed. This implements a new method that allows that
in an efficient way.

Note: this removes the INDEX_MARK_DELETED mechanism to mark deleted
entries. Entries are now deleted using empty lines again. This makes the
batch handling much simpler. If a good reason exists that we should keep
it, it can be readded.

show more ...

ec5280ef04-Dec-2021 Andreas Gohr <andi@splitbrain.org>

rearranging the Index class structure

This is a first step at stuff at restructuring the indexing classes a
bit more.

Some background:

We have basically two different kind of index files:

a) RowI

rearranging the Index class structure

This is a first step at stuff at restructuring the indexing classes a
bit more.

Some background:

We have basically two different kind of index files:

a) RowIndex (like page.idx)

Each line in the index contains a single value. The line number is used
as primary ID. These files can be very large. Thus an index like that
should never be read into memory completely if it can be avoided.

b) TupleIndex (like i12.idx)

Each line contains a list of tuples. The files tend to be smaller so
loading them completely for search and replace is easier.

Since the the access is so completely different, I tried to model that
in the two different classes, basically moving the methods from
\dokuwiki\Search\AbstractIndex to the new classes.

While doing so, I tried to make the doc blocks, variable names and
interface easier to understand. I also added tests for each of the
methods.

The old code has not been touched yet. So these classes do not do
anything outside of tests currently.

show more ...

5e23cdb829-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

Update common_saveWikiText.test.php

allow 2nd to last revision check for normal save

b7b9a99d28-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

update unittest checkChangeLogAfterNormalSave

add routine for "save on top of external edit" assertions

8fb3ff9627-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

saveWikiText() unittest 5

5.1 create a page
5.2 external edit
5.3 edit and save
5.4 delete
5.5 create a page, second time
5.6 externally delete
5.7 create a page, third time

e21f947227-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

saveWikiText() unittest 3.3

second to last revision check after repeated external edit

92fda7f427-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

saveWikiText() unittest 4

4.1 externally create a page
4.2 edit and save
4.3 externally edit (file older than last rev)

3c425c4324-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

group assertions for saveWikiText()

ed1d7c8911-Nov-2021 Andreas Gohr <andi@splitbrain.org>

removed wrong test

See
https://github.com/splitbrain/dokuwiki/pull/3272#issuecomment-966367900
for reasoning

54611a7a11-Nov-2021 Andreas Gohr <andi@splitbrain.org>

fix fallback implementation for resolve_pageid()

When an empty link was given, the old implementation fell back to $ID,
this was handled incorrectly in the deprecated method.

01f039b611-Nov-2021 Andreas Gohr <andi@splitbrain.org>

simplify relative resolver and add tests

1c09787211-Nov-2021 Andreas Gohr <andi@splitbrain.org>

make resolveStartPage easier to understand

This dosn't really change the behaviour but makes the code easier to
grasp. A simple unit test has been added.

df60c5f906-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

Update common_saveWikiText.test.php

getRevisions() may return empty array when changelog file does not yet exist.

3d3f605606-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

rewrite unit test of saveWikiText

6e05e48e01-Nov-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

fix typo

e937d00424-Oct-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

typo

7866d57124-Oct-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

UnitTest of pageinfo(), saveWikiText()

ChangeLog creates early .change file, p_get_metadata() will get full "meta_last_change" entry. The current key in the revinfo need to be excluded prior to p_s

UnitTest of pageinfo(), saveWikiText()

ChangeLog creates early .change file, p_get_metadata() will get full "meta_last_change" entry. The current key in the revinfo need to be excluded prior to p_set_metadata() call.

show more ...

6146c10b24-Oct-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

UnitTest, ApiCore::pageInfo()

author is available from changelog::getRevisionInfo()

fb28524523-Oct-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

UnitTest around changelog, set correct time of page source

ChangeLog constructor will check the date of current page/media file to detect external edits via getCurrentRevisionInfo()

e32b1b0f01-Oct-2020 Syntaxseed <825423+syntaxseed@users.noreply.github.com>

Fix PHPUnit fatal errors compatibility with void.

e6a9d76f30-Sep-2020 Syntaxseed <825423+syntaxseed@users.noreply.github.com>

Method names with leading double underscore are reserved by PHP.

7f8f245616-Sep-2021 Andreas Gohr <andi@splitbrain.org>

move IXR XML RPC to composer dependency #1970

This is a monky patched version of kissyfrot/php-ixr until my PR has
been accepted upstream.

Plugins using the XML RPC client may need adjustments.


XmlRpcServer.test.php
/dokuwiki/composer.json
/dokuwiki/composer.lock
/dokuwiki/conf/interwiki.conf
/dokuwiki/inc/HTTP/HTTPClient.php
/dokuwiki/inc/Remote/IXR/Client.php
/dokuwiki/inc/Remote/XmlRpcServer.php
/dokuwiki/inc/lang/ca/lang.php
/dokuwiki/inc/lang/de-informal/backlinks.txt
/dokuwiki/inc/lang/de-informal/conflict.txt
/dokuwiki/inc/lang/de-informal/diff.txt
/dokuwiki/inc/lang/de-informal/lang.php
/dokuwiki/inc/lang/eo/lang.php
/dokuwiki/inc/lang/eo/onceexisted.txt
/dokuwiki/inc/lang/fr/denied.txt
/dokuwiki/inc/lang/fr/diff.txt
/dokuwiki/inc/lang/fr/lang.php
/dokuwiki/inc/lang/hy/backlinks.txt
/dokuwiki/inc/lang/pl/lang.php
/dokuwiki/inc/load.php
/dokuwiki/lib/exe/css.php
/dokuwiki/lib/exe/manifest.php
/dokuwiki/lib/images/email.svg
/dokuwiki/lib/images/external-link.svg
/dokuwiki/lib/images/interwiki.svg
/dokuwiki/lib/images/interwiki/amazon.de.svg
/dokuwiki/lib/images/interwiki/amazon.svg
/dokuwiki/lib/images/interwiki/amazon.uk.svg
/dokuwiki/lib/images/interwiki/callto.svg
/dokuwiki/lib/images/interwiki/doku.svg
/dokuwiki/lib/images/interwiki/google.svg
/dokuwiki/lib/images/interwiki/paypal.svg
/dokuwiki/lib/images/interwiki/phpfn.svg
/dokuwiki/lib/images/interwiki/skype.svg
/dokuwiki/lib/images/interwiki/tel.svg
/dokuwiki/lib/images/interwiki/user.svg
/dokuwiki/lib/images/interwiki/wp.svg
/dokuwiki/lib/images/interwiki/wpde.svg
/dokuwiki/lib/images/interwiki/wpes.svg
/dokuwiki/lib/images/interwiki/wpfr.svg
/dokuwiki/lib/images/interwiki/wpjp.svg
/dokuwiki/lib/images/interwiki/wpmeta.svg
/dokuwiki/lib/images/interwiki/wppl.svg
/dokuwiki/lib/images/unc.svg
/dokuwiki/lib/plugins/acl/lang/de-informal/lang.php
/dokuwiki/lib/plugins/authad/lang/ca/settings.php
/dokuwiki/lib/plugins/authad/lang/eo/lang.php
/dokuwiki/lib/plugins/authad/lang/pl/settings.php
/dokuwiki/lib/plugins/authldap/lang/ca/settings.php
/dokuwiki/lib/plugins/authpdo/lang/pl/settings.php
/dokuwiki/lib/plugins/config/lang/ca/lang.php
/dokuwiki/lib/plugins/config/lang/de-informal/lang.php
/dokuwiki/lib/plugins/config/lang/eo/lang.php
/dokuwiki/lib/plugins/config/lang/fr/lang.php
/dokuwiki/lib/plugins/config/lang/pl/lang.php
/dokuwiki/lib/plugins/extension/helper/extension.php
/dokuwiki/lib/plugins/extension/lang/fr/intro_search.txt
/dokuwiki/lib/plugins/extension/lang/pl/lang.php
/dokuwiki/lib/plugins/popularity/lang/fr/intro.txt
/dokuwiki/lib/plugins/usermanager/lang/fr/import.txt
/dokuwiki/lib/tpl/dokuwiki/css/_links.css
/dokuwiki/lib/tpl/dokuwiki/css/design.less
/dokuwiki/vendor/composer/ClassLoader.php
/dokuwiki/vendor/composer/InstalledVersions.php
/dokuwiki/vendor/composer/autoload_psr4.php
/dokuwiki/vendor/composer/autoload_static.php
/dokuwiki/vendor/composer/installed.json
/dokuwiki/vendor/composer/installed.php
/dokuwiki/vendor/kissifrot/php-ixr/.editorconfig
/dokuwiki/vendor/kissifrot/php-ixr/.gitignore
/dokuwiki/vendor/kissifrot/php-ixr/LICENSE.txt
/dokuwiki/vendor/kissifrot/php-ixr/README.md
/dokuwiki/vendor/kissifrot/php-ixr/composer.json
/dokuwiki/vendor/kissifrot/php-ixr/src/Client/Client.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Client/ClientMulticall.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Client/ClientSSL.php
/dokuwiki/vendor/kissifrot/php-ixr/src/DataType/Base64.php
/dokuwiki/vendor/kissifrot/php-ixr/src/DataType/Date.php
/dokuwiki/vendor/kissifrot/php-ixr/src/DataType/Value.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Exception/ClientException.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Exception/ServerException.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Message/Error.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Message/Message.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Request/Request.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Server/ClassServer.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Server/IntrospectionServer.php
/dokuwiki/vendor/kissifrot/php-ixr/src/Server/Server.php
bd53912414-Aug-2021 Andreas Gohr <andi@splitbrain.org>

:fire: fix the calculation of file permissons

Our config allows to set the values for `dmode` and `fmode` to allow
users to explicitly define which permissions directories and files
should have.

To

:fire: fix the calculation of file permissons

Our config allows to set the values for `dmode` and `fmode` to allow
users to explicitly define which permissions directories and files
should have.

To avoid unnessary chmod operations, we check the current umask to
compare what permissions files and directories would get witout our
intervention. If the result is already what the user wants, no chmods
will happen later on. Otherwise we set new configs called `dperm` and
`fperm` which will be used in chmod ops. This is done in
`init_creationmodes()`

When we created new directories, we used to pass the original `dmode`
config to `mkdir()`. The system will then apply the umask to that
`dmode`.

This means the resulting directory will *always* have different
permissions than `dmode`, *always* requiring a chmod operation.
That's silly.

**Breaking Change:** This patch removes the passing of `dmode` as
second parameter to all `mkdir` calls, making it default to `0700`
which is also what we test against in `init_creationmodes()`.

Plugins not relying on our `io_*` functions and do create their own
directories and which currenlty pass `dmode` to it need to be
adjusted to remove that second parameter.

Users may want to reapply the proper file permissions to their data
folder.

**Revert:** In 9fdcc8fcd87114ca59a1764a84d213a53c655c8c @movatica
introduced a change to `init_creationmodes()` that compared the umask
against `fmode` instead of `0666`. I merged it because it looked logical
when compared to the code for directories which compared against `dmode`
as described above. However we do not pass `fmode` to any file creation
methods (that's not possible).

The result is that all changes made in the `fmode` setting resulted
in the wrong permissions for newly created files as first reported in
https://forum.dokuwiki.org/d/19463-setting-fmode-not-working-as-intended

I'm unsure about the orginal motivation behind @movatica's change. The
"fix" however, is wrong.

**Tests:** This patch introduces an integration test that will check the
actual results of directory and file creations under various umask,
`dmode` and `fmode` settings.

show more ...


init_creationmodes.test.php
/dokuwiki/conf/interwiki.conf
/dokuwiki/inc/Search/Indexer.php
/dokuwiki/inc/Subscriptions/BulkSubscriptionSender.php
/dokuwiki/inc/init.php
/dokuwiki/inc/io.php
/dokuwiki/inc/lang/eo/lang.php
/dokuwiki/inc/lang/eo/onceexisted.txt
/dokuwiki/inc/lang/fr/denied.txt
/dokuwiki/inc/lang/fr/diff.txt
/dokuwiki/inc/lang/fr/lang.php
/dokuwiki/inc/lang/hy/backlinks.txt
/dokuwiki/inc/lang/pl/lang.php
/dokuwiki/lib/exe/css.php
/dokuwiki/lib/exe/manifest.php
/dokuwiki/lib/images/email.svg
/dokuwiki/lib/images/external-link.svg
/dokuwiki/lib/images/interwiki.svg
/dokuwiki/lib/images/interwiki/amazon.de.svg
/dokuwiki/lib/images/interwiki/amazon.svg
/dokuwiki/lib/images/interwiki/amazon.uk.svg
/dokuwiki/lib/images/interwiki/callto.svg
/dokuwiki/lib/images/interwiki/doku.svg
/dokuwiki/lib/images/interwiki/google.svg
/dokuwiki/lib/images/interwiki/paypal.svg
/dokuwiki/lib/images/interwiki/phpfn.svg
/dokuwiki/lib/images/interwiki/skype.svg
/dokuwiki/lib/images/interwiki/tel.svg
/dokuwiki/lib/images/interwiki/user.svg
/dokuwiki/lib/images/interwiki/wp.svg
/dokuwiki/lib/images/interwiki/wpde.svg
/dokuwiki/lib/images/interwiki/wpes.svg
/dokuwiki/lib/images/interwiki/wpfr.svg
/dokuwiki/lib/images/interwiki/wpjp.svg
/dokuwiki/lib/images/interwiki/wpmeta.svg
/dokuwiki/lib/images/interwiki/wppl.svg
/dokuwiki/lib/images/unc.svg
/dokuwiki/lib/plugins/authad/lang/eo/lang.php
/dokuwiki/lib/plugins/authad/lang/pl/settings.php
/dokuwiki/lib/plugins/authpdo/lang/pl/settings.php
/dokuwiki/lib/plugins/config/lang/eo/lang.php
/dokuwiki/lib/plugins/config/lang/fr/lang.php
/dokuwiki/lib/plugins/config/lang/pl/lang.php
/dokuwiki/lib/plugins/extension/lang/fr/intro_search.txt
/dokuwiki/lib/plugins/extension/lang/pl/lang.php
/dokuwiki/lib/plugins/popularity/lang/fr/intro.txt
/dokuwiki/lib/plugins/usermanager/lang/fr/import.txt
/dokuwiki/lib/tpl/dokuwiki/css/_links.css
/dokuwiki/lib/tpl/dokuwiki/css/design.less
1c7f665001-Aug-2021 Jan Baier <jan.baier@amagical.net>

Add support for SHA256 encrypted passwords

Enable detection of SHA256 hashes (prefixed with $5$) and allow to
use this hashing schemes in passwords.


auth_password.test.php
/dokuwiki/conf/interwiki.conf
/dokuwiki/inc/PassHash.php
/dokuwiki/inc/lang/eo/lang.php
/dokuwiki/inc/lang/eo/onceexisted.txt
/dokuwiki/inc/lang/fr/denied.txt
/dokuwiki/inc/lang/fr/diff.txt
/dokuwiki/inc/lang/fr/lang.php
/dokuwiki/inc/lang/hy/backlinks.txt
/dokuwiki/inc/lang/pl/lang.php
/dokuwiki/lib/exe/css.php
/dokuwiki/lib/exe/manifest.php
/dokuwiki/lib/images/email.svg
/dokuwiki/lib/images/external-link.svg
/dokuwiki/lib/images/interwiki.svg
/dokuwiki/lib/images/interwiki/amazon.de.svg
/dokuwiki/lib/images/interwiki/amazon.svg
/dokuwiki/lib/images/interwiki/amazon.uk.svg
/dokuwiki/lib/images/interwiki/callto.svg
/dokuwiki/lib/images/interwiki/doku.svg
/dokuwiki/lib/images/interwiki/google.svg
/dokuwiki/lib/images/interwiki/paypal.svg
/dokuwiki/lib/images/interwiki/phpfn.svg
/dokuwiki/lib/images/interwiki/skype.svg
/dokuwiki/lib/images/interwiki/tel.svg
/dokuwiki/lib/images/interwiki/user.svg
/dokuwiki/lib/images/interwiki/wp.svg
/dokuwiki/lib/images/interwiki/wpde.svg
/dokuwiki/lib/images/interwiki/wpes.svg
/dokuwiki/lib/images/interwiki/wpfr.svg
/dokuwiki/lib/images/interwiki/wpjp.svg
/dokuwiki/lib/images/interwiki/wpmeta.svg
/dokuwiki/lib/images/interwiki/wppl.svg
/dokuwiki/lib/images/unc.svg
/dokuwiki/lib/plugins/authad/lang/eo/lang.php
/dokuwiki/lib/plugins/authad/lang/pl/settings.php
/dokuwiki/lib/plugins/authpdo/lang/pl/settings.php
/dokuwiki/lib/plugins/config/lang/eo/lang.php
/dokuwiki/lib/plugins/config/lang/fr/lang.php
/dokuwiki/lib/plugins/config/lang/pl/lang.php
/dokuwiki/lib/plugins/extension/lang/fr/intro_search.txt
/dokuwiki/lib/plugins/extension/lang/pl/lang.php
/dokuwiki/lib/plugins/popularity/lang/fr/intro.txt
/dokuwiki/lib/plugins/usermanager/lang/fr/import.txt
/dokuwiki/lib/tpl/dokuwiki/css/_links.css
/dokuwiki/lib/tpl/dokuwiki/css/design.less

12345678910>>...23