29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-07-01 01:23:43 +00:00
Commit Graph

2438 Commits

Author SHA1 Message Date
Hannes Papenberg
1c0eda32d9
Optimizing import statements (#39984) 2023-03-08 00:12:14 -05:00
heelc29
95994d6aa2
[4.3] fix namespace captcha unit tests (#39940)
* [4.3] fix namespace captcha unit tests

* fix year copyright

joomla/joomla-cms#39729

* fix php doc indent
2023-02-25 15:52:50 +01:00
Olivier Buisard
bfd0190632
Joomla! 4.3.0 Beta 3 2023-02-18 05:31:31 -05:00
Allon Moritz
9e68b74d48
Converts the captcha plugins to service providers (#39729) 2023-02-18 09:43:27 -05:00
Allon Moritz
9d73496bb7
Converts local filesystem plugin to service providers (#39642) 2023-02-17 12:25:54 -05:00
Olivier Buisard
126ac970fb
Joomla! 4.3.0 Beta 1 2023-02-04 11:02:30 -05:00
Olivier Buisard
ef8b0318fe Merge branch '4.2-dev' into upmerge-2023-02-03
# Conflicts:
#	administrator/components/com_admin/script.php
#	administrator/components/com_finder/src/Indexer/Query.php
#	administrator/components/com_finder/src/Indexer/Token.php
#	administrator/language/en-GB/install.xml
#	administrator/language/en-GB/langmetadata.xml
#	administrator/manifests/files/joomla.xml
#	administrator/manifests/packages/pkg_en-GB.xml
#	api/language/en-GB/install.xml
#	api/language/en-GB/langmetadata.xml
#	build/build-modules-js/javascript/build-com_media-js.es6.js
#	components/com_tags/src/View/Tag/HtmlView.php
#	installation/language/en-GB/langmetadata.xml
#	installation/src/Response/JsonResponse.php
#	language/en-GB/install.xml
#	language/en-GB/langmetadata.xml
#	libraries/namespacemap.php
#	libraries/src/Application/WebApplication.php
#	libraries/src/Cache/CacheStorage.php
#	libraries/src/Form/Field/CalendarField.php
#	libraries/src/Form/Field/CaptchaField.php
#	libraries/src/Form/Field/MediaField.php
#	libraries/src/Form/Field/PasswordField.php
#	libraries/src/Form/Field/RulesField.php
#	libraries/src/Form/Field/SqlField.php
#	libraries/src/Helper/TagsHelper.php
#	libraries/src/Installer/Adapter/PluginAdapter.php
#	libraries/src/User/User.php
#	libraries/src/Version.php
#	plugins/content/loadmodule/loadmodule.php
2023-02-03 19:04:22 -05:00
Allon Moritz
1e7527b60e
Fixes various code style issues and integrate PHP CS Fixer into drone (#39745)
* Integrate PHP CS Fixer into drone

* Fix code base

* more verbose

* Ignore psr12 scripts

* Test

* revert

* Ignore also rebase script

* Align array and variable declarations

* Merges

* Fix the no break comment starting with upper case

* Fix alignment in arrays

* Article controller alignment
2023-01-31 11:20:05 +01:00
tatankat
5ebb39b35f
[4.x] Fix LDAP over SSL (#37962)
* [4.x] Fix LDAP over SSL

* More precise WHERE clause and a bit code style.

* Select correct encryption type with uri ldaps://

and fix element

* Phase 1 convert BRANCH to PSR-12

* Phase 2 convert BRANCH to PSR-12

* remove leftover codestyle error

* Use more correct namings, based on Thunderbird

* rename DB updates for newer Joomla version

* Renamed SQL files to update on latest release

* Enable the test fixed by this PR

* added certificate configuration options

* Some cleaning

---------
2023-01-30 13:42:13 +01:00
Astrid
569f8a531b
Add tests to UserList.cy.js (#39723)
* wip

* Update tests/cypress/integration/administrator/components/com_users/UserList.cy.js

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>

* Update tests/cypress/integration/administrator/components/com_users/UserList.cy.js

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>

* Update tests/cypress/integration/administrator/components/com_users/UserList.cy.js

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>

---------

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2023-01-29 12:16:10 +01:00
Allon Moritz
05210a3fc1
Introduce an Ldap factory in the authentication plugin (#39661) 2023-01-27 20:44:36 -05:00
heelc29
b9730d52dc
[4.3] Convert missing files to PSR-12 code style (#39197)
Co-authored-by: Harald Leithner <leithner@itronic.at>
Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2023-01-27 15:15:17 +01:00
tatankat
c720afab89
Facilitate running tests (#38775)
* Facilitate running tests

* Fix error in doc and improve browseability

* Skip LDAP tests if host is empty

* Fix README numbering

* PR is merged, direct binding is fixed

* Fix default ldap configuration
2023-01-26 13:08:33 +01:00
Brian Teeman
a830ef9c46
codeception readme (#38575) 2023-01-22 12:26:56 +01:00
Olivier Buisard
995a8e8822
Joomla! 4.3.0 Alpha 3 2023-01-21 10:33:27 -05:00
Olivier Buisard
c608616220 Merge branch '4.2-dev' into upmerge-2023-01-20
# Conflicts:
#	administrator/components/com_admin/script.php
#	administrator/components/com_categories/src/Model/CategoryModel.php
#	administrator/components/com_config/src/Model/ApplicationModel.php
#	administrator/components/com_config/src/Model/ComponentModel.php
#	administrator/components/com_fields/src/Model/FieldModel.php
#	administrator/components/com_fields/src/Model/GroupModel.php
#	administrator/components/com_finder/src/Indexer/Query.php
#	administrator/components/com_finder/src/Service/HTML/Filter.php
#	administrator/components/com_finder/src/Service/HTML/Query.php
#	administrator/components/com_joomlaupdate/src/Model/UpdateModel.php
#	administrator/components/com_languages/src/Model/StringsModel.php
#	administrator/components/com_menus/tmpl/items/modal.php
#	administrator/components/com_tags/src/Table/TagTable.php
#	administrator/components/com_users/src/Model/LevelsModel.php
#	administrator/components/com_users/src/Model/MailModel.php
#	administrator/components/com_users/src/Model/UserModel.php
#	administrator/modules/mod_quickicon/src/Helper/QuickIconHelper.php
#	components/com_config/src/Controller/ConfigController.php
#	components/com_content/src/Model/ArchiveModel.php
#	components/com_finder/src/Controller/SuggestionsController.php
#	components/com_tags/src/Model/TagModel.php
#	components/com_tags/src/Service/Router.php
#	components/com_tags/src/View/Tag/FeedView.php
#	components/com_tags/src/View/Tag/HtmlView.php
#	components/com_users/src/Controller/ProfileController.php
#	components/com_users/src/Controller/UserController.php
#	composer.lock
#	installation/src/Model/SetupModel.php
#	layouts/joomla/form/field/text.php
#	libraries/namespacemap.php
#	libraries/src/Component/Router/Rules/NomenuRules.php
#	libraries/src/Form/Field/TextField.php
#	libraries/src/Helper/ModuleHelper.php
#	libraries/src/MVC/Model/ListModel.php
#	libraries/src/Object/CMSObject.php
#	libraries/src/Table/ContentType.php
#	plugins/authentication/cookie/src/Extension/Cookie.php
#	plugins/behaviour/versionable/src/Extension/Versionable.php
#	plugins/editors/tinymce/src/Field/TinymcebuilderField.php
#	plugins/extension/namespacemap/src/Extension/NamespaceMap.php
#	plugins/quickicon/extensionupdate/src/Extension/Extensionupdate.php
#	plugins/quickicon/overridecheck/src/Extension/OverrideCheck.php
#	plugins/quickicon/privacycheck/privacycheck.php
#	plugins/user/joomla/joomla.php
2023-01-20 20:32:33 -05:00
Allon Moritz
8e559f97fe
Converts the authentication plugins to service providers (#39624) 2023-01-19 18:50:41 -05:00
Allon Moritz
10f250f418
Changes the code base to short array syntax (#39616) 2023-01-14 10:54:47 +01:00
Olivier Buisard
0d34c964fe Merge branch '4.2-dev' into upmerge-2023-01-02
# Conflicts:
#	.drone.yml
#	build/build-modules-js/javascript/build-com_media-js.es6.js
#	composer.lock
#	package-lock.json
#	package.json
#	plugins/editors/tinymce/tinymce.xml
#	plugins/quickicon/overridecheck/src/Extension/OverrideCheck.php
#	plugins/system/privacyconsent/privacyconsent.php
#	templates/system/build_incomplete.html
#	templates/system/fatal-error.html
#	templates/system/incompatible.html
2023-01-02 19:17:08 -05:00
Brian Teeman
3cdd305d9f
[4.2] typos/grammar (#39432)
I was testing a script using the joomla repo and found these typos/grammar errors.

The basic english language rule is that if you want to write "a something" and the "something" begins with a vowel then it changes to "an"

This also applies even if the "something" _sounds_ like it begins with a vowel.

As these are all corrections in comments testing is just by review
2022-12-17 23:38:41 +01:00
Brian Teeman
ab0f296655
[4.3] fix typo (#39357)
In the new unit test got the ldap plugin there is a typo. This PR fixes that.

code review only
2022-12-05 10:43:31 +00:00
Olivier Buisard
348bb80b6b
Joomla! 4.3.0 Alpha 1 2022-11-18 13:53:41 -05:00
Allon Moritz
86abd7d7f2
[4.3] Convert confirm consent plugin to services (#38445) 2022-11-10 14:31:22 -05:00
Olivier Buisard
feabd967f8 Merge branch '4.2-dev' into upmerge-2022-11-09
# Conflicts:
#	administrator/components/com_media/src/View/Media/HtmlView.php
#	administrator/language/en-GB/install.xml
#	administrator/language/en-GB/langmetadata.xml
#	administrator/manifests/files/joomla.xml
#	administrator/manifests/packages/pkg_en-GB.xml
#	api/language/en-GB/install.xml
#	api/language/en-GB/langmetadata.xml
#	installation/language/en-GB/langmetadata.xml
#	language/en-GB/install.xml
#	language/en-GB/langmetadata.xml
#	libraries/src/Cache/Cache.php
#	libraries/src/Version.php
#	plugins/system/actionlogs/actionlogs.php
#	plugins/system/cache/src/Extension/Cache.php
#	templates/system/build_incomplete.html
#	templates/system/fatal-error.html
#	templates/system/incompatible.html
2022-11-09 21:10:35 -05:00
Brian Teeman
c88deee588
[4.2] tabs to spaces (#39145) 2022-11-05 12:51:25 +01:00
Harald Leithner
4d18050869
Remove unsed javascript testing framework karma (#39037) 2022-10-22 18:07:39 +02:00
Hannes Papenberg
6f6d110c05
Optimizing cypress/drone setup (#39019)
* Optimizing cypress/drone setup

* Fix

* More fix

* Updating joomla-cypress to 0.0.16

* Updating cypress to 10.10.0

* Cleaning up drone

* Fixing drone.yml

* Cypress: Catch uncaught exceptions
2022-10-22 13:59:27 +02:00
Hannes Papenberg
f340734748
[4.3] Add a CLI installation for Joomla (#38325)
* Initial code for a CLI installation

* First PoC

* Lots of cleanup

* Finalising CLI installer

* Deleting install folder after installation

* Codestyle

* Fixing path of API test install

* Update installation/INSTALL

Co-authored-by: Brian Teeman <brian@teeman.net>

* Codestyle

* Docblocks

* Wording

* Fixing db prefix for API tests

* Fixing Postgres API tests

* Further fixes to API tests

* Some cleanup

* Fixing API tests one last time

* Docblock formatting

* Resorting fields

* Improving progress indicator messages

* Disable remote DB check for CLI installation

* Fixing check

* Introducing _JCLI_INSTALLATION constant for DB check

* Hiding password entries on CLI

* hide admin psw

* show db_prefix

show db_prefix in interacting mode too

* Adding check for configuration.php present

* Allowing for empty db password

* Deleting installation folder only when not in dev mode

* Codestyle

* Converting strings to ini file

* Update installation/language/en-GB/joomla.cli.ini

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/src/Console/InstallCommand.php

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/src/Console/InstallCommand.php

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/src/Console/InstallCommand.php

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/src/Console/InstallCommand.php

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/src/Console/InstallCommand.php

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/language/en-GB/joomla.cli.ini

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/language/en-GB/joomla.cli.ini

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/language/en-GB/joomla.cli.ini

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/language/en-GB/joomla.cli.ini

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/language/en-GB/joomla.cli.ini

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/language/en-GB/joomla.cli.ini

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update installation/INSTALL

Co-authored-by: Brian Teeman <brian@teeman.net>

* Further bugfixes

* Cleaning up available RDBMS options

* Catching error when connecting to database

* Removing false db type

* Fixing case of attribute

* Removing unnecessary methods from CliInstallationApplication

* Fixing string

* Sorting translation strings for CLI and adding shortened error message

* Fixing docblocks and use statement

* Adding Allons suggestions

* Fixing use statements

* Using language object from app

* Remove unnecessary method

* Fixing language object

* Removing . at the end of sentences since they are followed by a : anyway

* Use - instead of _ in the parameters

* Fixing api tests

Co-authored-by: Brian Teeman <brian@teeman.net>
Co-authored-by: Nicola Galgano <optimus4joomla@gmail.com>
Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2022-10-21 16:26:07 +02:00
Olivier Buisard
b55890c87c Merge branch '4.2-dev' into upmerge-2022-10-16
# Conflicts:
#	administrator/components/com_tags/src/Table/TagTable.php
#	administrator/language/en-GB/com_tags.ini
2022-10-16 16:37:00 -04:00
Allon Moritz
73abc86f6a
[4.2] Do not checkout a record when the user is not logged in (#38796)
* Do not checkout a record when the user is not logged in

* do not load early

* correct return

* add test
2022-10-15 10:40:34 +02:00
Olivier Buisard
61eafc5dd9 Merge branch '4.2-dev' into upmerge-2022-30-9
# Conflicts:
#	administrator/language/en-GB/install.xml
#	administrator/language/en-GB/langmetadata.xml
#	administrator/manifests/files/joomla.xml
#	administrator/manifests/packages/pkg_en-GB.xml
#	api/language/en-GB/install.xml
#	api/language/en-GB/langmetadata.xml
#	installation/language/en-GB/langmetadata.xml
#	language/en-GB/install.xml
#	language/en-GB/langmetadata.xml
#	libraries/src/Version.php
2022-09-30 18:18:45 -04:00
Hannes Papenberg
f9e657cb79
[4.3] Cypress: Improving Joomla installation (#38857) 2022-09-28 14:32:46 +02:00
Brian Teeman
99e177df56
[4.2] Spelling s/successfull/successful (#38842)
error: `Sucessfull` should be `Successful`
2022-09-27 22:39:55 +02:00
Olivier Buisard
451749304d Merge branch '4.2-dev' into upmerge-2022-09-16 2022-09-16 17:55:27 -04:00
tatankat
8a87326f65
Add ldap tests (#38593) 2022-09-15 16:06:40 +02:00
Harald Leithner
a637095ff5
Reorder cypress tests 2022-09-11 15:26:26 +02:00
Hannes Papenberg
4e80016aa0
Changing name of install spec (#38736) 2022-09-11 10:22:15 +02:00
tatankat
aab2add42a
Fix for cp cannot create regular file: File exists (#38728)
based on https://unix.stackexchange.com/a/116281
2022-09-10 08:42:48 +02:00
Olivier Buisard
450c8aeba8 Merge branch '4.2-dev' into upmerge-2022-09-03
# Conflicts:
#	.gitignore
#	administrator/language/en-GB/install.xml
#	administrator/language/en-GB/langmetadata.xml
#	administrator/manifests/files/joomla.xml
#	administrator/manifests/packages/pkg_en-GB.xml
#	api/language/en-GB/install.xml
#	api/language/en-GB/langmetadata.xml
#	installation/language/en-GB/langmetadata.xml
#	language/en-GB/install.xml
#	language/en-GB/langmetadata.xml
#	libraries/src/Version.php
2022-09-03 22:02:12 -04:00
Hannes Papenberg
f13f4f93d7
Removing obsolete PHP setting (#38528) 2022-08-31 17:38:10 +01:00
Harald
f34c47bb56 Merge branch '4.2-dev' into 4.3-dev 2022-08-28 15:24:05 +02:00
Allon Moritz
0805889bfb
[4.3] Activate all unit tests as default (#38421) 2022-08-25 11:34:08 -04:00
Hannes Papenberg
2aef1693f6
[4.3] Switching from Codeception to Cypress for tests (#38422) 2022-08-24 21:30:50 +02:00
Brian Teeman
3074a998b1
Update README.md (#38574)
add missing information
2022-08-24 16:31:40 +02:00
conseilgouz
aa1f62a006
[4.2 RC1] Feed display module not working (#38312) 2022-08-19 14:22:12 +02:00
Roland Dalmulder
26b38b5b77
Joomla! 4.2.1 Release Candidate 1 2022-08-18 22:27:07 +02:00
Allon Moritz
1ce74dc82f
[4.2] Change the db calls back to the getDbo (#38506)
* Change the db calls back to the getDbo

* add test
2022-08-18 10:59:07 +02:00
Roland Dalmulder
5dece6700b
Bump to version 4.2.0-beta3 2022-07-05 17:46:47 +02:00
Allon Moritz
fd3dbc91c6
[4.2] Convert the checkfiles plugin to service provider (#38072)
* redo

* Update plugins/task/checkfiles/checkfiles.xml

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update plugins/task/checkfiles/src/Extension/Checkfiles.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* translate

* cs

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>
2022-07-03 14:01:25 +02:00
Allon Moritz
dd5fb682c2
[4.2] Use the app language translate function in plugins (#38203)
* Revert the translate function in the CMSPlugin class

* remove tests
2022-07-03 09:56:56 +02:00