Hide Forgot
Description of problem: If: - a project has not selected to override the server languages (no custom list) - the server has a language that is not enabled by default, - the group has added this language then the project version will show in the group's page with no given warnings, and can attempt to open the document and results in presenting an error to the user. Version-Release number of selected component (if applicable): dev How reproducible: Moderate, seems always Steps to Reproduce: 1. Log in as admin, go to Sidebar menu -> Administration -> Manage Languages - Ensure there is, in the set of languages shown, one with an unchecked "Enabled" checkbox (ie. disabled by default) 2. Go to Groups, select or create a new group 3. Go to Settings -> Languages 4. Add the "disabled by default" language 5. Go to projects and either - create a basic, all defaults project (no overrides) - alter an existing one to remove the overrides 6. Add a source document to the project version if none exist 7. Go back to Groups -> the created group 8. Go to Settings -> Projects 9. Add the project version as was created/altered above 10. Click languages - See the disabled language is there, but with no warnings 11. Click the language so that it shows the project in the sidebar 12. Click the project name - See that it proceeds to a document list 13. Click the document Actual results: 22/11/13 14:30:34 Failed to load data from server Expected results: Should never have got this far - the group page should recognised the disabled by default language and presented an error. Additional info: My fingers hurt after typing this bug.
Additional to this bug: We might need to disabled the link to editor if the locale is missing from the project.
Pull request: https://github.com/zanata/zanata-server/pull/285 Commits: https://github.com/zanata/zanata-server/commit/706d137d5a42fb97162934cfb5b55966894e8038 https://github.com/zanata/zanata-server/commit/18bb273e8f2f165dadb0220a4e6dd319f3de2ba8
The fix has created a new bug, where a language selected immediately after being added causes an exception.
Created attachment 828467 [details] Test run log file
As in github, @Damian Jansen please retest this.
Verified at 2a815b3473d0d4294434e5756bcb7888a8b33d9d