Commit Graph
6420 Commits
Author SHA1 Message Date
renovate[bot] f7a44afdfd Update dependency friendsofphp/php-cs-fixer to v3.95.4 2026-06-04 08:51:28 +00:00
Adam DaleyandCopilot Autofix powered by AI 7055d10ecf Validate extension uninstall paths and harden core-module checks (#3718)
* 🔒 Validate extension uninstall paths

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Use InformationException in docblock

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-04 09:41:57 +01:00
Adam DaleyandCopilot Autofix powered by AI 26a48f8eb3 Restore ADMIN_AREA guard in Theme\Service::getCurrentRouteTheme (#3717)
* 🐛 Fix current route theme selection

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix stray brace and comment in Theme Service

* Update phpstan ignore annotation in Theme Service

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-04 09:16:41 +01:00
renovate[bot] 88c0567ad2 Update dependency dicebear/styles to v10.1.0 (#3716)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-04 05:25:57 +01:00
Adam DaleyandCopilot Autofix powered by AI a650e0809e Fix for 1 code quality finding in Page module (#3715)
Apply suggested fix to src/modules/Page/templates/client/mod_page_login.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-03 22:16:11 +01:00
Copilot 0080e76fca Remove echoed password values from login templates (#3714)
* Initial plan

* Remove echoed password values

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-03 20:37:43 +01:00
Yağızhan Burak YakarandAdam Daley e0a0a34e08 Added widget slots to login forms (#3712)
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-03 19:27:13 +01:00
Yağızhan Burak Yakar 5aaffc644b Fix regression bug while updating extensions (#3713) 2026-06-03 18:24:45 +01:00
CopilotandAdam Daley ad3a4fe3f4 Fix ApiResponse DRY violation, tighten wasSuccessful() check, and wire email test to Validate class (#3711)
* Initial plan

* Fix duplicate getHttpCode/getStatusCode, improve wasSuccessful result check, and test email validation via Validate class

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-03 16:20:16 +01:00
renovate[bot] 1827847d15 Update actions/checkout digest to df4cb1c 2026-06-03 13:57:12 +00:00
renovate[bot] 21181ae456 Update ckeditor monorepo to v48.2.0 (#3710)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-03 11:50:37 +01:00
83949ce8f0 Apply PHP Code Styling & Quality Changes (#3705)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-03 11:31:36 +01:00
Adam Daley 4315d610b2 Move E2E tests into modules and update test config (#3707)
* Move E2E tests into modules and update test config

* Update php-build-test.yml

* Remove premature curl_close calls

* E2E tests: clean assertions, cart client, currency

* Refactor E2E tests imports & assertions

* Fix Antispam E2E - skip disposable email test when domain list unavailable
2026-06-03 11:18:29 +01:00
renovate[bot] d31f13b0fa Update github/codeql-action digest to 87557b9 (#3706)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-03 09:24:18 +01:00
renovate[bot] 7ad3637d19 Update dependency dicebear/core to v10.0.2 2026-06-03 00:50:58 +00:00
29a3a6a692 Fix typos in tests and update cspell.json (#3703)
* Fix typos in tests and update cspell.json

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix Myanma typo: correct to Myanmar in currency test, remove from cspell ignoreWords

* chore: remove unused cspell typo token

* Fix typo allowlist feedback in cspell review thread

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-02 08:20:28 +01:00
Adam Daley dd3dcbfd52 Enhance type safety, authentication checks, and testing framework (#3701)
* Improve type safety, auth checks and PHPStan fixes (#3250)

* Improve type safety, auth checks and PHPStan fixes

* Remove @phpstan-ignore annotations

* Improve type safety, auth checks and PHPStan fixes

* Remove @phpstan-ignore annotations

* Remove redundant @phpstan-ignore comment

* Improve code robustness and reliability (#3248)

* Harden code against null/undefined values

* Update dependency lockfiles

* Sanitize ticket input and use IDs in email list

* Restructure tests and add test utilities

* Move E2E tests to `Library\E2E` namespace

* Update `php-build` action ref in workflows

* Switch tests to Pest and add test scaffolding

* Refactor E2E tests to Pest-style tests

m

Skip E2E tests when env not configured

* Refactor Unit tests and update test config

Add test datasets and refine test helpers

* Add DEBUG guard, fix API JSON decode, update tests

* Refactor tests: add types and Mockery expectations

* Adjust tests, phpstan config, and composer script

* Instantiate test APIs locally, remove beforeEach

* Refactor runtime checks, types & logging

* Apply PHP Code Styling Changes

m

* Add PHPStan ignores, test renames & small fixes

* Enable Pest tests in CI workflow

* Remove legacy tests; add new unit tests/config

* Avoid undefined index in fingerprint comparison

* Ignore properties absent in both fingerprints

* Remove public_ticket_create API method

* Add Fingerprint unit tests

* Remove em dash from fingerprint test name

* Switch to Pest; assorted bug fixes & refactors

* Prefer getDi() and guard DEBUG define

* Refactor tests: DBAL, Antispam rename, helpers

* Refactor email tests to use Doctrine entities

* Update tests, use DBAL mocks & improve Formbuilder admin

* Validate plan_id and update unit tests

* Replace error_log with DI logger and update tests

* Expect db->store in Invoice Service test

* Use DI logger instead of error_log; fix tests

* Fix typo in Hook Service test

* Fix Staff test spelling fixture

* Complete Pest test migration

* Fix Product test spelling fixtures

* Fix Product test spelling fixtures

* Run live tests with Pest and load helpers

* Migrate tests to ApiClient; remove legacy APIHelper

* Fix Email test spelling

* Remove unused PHPUnit bridge

* Organize Cypress end-to-end tests

* Document Pest test directory root

* Remove noisy Pest comments
2026-06-02 07:43:01 +01:00
Adam DaleyandCopilot Autofix powered by AI f36ee692d2 Fixes for 2 code quality findings in Product Service (#3702)
* Apply suggested fix to tests-legacy/modules/Product/ServiceTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to tests-legacy/modules/Product/ServiceTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-02 05:18:44 +01:00
Copilot d635930d73 Correct Product/Cron test typos and align rate-limit assertion wording (#3700)
* Initial plan

* Fix typos in Product and Cron tests

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-02 02:53:18 +01:00
93f6ae576e Enhance payment gateway support and API integration (#3699)
* Enforce one-time payment support per gateway

* Require gateway keys based on mode

* Add update readiness checks and UI integration

* Expose product form_id to guest API output

* Return structured issues and small UI/test tweaks

* Compute gateway field-required; catch Throwable

* Skip unwritable path simulation when root

* Use temp dirs for data/uploads in tests

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix test uploads mkdir error handling

* fix: hide recurrent-only gateways for one-time invoices

* Fix constructor and update install/vendor paths

* Skip update finalization in tests

* Improve exception output in testing mode

* Throw FOSSBilling exception and enhance error log

* Add PHPUnit tests for Box_Log

* Log exception details for CI debugging

* Revise Box_Log tests for PSR-3 and placeholders

* Write exception log to real data dir for CI visibility

* Fix duplicated block in compute_field_required macro

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-02 02:36:33 +01:00
Yağızhan Burak YakarandAdam Daley 2d9fb39e4c Add PSR-3 styled logger method names to Box_Log (#3691)
* Add PSR-3 styled logger method names to Box_Log

* Switch to using PSR-3 style method names in logger callers

* Handle writer failures centrally and harden masking behavior

* Fix wrong context format used

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-02 01:58:26 +01:00
8e78cd1de5 Simplify cron management and enhance guest security checks (#3698)
* Pass identity to staff checks; simplify cron

* Add guest cron security hash and management

* Bump `last_patch` and enhance guest cron tests

* Fix cron guest last-execution null check

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fix(cron): make guest run endpoint data argument typed and optional

* Fix PHPDoc for checkPermissionsAndThrowException to document $member parameter

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-01 21:37:25 +01:00
Adam DaleyandCopilot Autofix powered by AI 8e98f6dd3b Fix for 1 code quality finding in Doctrine EntityManagerFactory (#3697)
Apply suggested fix to src/library/FOSSBilling/Doctrine/EntityManagerFactory.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-01 19:59:41 +01:00
Adam Daley b62349de94 Use filesystem cache for Doctrine metadata (#3696) 2026-06-01 19:25:55 +01:00
Adam Daley 8c7fd6d27f Add 'RPDO' to cspell.json dictionary (#3695) 2026-06-01 18:07:33 +01:00
46f6cac5bb Implement rate limiting and validate invoice hash in APIs (#3694)
* Add per-hash and per-IP rate limit to guest invoice `get`

* Remove `client_id` null bypass in `checkInvoiceAuth`

* Validate invoice hash format in payment and pdf guest APIs

* Add invoice hash expiration

* Fix RedBean type coercion root cause for invoice hash enum

* Regression tests for patch67 destructive hash migration

* Trim verbose comments and defensive checks

* Upsert invoice setting; guard invoice load

* Update cspell.json

* Update `last_patch` value to 67

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Remove obsolete invoice hash upgrade note from settings UI

* Fix patch67 executeSql parameter array syntax

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-01 17:47:20 +01:00
renovate[bot] 95614c1292 Lock file maintenance 2026-06-01 03:43:45 +00:00
Yağızhan Burak Yakar 9df57e8579 Fix DirectAdmin test connection crash (#3692) 2026-05-31 16:16:29 +03:00
renovate[bot] ea32347104 Update dependency twig/twig to v3.27.1 2026-05-31 01:31:05 +00:00
Yağızhan Burak Yakar bc1a6dcd46 Remove leftover Paidsupport and Servicemembership modules (#3690)
* Remove leftover Paidsupport and Servicemembership modules

* Bump last_patch
2026-05-30 23:07:43 +03:00
1f7e35e50e Fixes for 4 code quality findings in UpdatePatcher (#3689)
* Apply suggested fix to src/library/FOSSBilling/UpdatePatcher.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/library/FOSSBilling/UpdatePatcher.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/library/FOSSBilling/UpdatePatcher.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/library/FOSSBilling/UpdatePatcher.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Fix undefined UpdatePatcher method call in downloadable migration

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
0.8.1
2026-05-30 18:09:10 +01:00
Adam DaleyandCopilot Autofix powered by AI 8666f6ad60 Fix for code quality finding in UpdatePatcher (#3688)
Apply suggested fix to src/library/FOSSBilling/UpdatePatcher.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-30 17:52:42 +01:00
renovate[bot]andAdam Daley 679dd8c0b9 Lock file maintenance (#3687)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-30 17:44:53 +01:00
Copilot 222ea14465 Fix UpdatePatcher table handling and Massmailer admin filtering (#3686)
* Initial plan

* fix update patcher and massmailer filters

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-30 17:37:46 +01:00
Copilot 329c90ae53 Harden UpdatePatcher SQL safety and apply Antispam/Massmailer correctness fixes (#3685)
* Initial plan

* Apply UpdatePatcher, Antispam, and Massmailer fixes

* Tighten UpdatePatcher WHERE validation details

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-30 17:21:08 +01:00
Adam Daley 39b9d5b219 Filter client_order join to downloadable services (#3684) 2026-05-30 16:56:57 +01:00
FOSSBilling BotandFOSSBilling Bot bb88b4f2c4 Apply PHP Code Styling & Quality Changes (#3683)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-05-30 16:49:14 +01:00
Adam DaleyandCopilot Autofix powered by AI 6371e7af73 Fixes for 2 code quality findings in Massmailer (#3682)
* Apply suggested fix to src/modules/Massmailer/templates/admin/mod_massmailer_index.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Massmailer/templates/admin/mod_massmailer_index.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-30 16:34:11 +01:00
CopilotandAdam Daley db0a3a14e6 Fix downloadable file replacement cleanup, stream downloads, and preserve config keys (#3678)
* Initial plan

* Fix servicedownloadable file update and streaming responses

* Fix CI by updating streamed download test assertions

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-30 16:25:10 +01:00
renovate[bot] 5aa1834445 Update actions/setup-node action to v6 (#3680)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-30 16:16:36 +01:00
Adam Daley f6b3e1d094 Use autocomplete select for test client and show email (#3681) 2026-05-30 16:09:03 +01:00
Adam Daley 3ddca65976 Fix release notes workflow command (#3679) 2026-05-30 15:54:14 +01:00
e1f055378e Add Copilot release-notes workflow and guidelines (#3677)
* Add Copilot release-notes workflow and guidelines

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Pin Copilot CLI version in release workflow

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-30 15:27:54 +01:00
58a2bb8a4c 🔒 Validate downloadable stored filenames (#3676)
* 🔒 Validate downloadable stored filenames

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Validate stored filename before DB reference check

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-30 15:20:06 +01:00
78e2632e13 Add proxy candidate UI and support for system URLs (#3674)
* Add proxy candidate UI and system URL support

* Use SYSTEM_URL default in installer session

* Installer UI: reorganize options & proxy settings

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Use relative installer redirects in bootstrap

* Handle empty forwarded headers in RequestFactory

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-30 14:28:12 +01:00
Adam Daley 4bbbe66f21 Restore tracked src/data/cache placeholder (.gitkeep) (#3675)
🐛 Restore tracked cache directory
2026-05-30 14:11:13 +01:00
CopilotandAdam Daley d1a5f23e4d Improve license validation form accessibility/line-ending consistency and correct legacy test intent (#3673)
* Initial plan

* chore: outline plan for requested fixes

* fix license form accessibility and legacy test cleanup

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-30 13:45:23 +01:00
Adam Daley 83801fc02c Prevent client override of free subdomain base domain (#3672)
🔒 Prevent subdomain base override
2026-05-30 13:36:11 +01:00
Adam Daleyandcopilot-swe-agent[bot] bb1f7079e9 Add stored_filename attribute for downloadable files (#3670)
* Add `stored_filename` for downloadable files

* Remove orphaned stored files when a new downloadable file is uploaded

When uploading a new product file or directly replacing a service's file,
the old stored_filename was left on disk indefinitely.

- Add isStoredFilenameReferenced() to check whether a stored filename is
  still referenced by any product config, order config, or
  service_downloadable row before deleting.
- Add removeStoredFileIfOrphaned() that deletes the physical file only when
  no references remain (protects against the patch65 migration scenario
  where one stored_filename may be shared by multiple sibling records).
- In uploadProductFile(), capture the old stored filename before saving the
  new config and remove it after all records are updated.
- In updateProductFile(), capture the old stored filename when a new file
  is directly uploaded for a service/order and remove it after all records
  are updated.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-30 13:26:13 +01:00
Adam Daley 05b3395c2b Harden license documentation links (#3671)
🔒 Harden license docs links
2026-05-30 13:17:44 +01:00