Commit Graph
6403 Commits
Author SHA1 Message Date
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
Yağızhan Burak YakarandAdam Daley a44e693c0a Add free subdomain option for hosting products (#3667)
* Add free subdomain option for hosting products

* Fix huraga pill text color

* Implement duplicate protection for free subdomains

* Addressed code review comments

* Address code review comments

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-30 13:03:21 +01:00
Adam Daley 9059bccb6d Sanitize admin ticket reply content (#3669) 2026-05-30 12:52:09 +01:00
Yağızhan Burak Yakar ff30658122 Added links to the improved license documentation (#3668) 2026-05-30 14:26:46 +03:00
Adam Daley afee4c3cb9 Update Dockerfile version injection and add tests (#3665) 2026-05-30 11:40:34 +01:00
Yağızhan Burak Yakar 846e159e20 Fixed Cypress test cases after the autologin changes (#3666) 2026-05-30 13:06:16 +03:00
Yağızhan Burak Yakar 7c32993a6d Automatically log clients in after successful registration (#3664)
* Automatically log clients in after successful registration

* Also catch TypeError throws from mocked tests
2026-05-30 12:56:23 +03:00
Yağızhan Burak YakarandAdam Daley 1d84c35836 Prevent deleting a registrar assigned to one or more TLDs (#3660)
* Prevent deleting a registrar assigned to one or more TLDs

* Fix broken breadcrumb

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-30 12:39:39 +03:00
Adam Daley dc0d2014d6 Add pre-config proxy detection for forwarded headers (#3663) 2026-05-30 10:33:33 +01:00
Adam Daley c622b4c45b Refresh config OPcache when preserving cache (#3662)
🔒 Refresh config OPcache when preserving cache
2026-05-30 09:57:32 +01:00
449f8a2d28 fix: restore domain check button when input changes after initial check (#3645)
* fix: restore domain check button when input changes after initial check

* Fix for pull request finding

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

* Refactor transfer check and add TLD listener

* Fix for pull request finding

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

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-30 09:35:59 +01:00
Copilot 6d051906c5 Template correctness, i18n, and accessibility fixes across multiple modules (#3661)
* Initial plan

* fix: apply template fixes for HTML correctness, accessibility, and i18n

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-30 08:47:31 +01:00
renovate[bot] 14192dae86 Update dependency friendsofphp/php-cs-fixer to v3.95.3 2026-05-30 02:41:30 +00:00
renovate[bot] 71671f2635 Update dependency dicebear/core to v10.0.1 2026-05-30 00:20:31 +00:00
Yağızhan Burak Yakar f70e86970b Validate and normalize port values across the codebase (#3659)
* Validate and normalize port values across the codebase

* Fix wrong import

* Fix wrong import

* Cover normalizePort() in unit tests
2026-05-30 03:19:09 +03:00
Yağızhan Burak Yakar 45ed7980e2 Better module manifest descriptions (#3658) 2026-05-30 02:44:40 +03:00
Yağızhan Burak Yakar 8b24bdb43d Add links to the Anti-Spam documentation (#3657) 2026-05-30 02:32:28 +03:00
Yağızhan Burak Yakar 3763a2f630 Add "grecaptcha" to cspell.json (#3656) 2026-05-29 23:09:07 +03:00