Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Settings not persistent #948

Closed
1 task done
ghost opened this issue Mar 25, 2016 · 6 comments
Closed
1 task done

Settings not persistent #948

ghost opened this issue Mar 25, 2016 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 25, 2016

IMPORTANT

Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)

Explain the Problem

I can change settings via the settings menu (like enabling the "compact view") and they work fine, but if I reload the page (or visit it again later) the settings are back to the defaults (all checkboxes are cleared).
I don't know if this is intentional, but I would like my changes to be persistent.

Steps to Reproduce

  1. Go to the ownCloud News page.
  2. Open the settings menu (click on the gear at the bottom left). All checkboxes will be cleared.
  3. Enable some checkboxes (for example, "compact view"). The new settings will take effect immediately.
  4. Refresh or revisit the page.
  5. Open the settings menu again. All checkboxes will be cleared again (despite having checked some in step 3).

System Information

  • News app version: 7.1.2
  • ownCloud version: 9.0.0 (stable)
  • PHP version: 7.0.4
  • Database and version: PostgreSQL 9.5.1
  • Browser and version: Chromium 49.0.2623.87 (64-bit) & Firefox 45.0.1
  • Distribution and version: Arch Linux ARM (up to date)

Contents of owncloud/data/owncloud.log

No logs are written while reproducing the problem.

Contents of Browser Error Console

Nothing is output to the browser console while reproducing the problem.

@BernhardPosselt
Copy link
Contributor

Hm, there should be logs. Most likely problem is that the app cant write into the data/ directory where the config is stored, can you check?

@BernhardPosselt
Copy link
Contributor

Ok, weird, can reproduce it :) one sec

@ghost
Copy link
Author

ghost commented Mar 25, 2016

Hello, thank you for the quick response.
The permissions look right to me: the web server owns the data directory and all the files and subdirectories in it. Has write permissions. Still, no logs.
I do get log messages from the ownCloud cron jobs, though.
¿When should the logs be written, when the page loads or when I change the settings?

Thank you.

@BernhardPosselt
Copy link
Contributor

First guess is a regression in core stable9 and postgresql, works fine for me on sqlite. One sec ;)

@BernhardPosselt
Copy link
Contributor

Yes, it's a bug in core, here's the issue owncloud/core#23583

BernhardPosselt pushed a commit that referenced this issue Mar 25, 2016
@BernhardPosselt
Copy link
Contributor

Ok, it seems there are some inconsistencies when saving boolean values, I've changed it to saving strings so the issue should be resolved now in master

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant