Rest APi doesn't work after update from 3.1.1 to 5.0.1 #6881
install version 3.1.1, install upgrades to 5.0.1
and a new API file has been created :
But when you do the upgrade from 3.1.1, the files are not renamed nor deleted and you'll have :
When you activate the REST API module, there's an error message because api_invoices.class.php causes an error because api_invoice.class.php has already been loaded with more or less same class definitions.
Expected and actual behavior
When upgrading, old and no longer necessary files should be deleted, archived or renamed. This is not the case actually and you end up with files that cause problem.
Steps to reproduce the behavior
Install 3.1.1, install upgrade to 4
during update, have a function that checks for no longer needed files
the fix doesn't seem to include
these files cause problem too. There doesn't seem to have other deprecated files.