{"action":"created","issue":{"url":"https://api.github.com/repos/privacyidea/privacyidea/issues/378","repository_url":"https://api.github.com/repos/privacyidea/privacyidea","labels_url":"https://api.github.com/repos/privacyidea/privacyidea/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/privacyidea/privacyidea/issues/378/comments","events_url":"https://api.github.com/repos/privacyidea/privacyidea/issues/378/events","html_url":"https://github.com/privacyidea/privacyidea/issues/378","id":149450481,"number":378,"title":"System config checkboxes always show disabled state","user":{"login":"berndnicklas","id":4263918,"avatar_url":"https://avatars.githubusercontent.com/u/4263918?v=3","gravatar_id":"","url":"https://api.github.com/users/berndnicklas","html_url":"https://github.com/berndnicklas","followers_url":"https://api.github.com/users/berndnicklas/followers","following_url":"https://api.github.com/users/berndnicklas/following{/other_user}","gists_url":"https://api.github.com/users/berndnicklas/gists{/gist_id}","starred_url":"https://api.github.com/users/berndnicklas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndnicklas/subscriptions","organizations_url":"https://api.github.com/users/berndnicklas/orgs","repos_url":"https://api.github.com/users/berndnicklas/repos","events_url":"https://api.github.com/users/berndnicklas/events{/privacy}","received_events_url":"https://api.github.com/users/berndnicklas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-19T12:44:48Z","updated_at":"2016-04-19T13:19:06Z","closed_at":null,"body":"Hello,\r\n\r\nin my privacyIDEA instance (version 2.11.1) I experience the following problem:\r\n\r\nLogin into WebUI -> Choose Config tab [-> System tab]\r\n\r\nIn System Config I only enable\r\n\r\n- Use @ sign to split the username and the realm.  Increase the failcounter if the wrong PIN was entered.\r\n- Increase the failcounter if the wrong PIN was entered.\r\n\r\nThen I save the config. The config is properly saved in database, see:\r\n\r\n```\r\nprivacyidea=# select * from config;\r\n             Key              |           Value            |  Type  | Description \r\n------------------------------+----------------------------+--------+-------------\r\n DefaultChallengeValidityTime | 120                        | None   | None\r\n DefaultOtpLen                | 6                          | None   | None\r\n AutoResync                   | false                      | None   | None\r\n splitAtSign                  | true                       | None   | None\r\n DefaultSyncWindow            | 1000                       | None   | None\r\n UiLoginDisplayHelpButton     | false                      | None   | None\r\n DefaultCountWindow           | 10                         | None   | None\r\n DefaultMaxFailCount          | 50                         | None   | None\r\n UiLoginDisplayRealmBox       | false                      | None   | None\r\n ReturnSamlAttributes         | false                      | None   | None\r\n PrependPin                   | false                      | public | None\r\n IncFailCountOnFalsePin       | true                       | None   | None\r\n OverrideAuthorizationClient  |                            | None   | None\r\n __timestamp__                | 2016-04-19 14:46:01.414257 |        | \r\n(14 rows)\r\n```\r\n\r\nLeave Config tab, e.g. choose Tokens tab, and then again choose Config tab. In the System Config now all configuration checkboxes seem to be disabled, while the first two checkboxes should be enabled. This behaviour also remains after logging out and logging in again.\r\n\r\nIn the Web Browser, the retrieved JSON-RPC-Result seems to be OK, so it seems to be a display issue in WebUI:\r\n\r\n```\r\n{\r\n    \"jsonrpc\": \"2.0\",\r\n    \"signature\": \"15089554128232974882766933492965387840033238793931933492013946069511037738031596700910020500824694609458026544524220685126580565945127348584275232164512976686896221258665090195468112393278757693199534365724017307098258857369677021791324922979919264512665441344647652010703655680306852416959636578887618705204266760869412101548655089046949167238775023600067192284721100475451725213217271271218254823046161469045228062228747710517050807376921143719605783375115841686296089879147526518590097537966530025696941259652177344747614779584085917984213281524322578445090550328526581162223563203373081643657875841591632647776705\",\r\n    \"versionnumber\": \"2.11.1\",\r\n    \"version\": \"privacyIDEA 2.11.1\",\r\n    \"result\": {\r\n        \"status\": true,\r\n        \"value\": {\r\n            \"DefaultChallengeValidityTime\": \"120\",\r\n            \"AutoResync\": \"false\",\r\n            \"splitAtSign\": \"true\",\r\n            \"DefaultSyncWindow\": \"1000\",\r\n            \"UiLoginDisplayRealmBox\": \"false\",\r\n            \"UiLoginDisplayHelpButton\": \"false\",\r\n            \"__timestamp__\": \"2016-04-19 13:33:18.675331\",\r\n            \"DefaultCountWindow\": \"10\",\r\n            \"DefaultMaxFailCount\": \"50\",\r\n            \"IncFailCountOnFalsePin\": \"true\",\r\n            \"ReturnSamlAttributes\": \"false\",\r\n            \"PrependPin\": \"false\",\r\n            \"OverrideAuthorizationClient\": \"172.25.1.4\",\r\n            \"DefaultOtpLen\": \"6\"\r\n        }\r\n    },\r\n    \"time\": 1461065778.186598,\r\n    \"id\": 1\r\n}\r\n```\r\n\r\nCan anybody else reproduce this?\r\n\r\nBest regards,\r\n\r\nBernd"},"comment":{"url":"https://api.github.com/repos/privacyidea/privacyidea/issues/comments/211920536","html_url":"https://github.com/privacyidea/privacyidea/issues/378#issuecomment-211920536","issue_url":"https://api.github.com/repos/privacyidea/privacyidea/issues/378","id":211920536,"user":{"login":"cornelinux","id":1908620,"avatar_url":"https://avatars.githubusercontent.com/u/1908620?v=3","gravatar_id":"","url":"https://api.github.com/users/cornelinux","html_url":"https://github.com/cornelinux","followers_url":"https://api.github.com/users/cornelinux/followers","following_url":"https://api.github.com/users/cornelinux/following{/other_user}","gists_url":"https://api.github.com/users/cornelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/cornelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cornelinux/subscriptions","organizations_url":"https://api.github.com/users/cornelinux/orgs","repos_url":"https://api.github.com/users/cornelinux/repos","events_url":"https://api.github.com/users/cornelinux/events{/privacy}","received_events_url":"https://api.github.com/users/cornelinux/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T13:19:06Z","updated_at":"2016-04-19T13:19:06Z","body":"What data are you running?\r\nPostgreSQL?\r\n\r\nDifferent databases store binary values in different formats. Yours is \"true\". Obviously the webui does not like this:\r\n\r\nhttps://github.com/privacyidea/privacyidea/blob/master/privacyidea/static/components/config/views/config.system.html#L66\r\n\r\nRight:\r\nhttps://github.com/privacyidea/privacyidea/blob/d2d72134328f8eb44443a8ccd829fbf2890835b8/privacyidea/static/components/login/controllers/loginControllers.js#L121\r\n\r\nThis should probably be [true, 1, \"1\", \"True\", \"true\", \"TRUE\"]..."}}