Issues post upgrade to 22.2.7

Post Upgrade to version 22.2.7, Unable to enforce password protection for share by Email OR Link.

Nextcloud version : 22.2.7
Operating system and version : CentOS 8
Apache or nginx version : Apache/2.4.37
PHP version : 7.4

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Yes

The output of your Nextcloud log in Admin > Logging:

{"reqId":"YoTi1x96mAzaHDRfNwZdXwAAAY8","level":3,"time":"2022-05-18T12:13:11+00:00","remoteAddr":"10.20.4.25","user":"Myadminbhai","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/files_sharing/api/v1/shares","message":"Passwords are enforced for link and mail shares","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36","version":"22.2.7.1","exception":{"Exception":"InvalidArgumentException","Message":"Passwords are enforced for link and mail shares","Code":0,"Trace":[{"file":"/web/websrv/lib/private/Share20/Manager.php","line":815,"function":"verifyPassword","class":"OC\\Share20\\Manager","type":"->"},{"file":"/web/websrv/apps/files_sharing/lib/Controller/ShareAPIController.php","line":661,"function":"createShare","class":"OC\\Share20\\Manager","type":"->"},{"file":"/web/websrv/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"createShare","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->"},{"file":"/web/websrv/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/web/websrv/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/web/websrv/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/web/websrv/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/web/websrv/ocs/v2.php","line":23,"args":["/web/websrv/ocs/v1.php"],"function":"require_once"}],"File":"/web/websrv/lib/private/Share20/Manager.php","Line":184,"CustomMessage":"--"},"id":"62861fcede821"}

This seems issues in Sharing Manager.php file where $this->getPassword is returning NULL causing an error.

Any option to debug its output.

Thanks,
Sharad