29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-20 11:05:08 +00:00
Commit Graph

49911 Commits

Author SHA1 Message Date
Nicola Galgano
b5f7142ad8
[cypress] + com_cache (#43633)
* cy.cache

* Update tests/System/integration/administrator/components/com_cache/Default.cy.js

Co-authored-by: Heiko Lübbe <github@heikol.de>

* 4.4-only

---------

Co-authored-by: Heiko Lübbe <github@heikol.de>
Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2024-06-20 09:05:35 +02:00
Nicola Galgano
fcaeff8a27
[cypress] + com_checkin (#43662)
* cy-checkin

* cs

* less

* cs

* Update tests/System/integration/administrator/components/com_checkin/Default.cy.js

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

* Update tests/System/integration/administrator/components/com_checkin/Default.cy.js

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

---------

Co-authored-by: Brian Teeman <brian@teeman.net>
2024-06-19 08:08:19 +02:00
Heiko Lübbe
22beae0041
[cypress] System Tests fixes #43620, fixes #43622 (#43656)
- fixes issue #43620 - if no 'rm' command is available on Windows
- fixes issue #43622 - if cmsPath is set
- custom task 'deleteFolder' can also delete a file and ignores
  if the file does not exist -> exactly what we need
- once PR is merged i will create the next PR to rename 'deleteFolder' as 'deleteRelativePath'
  and also 'writeFile' as 'writeRelativeFile' to better represent the functions
2024-06-17 09:07:04 +02:00
Alex B
f53b619809
Removed newline character from comment. (#43596)
A very simple PR just to remove an unnecessary newline character in a comment.
2024-06-14 21:03:52 +02:00
David Jardin
67cd90ebcd
[4.4] Remove unused cassiopeia inline event handler (#43586)
* remove unused inline event handler

* remove other instances of onload handler

* remove obsolete media attributes

---------
2024-06-14 19:52:45 +02:00
Christiane Maier-Stadtherr
684731228b
[a11y] Fix missing aria-label in pagenavigation (#43600)
* fix missing areialabel in pagenavigation

* Better aria-label

* loadlanguage

* Update plugins/content/pagenavigation/tmpl/default.php

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

---------
2024-06-14 18:00:34 +02:00
Peter Martin
1f03f33534
[4.4] Small spelling correction in dock blocks (#43628)
* Small spelling correction in dock blocks

* also fixed double

* also fixed double to-s

* also fixed double for

---------
2024-06-14 12:31:49 +02:00
Heiko Lübbe
e7e20cd84a
System Tests README extended (#43642)
* System Tests README extended

- Extended with software architecture pictures and
  new folder tests/System/images for used architecture diagrams, see README.md there
- Described software architecture as overview and second time in detail
- Detailed and updated the existing documentation
- Added hints for testing and development
- Added troubleshooting

* added images folder to exclude

* Update tests/System/README.md - Better English

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

* Update tests/System/README.md - Better English

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

* Update tests/System/README.md - Better English

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

* Update tests/System/README.md - Better English

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

* Update tests/System/README.md - Better English

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

* Update tests/System/images/README.md – British English spelling

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

* corrected exclude list to tests/System/images

* one paragraph reworded after the suggestion

---------

Co-authored-by: Brian Teeman <brian@teeman.net>
2024-06-14 09:40:31 +02:00
Nicola Galgano
0ec839e79a
[cypress] mod_whosonline (#43513)
* whosonline

* cs
2024-06-14 09:04:37 +02:00
Nicola Galgano
bbf8ac1cb7
[cypress] + com_languages (#43519)
* com_languages

* typo

* silly lint

* Update tests/System/integration/administrator/components/com_languages/Installed.cy.js

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>

* Update tests/System/integration/administrator/components/com_languages/Installed.cy.js

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>

* Update tests/System/integration/administrator/components/com_languages/Installed.cy.js

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>

* Update tests/System/integration/administrator/components/com_languages/Installed.cy.js

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>

---------

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2024-06-13 16:00:47 +02:00
Nicola Galgano
8ae503946d
[cypress] nested set table #__menu (#43456)
* nested set table

* nested set table

* cs

* cs

* cs

* cs

* mainmenu

* before

* drone

* feedback

* feedback

* chain

* async

* cs

* cs

* return

* easier2read

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>

---------

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2024-06-13 15:01:01 +02:00
Heiko Lübbe
6c4503327c
Consider file permissions when writing configuration in system tests (#43466)
* Fix for issue #43465 writing configuration.php

Fix for issue #43465 'Cypress System Tests fail when writing configuration.php'
. remember the original file permission
. set 644
. write file
. restore original file permission

additional:
. writing file to ${Cypress.env('cmsPath')}/configuration.php` and no more to 'configuration.php'
. error handle file is not existing

* typo

* updated system tests README

* corrected task names

* Update tests/System/README.md

of course, thank you for checking

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

* deleted failure handler config_setParameter()

deleted failure handler for readFile as it is not needed, tested with chmod 0, Cypress fails with clear reason:

	CypressError: `cy.readFile("./configuration.php")` failed while trying to read the file at the following path:
	`.../43465/joomla-cms/configuration.php`
	The following error occurred:
	> "EACCES: permission denied, open '/Users/hlu/Desktop/no_backup/43465/joomla-cms/configuration.php'"

* typo

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

* typo

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

* chain the then()-calls

Chaining the then()-calls for a not so deeply nested code source
looks catchy - thank Allon for the recommendation

* adopted code formatting for better readability

* fixing lint:js errors

- deleted console.log statements
- used const for never changing value
- refactored file mask to not use bitwise operation '&'

* fixed lint:testjs errors

* Better fix for configuration.php permission issue

Working with the code when fighting with the drone shows that a `chmod`
was already implemented in `writeFile()`. Following changes with this commit:
- Only using `chmod` method synchronously
- Replaced setting directory mode to setting file mode before writing
- Setting file mode only if the file exists
- Having final file mode as parameter with default 0o444
- Using 0o444 as default file mode and not hard-wired 0o777
- The methods `getFilePermissions()` and `changeFilePermissions()` created for this PR earlier are deleted.

Enhancement of the `tests/System/README.md` for troubleshooting three-user-problem in having
Cypress running user, web server running user and `root` user.

This commitment has been extensively tested in various combinations. Every test contains:
- Checking error before
- Doing the patch
- Running installation twice and running overall test suite

Tests are:
- macOS 14.5 Sonoma, local with apache & Cypress same user, branch 4.4-dev
  - error before `> EACCES: permission denied, open './configuration.php'`
- Docker, one container with joomla and one container with Cypress, using `root` users inside containers
  - no error before, but `configuration.php` is 777
  - after the patch `configuration.php` is 444 inside container and shown 644 on host
  - tested four times, branches 4.4-dev, 5.1-dev, 5.2-dev and 6.0-dev
- Ubuntu 24.04 LTS local installation, one non-root users running Cypress and
  another non-root user running Apache, branch 4.4-dev
  - error before `> EACCES: permission denied, open './configuration.php'`
  - need to use `sudo` and need to set `umask 0`, see troubleshooting
- Windows 11 Pro, Laragon with Cmder, branch 4.4-dev
  - error before `> EPERM: operation not permitted, open 'C:\laragon\www\joomla-cms\configuration.php'`

All tests are successful:
- running `Installation.cy.js` twice, checking `configuration.php` 444 and params are set
- running complete system test suite without errors

* configuration.php CMS path relative && umask 0

- corrected mistake task writeFile was used with cmsPath + 'configuration.php'
- extended writeFile to set process umask 0
  - to prevent the 3-user-problem == no need to set umask 0 in sudo anymore

This commitment has been tested in various combinations. Every test contains:
- Checking error before
- Doing the patch
- Running Installation.cy.js only and running overall test suite

Tests are:
- Docker environment with drone images, root running Cypress and www-data running Apache, branch 4.4-dev
  - no error before, but /tests/www/cmysql/configuration.php has 777
- Ubuntu 24.04 LTS local installation, one non-root user running Cypress and
  another non-root user running Apache, branch 4.4-dev
  - error before `> EACCES: permission denied, open './configuration.php'`
  - need to use `sudo`, see troubleshooting (umask 0 is no more needed)
- Windows 11 Pro, Laragon with Cmder, branch 4.4-dev
  - error before `> EPERM: operation not permitted, open 'C:\laragon\www\joomla-cms\configuration.php'`
  - found out that on the second run cy.exec('rm configuration.php') does not work under Windows
    - deleted file manually and i will create an issue afterwards to avoid enlarging this one
- macOS 14.5 Sonoma, local with apache & Cypress same user, branch 4.4-dev
  - error before `> EACCES: permission denied, open './configuration.php'`

All tests are successful:
- running `Installation.cy.js`, checking `configuration.php` 444 and params are set
- running complete system test suite without errors

---------

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Brian Teeman <brian@teeman.net>
Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2024-06-07 14:02:36 +02:00
Heiko Lübbe
788e2d1730
Update tests/README.md (#43487)
- fixed tests/System/README.md broken link 
- renamed Cypress to System tests to have unique naming in documentation
- extended a little bit and linked Cypress.io
2024-05-31 08:36:41 +02:00
Nicola Galgano
200ca9c11d
[cypress] + com_plugins (#43544)
* com_plugins

* order change

* close

* typo
2024-05-30 14:51:44 +02:00
Nicola Galgano
6c658ad870
[cypress] + com_installer/languages (#43527)
* languages

* 1less
2024-05-30 14:00:38 +02:00
Martin Kopp
4b690a0ba6
Revert to dev
Signed-off-by: Martin Kopp <kopp05@infotech.ch>
2024-05-28 22:40:30 +02:00
Martin Kopp
5304d8ed90
Joomla! 4.4.5 Stable 2024-05-28 15:25:16 +02:00
Fedir Zinchuk
500cce3e7c
[4.4] Fix finder helper addContentType duplicate entry for key 'title' (#43053) 2024-05-20 23:11:40 +02:00
joomla-translation-bot
c5b8617da7
[4.x] Translation Update (#43488)
* Language update

* Language update

* Language update
2024-05-19 12:31:13 +02:00
Hannes Papenberg
8bd67859ba
Fixing API authentication issue with Apache with PHP as cgi/fastCGI (#42593) 2024-05-17 18:45:18 +02:00
Riekelt Brands
2964ee6e57
MediaHelper: proper check if file is an image (#42105) (#43345) 2024-05-17 15:31:35 +02:00
David Jardin
866e6f196b
Backport 5.x fix (#43445) 2024-05-17 11:22:17 +02:00
Tobias Zulauf
1e84e516f5
Remove zero-24 from the CODEOWNERS file (#43482) 2024-05-16 18:06:40 +02:00
Benjamin Trenkle
638df97b31
[4.4] Fix permission issues on certain ISP (#43473)
* Fix permission issues on certain ISP

* Add comments

---------
2024-05-16 08:50:11 +02:00
Robert Deutz
9dd4c952c0
update content for Contributing.md (#43478)
* update content

* Update .github/CONTRIBUTING.md

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

* Update .github/CONTRIBUTING.md

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

* Update .github/CONTRIBUTING.md

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

---------

Co-authored-by: Brian Teeman <brian@teeman.net>
2024-05-15 19:36:14 +02:00
Brian Teeman
92cad14940
[4.x] MFA Backup Codes [a11y] [UI] (#43450)
* fix

* Update components/com_users/tmpl/methods/list.php

Co-authored-by: Quy <quy@nomonkeybiz.com>

---------
2024-05-14 13:44:30 +02:00
Nicola Galgano
8ea9c2649a
Translate key in CSV export (#43464) 2024-05-14 08:58:19 +02:00
AlterBrains
e11bd13a7e
Update InputFilter.php (#43377) 2024-05-08 18:26:55 +02:00
Harald Leithner
5768496747
[4.4] Fix ordering for files in the template view (#43335)
* Fix ordering for files in the template view

* Rewrite getDirectoryTree function using early return and uksort

* CS

* Use natural sorting instead of string comparison

---------
2024-05-08 09:36:36 +02:00
Hannes Papenberg
5f8305f0c9
[4.4] Contact VCF: Properly assign value to array (#43353)
* Contact VCF: properly assign to array

* Update components/com_contact/src/View/Contact/VcfView.php

---------
2024-05-06 19:42:17 +02:00
Robert Deutz
14746b7f85
[4.4] Pin version MySql Version in Tests to 8.0 (#43420) 2024-05-05 15:25:37 +02:00
Heiko Lübbe
301bdf2b28
Fix System test com_privacy consent (#42523) (#43400)
After discussion with Alikon the fix is simple 10 milliseconds waiting time
after changing sorting order. The five failures were reproducable in 4.4-dev
and ifixed and it is expected it works for 5.1 the same way.
2024-04-30 10:20:31 +02:00
conseilgouz
19a8f56414
[4.4] Vote : aggregateRating error in Google Rich Results (#42934)
* [4.4] Vote : aggregateRating error in Google Rich Results

* Update rating.php

* Update rating.php

Replace tabs by spaces

* Update plugins/content/vote/tmpl/rating.php

Co-authored-by: jsanders <j53.sanders@gmail.com>

* Update rating.php

remove itemscope redefinition

---------
2024-04-27 17:38:32 +02:00
Hannes Papenberg
26234f6336
Backendmenu: Fixing import of presets for menu items (ajaxbadge, dashboard) (#43189) 2024-04-27 15:58:08 +02:00
Hannes Papenberg
27ffec3090
Adminmenu: Fix export for child items (#43178) 2024-04-27 13:18:37 +02:00
Hannes Papenberg
886611d4e7
Adminmenu: Toggle for duplicate menus (#43192) 2024-04-27 11:34:07 +02:00
Allon Moritz
d1bef331ea
[4.4] Determine the next task run date with the timezone of the site (#43259)
* Determine the next task run date with the timezone of the site

* cs

---------
2024-04-26 20:26:08 +02:00
Brian Teeman
079047c366
[4.4] plugins\filesystem\local\src\Adapter\LocalAdapter.php (#43274)
* Update LocalAdapter.php

* Update LocalAdapter.php

---------
2024-04-26 18:44:58 +02:00
Chris Davenport
7b48c5b7a2
[4.4] Untranslated string for warning message in update:extensions:check CLI (#43208)
* Untranslated string for warning message in update:extensions:check CLI

* Move language load to command.

---------
2024-04-26 17:44:52 +02:00
Dimitris Grammatikogiannis
bd6ca75b4e
[4.4] [bug] Media manager misbehaves on files with capitalized extensions (#43336)
* a

* b

* Update LocalAdapter.php
2024-04-26 16:10:26 +02:00
Martin Kopp
43293d0603
Revert to dev
Signed-off-by: Martin Kopp <kopp05@infotech.ch>
2024-04-16 22:22:44 +02:00
Martin Kopp
92f2ffb3c6
Joomla! 4.4.4 Stable 2024-04-14 12:13:18 +02:00
Martin Kopp
45adb61f83
Revert to dev
Signed-off-by: Martin Kopp <kopp05@infotech.ch>
2024-04-09 22:00:26 +02:00
Martin Kopp
42cc96d2b6
Joomla! 4.4.4 Rc 2 2024-04-09 21:23:46 +02:00
Hannes Papenberg
6966a8c78d
Drone: Switching to key authentication for artifacts (#43236) 2024-04-09 09:59:21 +02:00
Hannes Papenberg
b8d58e7fa8
Mfa: Setting timezone for dates in profile (#43191) 2024-04-05 11:02:07 +02:00
Stefan Wendhausen
aa7a1c7ff0
alpha-sorting (#43180) 2024-04-05 11:01:17 +02:00
Denitz
bcd0e83eb7
Fix phpdoc in FeatureEvent (#42587)
* Update FeatureEvent.php

* Update administrator/components/com_content/src/Event/Model/FeatureEvent.php

Co-authored-by: Quy <quy@nomonkeybiz.com>

---------
2024-04-05 11:00:46 +02:00
Martin Kopp
896fa4b553
Revert to dev
Signed-off-by: Martin Kopp <kopp05@infotech.ch>
2024-04-02 18:00:17 +02:00
Martin Kopp
a7b4aecff8
Joomla! 4.4.4 Rc 1 2024-03-28 20:47:32 +01:00