Api v4_1 call stoped working from 8.5.0 to 8.5.1

Hi

We previously had an 8.5.0 installation where both legacy endpoints were operational, thanks to the solution provided in here: Rest API v4_1 is not working with php 8.1 and 8.2.

However, during testing on a separate environment with version 8.5.1, most endpoints we typically call are functional, except for set_document_revision in API 4_1. Interestingly, the suitecrm.log within the legacy folder doesn’t shows any errors. We’ve encountered some error.ssl on apache and on top of that we are experiencing a GraphQL error with a 403 status code.

Given these challenges, redeveloping the business logic on GraphQL isn’t a feasible option.

ssl.error.log when we make calls on the 4_1 API

[proxy_fcgi:error] [pid 224184] [client 1.11:40026] AH01071: Got error ‘PHP message: PHP Warning: Undefined property: User::$default_team in /var/www/xxx.xxxx.xxx/https/public/legacy/service/v4/SugarWebServiceImplv4.php on line 165; PHP message: PHP Warning: Undefined array key “wl_list_max_entries_per_page” in /var/www/xxx.xxxx.xxx/https/public/legacy/service/v4/SugarWebServiceImplv4.php on line 174’
[proxy_fcgi:error] [pid 216537] [client 1.11:40032] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Unknown named parameter $note in /var/www/xxx.xxxx.xxx/https/public/legacy/service/core/REST/SugarRestJSON.php:100\nStack trace:\n#0 /var/www/xxx.xxxx.xxx/https/public/legacy/service/core/SugarRestService.php(137): SugarRestJSON->serve()\n#1 /var/www/xxx.xxxx.xxx/https/public/legacy/service/core/webservice.php(70): SugarRestService->serve()\n#2 /var/www/xxx.xxxx.xxx/https/public/legacy/service/v4_1/rest.php(56): require_once(’…‘)\n#3 {main}\n thrown in /var/www/xxx.xxxx.xxx/https/public/legacy/service/core/REST/SugarRestJSON.php on line 100’
[proxy_fcgi:error] [pid 224186] [client 1.11:40035] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Unknown named parameter $note in /var/www/xxx.xxxx.xxx/https/public/legacy/service/core/REST/SugarRestJSON.php:100\nStack trace:\n#0 /var/www/xxx.xxxx.xxx/https/public/legacy/service/core/SugarRestService.php(137): SugarRestJSON->serve()\n#1 /var/www/xxx.xxxx.xxx/https/public/legacy/service/core/webservice.php(70): SugarRestService->serve()\n#2 /var/www/xxx.xxxx.xxx/https/public/legacy/service/v4_1/rest.php(56): require_once(’…‘)\n#3 {main}\n thrown in /var/www/xxx.xxxx.xxx/https/public/legacy/service/core/REST/SugarRestJSON.php on line 100’

and sugarcrm_02_2024.log

[254574][-none-][ERROR] End: SugarWebServiceImpl->get_entry_list - FAILED on checkSessionAndModuleAccess
[224196][f14bdd9e-35df-8c93-d230-5cd017b6cfce][WARN] SugarBean constructor error: Object has not fields in dictionary. Object name was: Audit
[224196][f14bdd9e-35df-8c93-d230-5cd017b6cfce][WARN] Audit::populateDefaultValues $field_defs should be an array
[224196][f14bdd9e-35df-8c93-d230-5cd017b6cfce][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php
[254574][-none-][ERROR] End: SugarWebServiceImpl->get_entry_list - FAILED on checkSessionAndModuleAccess
[224196][f14bdd9e-35df-8c93-d230-5cd017b6cfce][WARN] SugarBean constructor error: Object has not fields in dictionary. Object name was: Audit
[224196][f14bdd9e-35df-8c93-d230-5cd017b6cfce][WARN] Audit::populateDefaultValues $field_defs should be an array
[224196][f14bdd9e-35df-8c93-d230-5cd017b6cfce][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php

I would really appreciate your help with this! Does anyone have any suggestions on how to address this issue?

This probably should be filed as a new issue (bug) so they can look into it.