magento-lts icon indicating copy to clipboard operation
magento-lts copied to clipboard

Fix issue #4501 Exception noise from OAuth and REST (API2 )

Open kiatng opened this issue 9 months ago • 3 comments

Description (*)

See issue #4501. This PR added $shouldLog as an optional parameter in Mage_APi2_Exception, any code that extends it and overrides the constructor with the old signature would break.

Related Pull Requests

  • see OpenMage/magento-lts#<issue_number>

Fixed Issues (if relevant)

  • fixes OpenMage/magento-lts#4501

kiatng avatar Feb 22 '25 06:02 kiatng

any code that extends it and overrides the constructor with the old signature would break.

https://github.com/OpenMage/magento-lts/issues/4501#issuecomment-2606224769

How about to add _criticalNotLoggable() method and a new exception?

sreichel avatar Feb 25 '25 00:02 sreichel

any code that extends it and overrides the constructor with the old signature would break.

#4501 (comment)

How about to add _criticalNotLoggable() method and a new exception?

I have thought about new exception class. I am hesitant because I do not think there is any custom code that would extend it, if there is, it's easy to fix. This avoid adding more code.

kiatng avatar Feb 28 '25 04:02 kiatng

Already reviewed by @Hanmac .

sreichel avatar Jul 07 '25 02:07 sreichel

This one has a PHPstan error. Did you check it?

addison74 avatar Jul 07 '25 10:07 addison74

All lights green here?

sreichel avatar Jul 07 '25 20:07 sreichel

@addison74 there was an outdated PHPstan error, that got fixed with a later commit

Hanmac avatar Jul 08 '25 07:07 Hanmac