Proove that a overwrite file for en-GB are created and contain the above created language constant
Create a new overwrite, Create a key as in one of the reserved words mentioned in Specification for language files like NO, YES, etc. (I tested with "YES" and "NO")
The expected behaviour should be that the key is not saved and the User should get a message, that the key could not be saved, because he used one of the reserved words [List of reserved words]
Joomla: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
Joomla Platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
PHP: 5.5.9-1ubuntu4.5
DB: MySQL 5.5.40-0ubuntu0.14.04.1
Apache: Apache/2.4.7 (Ubuntu)
Used Template: Isis
Neither and good practice should be not using of reserved words.. but as keeping the system robust and error-resistant there should be a check added.
Priority | Urgent | ⇒ | Medium |
Category | Administration Language & Strings Multilanguage Templates (admin) Templates (site) UI/UX | ⇒ | Administration Language & Strings Templates (admin) Templates (site) UI/UX |
Well let's say I've created 20, 50 or more overrides, which could be deleted by one! accidential error in naming of the Key, YES instead of ZES for example.
(English KB layout. with German KB layout)
The system message indicates everything is alright, successfully saved.
I jump to the next language do the same (have the key / content c&p )
In this way I could with ease losing all existing overwrites in minutes!
Because the system still say everything alright.
I would say this is an urgent bug.
Because of this points:
And the only way to restore the values is, to type them manually or, god hope, have a backup of the overwrite file.
Additionally the only hint on the reserved words list I found in the Specification mentioned above.
Although there is no destruction of any files, saving a reserved word as constant when creating an override kills the site with a Fatal Error.
I made a PR preventing from saving such reserved words when using the Language Manager: Edit/new override. Please test.
#5877
NOTE: To be able to fully debug the xx-XX.override.ini files, we need another more complex PR
Well I tested with j3.3.6, the behavior is there, that it will be saved without results in fatal error.
The destruction was meaned as it deletes all previous constants in that xx-xx.ovewrite.ini
When saving a reserved word as key.
Thanks for the PR. I will test it, when I found out how.. ;-)
Thanks for the PR. I will test it, when I found out how.. ;-)
@bluezeyes please have a look into the patchtester:
https://docs.joomla.org/Testing_Joomla!_patches
https://docs.joomla.org/Component_Patchtester_for_Testers
DL:
https://github.com/joomla-extensions/patchtester/releases/tag/2.0.beta
Closing as we have a patch
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-01-23 10:10:00 |
Thanks zero-24
Labels |
Added:
?
|
It is a known issue that overrides are not checked for parsing problems and therefore will not show when debug language is on. Changing status as this is not an Urgent bug.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5864.