Repository navigation
fix(daemon): drop the cached ExApps when a deploy daemon is updated - #1205
Conversation
Signed-off-by: Oleksandr Piskun <oleksandr2088@icloud.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
With Redis or Memcached, AppAPI caches the list of ExApps, and each cached ExApp carries a copy of its deploy daemon's protocol, host and deploy config. Updating a daemon in the admin settings did not drop that cache, so Nextcloud kept using the old settings for the daemon's ExApps until the entry expired or an ExApp changed. After a HaRP shared key change, HaRP's requests to Nextcloud were checked against the old key and refused, and Nextcloud still sent the old key to HaRP.
DaemonConfigService::updateDaemonConfig()now drops the cached ExApps after a successful update. Registry mappings are read from the daemon itself, so adding or removing one needs no reset. The comingocc app_api:daemon:update(#1129) uses the same method.