nextcloud / unsplash

πŸ“ΈπŸ”€β˜οΈ Random Nextcloud log in background from Unsplash
https://apps.nextcloud.com/apps/unsplash
GNU Affero General Public License v3.0
92 stars 23 forks source link

Error message 'Failed' when changing settings #88

Closed Darkknight33 closed 1 year ago

Darkknight33 commented 3 years ago

New installation of Nextcloud 21 via docker w/mariadb backend, added unsplash through apps. No other apps are installed.

Whenever I attempt to change any settings to unsplash via the check boxes, a red 'failed' message appears and the changes do not apply.

No error messages appear in the console.

Attached screen shots.

splash2 splash1

lineg-it commented 2 years ago

Same issue on my side since Nextcloud 21.0 with postgres 14. Updated to NC 22.2.1, but the issue still remains.

I've also deinstalled the app and reinstalled, but nothing works. Found nothing in the nextcloud-logs, no network issue (firewall), nor any other logs listed an issue.

newhinton commented 2 years ago

Is this still a problem? If not i will close this issue in a couple of weeks to clean this tracker of old tickets.

CTONCD commented 2 years ago

Hi please dont close this issue. I just install Nextcloud 24,0,1 with spash 1.2.5 and I have the same problem. So if I could add a comment, le backgroung behind the top bar dont change the icon color and when the background is dark user couldn't see the icons (it is the same with white background and white icons) it could be better ;)

newhinton commented 2 years ago

@CTONCD This ticket is only about the save error. The usability-issues are already in another ticket.

Regarding the save: can you take a look at the network-tab of your browser and see if that says something more specific?

CTONCD commented 2 years ago

Exact, settings.js?v=10394b22-14:41 Refused to connect to 'http://xxxx.fr/apps/unsplash/settings/personal/set' because it violates the document's Content Security Policy. how I can do ?

newhinton commented 2 years ago

@CTONCD Can you check the Content-Security-Policy in the network tab of your browser?

You can open the developer-tools with F12 (Both chrome and firefox work)

There you can open the network-tab, and then change a checkbox. http://xxxx.fr/apps/unsplash/settings/personal/set this url will show up as a POST request. If you click on this you can see the header of the answer, and there should be a line which looks roughly like this:

Content-Security-Policy: default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'

What does it say in your browser?

Oh by the way: you should really not run your cloud with http. Thats a big security-issue, and if you need a certificate check out Let's Encrypt

newhinton commented 1 year ago

Any news? Otherwise i will close this. This specific setting will be removed for nextcloud 25 anyway, so this wil be overcome by events.

newhinton commented 1 year ago

No further information was provided.