Activity log returns 404
Commenting on a card doesn't work. Script is blocked by Content Security Policy.
To Reproduce Steps to reproduce the behavior:
- Go to board
- Click on card
- Click on Timeline
- Type Comment
- Click on arrow
- No comment (timeline stays empty). new comment field is cleared.
Expected behavior Comment should be saved and show up in timeline. (Commenting on files is working as expected.)
Client details:
- OS: Mac OS X 10.13.6
- Browser: Firefox 63.0.3, Opera 57.0.3098.102
Ubuntu 18.04.1 LTS Apache MySQL PHP 7.2.13 Nextcloud: 14.0.4
Signing status:
No errors have been found.
Logs
Nextcloud log (data/nextcloud.log)
(empty)
Browser log
[Firefox:] Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("script-src"). deck:3:14011 Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("script-src"). deck:7:14244
[Opera:] vendor.js?v=37477d2b-15:7 GET https://[mydomain]/ocs/v2.php/apps/activity/api/v2/activity/filter?format=json&object_type=deck_card&object_id=2&limit=50&since=-1&sort=asc 404
| (anonymous) | @ | vendor.js?v=37477d2b-15:7 Â | (anonymous) | @ | vendor.js?v=37477d2b-15:7 Â | (anonymous) | @ | vendor.js?v=37477d2b-15:7 Â | (anonymous) | @ | vendor.js?v=37477d2b-15:7 Â | (anonymous) | @ | vendor.js?v=37477d2b-15:7 Â | $digest | @ | vendor.js?v=37477d2b-15:7 Â | $apply | @ | vendor.js?v=37477d2b-15:7 Â | (anonymous) | @ | deck.js?v=37477d2b-15:624 Â | $emit | @ | vendor.js?v=37477d2b-15:7 Â | notify | @ | deck.js?v=37477d2b-15:3629 Â | (anonymous) | @ | deck.js?v=37477d2b-15:3602 Â | triggerEvents | @ | core.js?v=37477d2b-15:2984 Â | triggerApi | @ | core.js?v=37477d2b-15:2969 Â | eventsApi | @ | core.js?v=37477d2b-15:2768 Â | Events.trigger | @ | core.js?v=37477d2b-15:2959 Â | _onModelEvent | @ | core.js?v=37477d2b-15:3768 Â | triggerEvents | @ | core.js?v=37477d2b-15:2985 Â | triggerApi | @ | core.js?v=37477d2b-15:2970 Â | eventsApi | @ | core.js?v=37477d2b-15:2768 Â | Events.trigger | @ | core.js?v=37477d2b-15:2959 Â | options.success | @ | core.js?v=37477d2b-15:3251 Â | (anonymous) | @ | oc-backbone-webdav.js?v=37477d2b-15:244 Â | Promise.then (async) | Â | Â Â | callMethod | @ | oc-backbone-webdav.js?v=37477d2b-15:227 Â | davCall | @ | oc-backbone-webdav.js?v=37477d2b-15:280 Â | davSync | @ | oc-backbone-webdav.js?v=37477d2b-15:354 Â | save | @ | core.js?v=37477d2b-15:3260 Â | create | @ | core.js?v=37477d2b-15:3662 Â | postComment | @ | deck.js?v=37477d2b-15:773 Â | fn | @ | VM687:4 Â | e | @ | vendor.js?v=37477d2b-15:7 Â | $eval | @ | vendor.js?v=37477d2b-15:7 Â | $apply | @ | vendor.js?v=37477d2b-15:7 Â | (anonymous) | @ | vendor.js?v=37477d2b-15:7 Â | dispatch | @ | core.js?v=37477d2b-15:3 Â | r.handle | @ | core.js?v=37477d2b-15:3
Same here on
- Arch Linux
- Nginx 1.14.2
- Mysql 10.1.37
- PHP 7.2.12
- Nextcloud 15.0.0
- Deck 0.5.1
accessed through Firefox 64.
Can you try if disabling and enabling the deck app fixes the issue for you?
yes I tried it. seems to work now!
GET https://[mydomain]/ocs/v2.php/apps/activity/api/v2/activity/filter?format=json&object_type=deck_card&object_id=2&limit=50&since=-1&sort=asc 404
@nickvergessen Do you have any idea why a newly added activity filter might only be available after disabling/enabling the app?
We had the same issue for comments which could also be fixed by reenabiling in https://github.com/nextcloud/deck/issues/704
Do you have any idea why a newly added activity filter might only be available after disabling/enabling the app?
Try increasing the version of your app, I guess some caching is going on, but in theory there is no reason for that and I never noticed this.
The version is already bumped two times since the activities were introduced in 0.5.2 so it should not happen again. Let's close this since we are unable to reproduce and disabling/enabling fixes it.