login method does not work for http rest api v4_1 using SuiteCRM 8.7.1, PHP 8.2.26 #582
Labels
Area: API
Issues & PRs related to all things regarding the API
Area: PHP8
Issues & PRs related to the CRM when using PHP8
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Severity: Moderate
Minor Impact
Type: Bug
Something isn't working
Issue
When I call the
login
api method with the data that url percent encodes:The server responds with an http 500 error status and does not return a
session_id
. On the server, I see the following error in/var/log/apache2/error.log
:Possible Fix
To make the
login
method work and return asession_id
I needed to fix the class re-declaration errors in/public/legacy/include/entryPoint.php
and json decoding errors in/public/legacy/include/utils.php
whenclean_incoming_data()
processes http rest api request data.The changes are in the code fork here.
Steps to Reproduce the Issue
Context
No response
Version
8.7.1
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
PHP 8.2.26
Operating System and Version
Debian 12.8.0
The text was updated successfully, but these errors were encountered: