Check locale availability upon configuration save
Check locale availability upon configuration save
When the locale chosen for FD is not installed on the server, setting the locale fails and FD triggers a PHP error to signal the problem.
I think it would make sense in the configuration screen to check if the locale chosen is available in the check() method, therefore forbidding the admin from selecting a locale that will cause problems.
This does not fix the case where locale is set to automatic and the user browser asks for a locale that is not set up, but it will help with other cases where a locale is chosen in configuration.
Link issues together to show that they're related. Learn more.
Activity
- bmortier changed milestone to %FusionDirectory 1.4
changed milestone to %FusionDirectory 1.4
By bmortier on 2019-11-21T10:11:37 (imported from GitLab)
- bmortier added PJ1802-0188 label
added PJ1802-0188 label
- bmortier changed due date to November 21, 2019
changed due date to November 21, 2019
By bmortier on 2019-11-21T10:11:50 (imported from GitLab)
- bmortier created merge request !715 to address this issue
created merge request !715 to address this issue
By Côme Chilliet on 2019-11-21T10:18:51 (imported from GitLab)
- bmortier mentioned in merge request !715
mentioned in merge request !715
By Côme Chilliet on 2019-11-21T10:18:52 (imported from GitLab)
- bmortier added 30m of time spent at 2019-11-21
added 30m of time spent at 2019-11-21
By Côme Chilliet on 2019-11-21T10:42:50 (imported from GitLab)
- bmortier added To Be Tested label
added To Be Tested label
- bmortier assigned to @jswaelens and unassigned @MCMic
assigned to @jswaelens and unassigned @MCMic
By Côme Chilliet on 2019-11-26T08:20:49 (imported from GitLab)
Just tested on demo-dev and it works well. Could it be possible to extend it so that it also works when users choice a languages or maybe displaying only languages that are working on the server ?
Cheers
By Jonathan Swaelens on 2019-11-29T10:06:29 (imported from GitLab)
- bmortier added 10m of time spent at 2019-11-29
added 10m of time spent at 2019-11-29
By Jonathan Swaelens on 2019-11-29T10:06:29 (imported from GitLab)
- bmortier removed To Be Tested label
removed To Be Tested label
- bmortier assigned to @MCMic and unassigned @jswaelens
assigned to @MCMic and unassigned @jswaelens
By Jonathan Swaelens on 2019-11-29T10:06:29 (imported from GitLab)
- bmortier added fusiondirectory-core label
added fusiondirectory-core label
@jswaelens Not sure it makes sense, the locale chosen by the user may be used in other softwares than FusionDirectory.
By Côme Chilliet on 2019-12-03T08:23:39 (imported from GitLab)
- bmortier added 5m of time spent at 2019-12-03
added 5m of time spent at 2019-12-03
By Jonathan Swaelens on 2019-12-03T09:47:58 (imported from GitLab)
The problem can also happen with the language requested by the user browser, so we won’t be able to completely remove this kind of problems. The point of this ticket was to avoid the problem in the configuration screen as it was quite easy to do.
By Côme Chilliet on 2019-12-17T09:17:50 (imported from GitLab)
- bmortier closed
closed
By Côme Chilliet on 2019-12-17T09:17:50 (imported from GitLab)
- bmortier added 5m of time spent at 2019-12-17
added 5m of time spent at 2019-12-17
By Côme Chilliet on 2019-12-17T09:17:51 (imported from GitLab)
- bmortier reopened
reopened
- bmortier created merge request !817 to address this issue
created merge request !817 to address this issue
By Côme Chilliet on 2020-10-20T07:38:11 (imported from GitLab)
- bmortier mentioned in merge request !817
mentioned in merge request !817
By Côme Chilliet on 2020-10-20T07:38:12 (imported from GitLab)
- bmortier closed
closed
- bmortier added 30m of time spent at 2020-10-20
added 30m of time spent at 2020-10-20
By Côme Chilliet on 2020-10-20T07:53:23 (imported from GitLab)
- bmortier removed due date
removed due date
By bmortier on 2021-01-28T20:43:27 (imported from GitLab)