Konrad Windszus created SLING-7430:
--------------------------------------

             Summary: Invalid assumptions in 
SlingSpecificsSightlyIT#testI18nBasename
                 Key: SLING-7430
                 URL: https://issues.apache.org/jira/browse/SLING-7430
             Project: Sling
          Issue Type: Bug
          Components: Scripting
            Reporter: Konrad Windszus
            Assignee: Radu Cotescu


The test at 
https://github.com/apache/sling-org-apache-sling-scripting-sightly-testing/blob/905ffd59bebd8d9adaa5d172d169e6eac1469a03/src/test/java/org/apache/sling/scripting/sightly/it/SlingSpecificsSightlyIT.java#L342
 incorrectly assumes that the key being returned when no basename is set is 
always the key from the dictionary not having the property {{sling:basename}} 
is set. This is wrong according to both documentation 
https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html#resourcebundle-with-base-names
 and implementation in i18n.

Although the implementation might change in the future (SLING-7429) right now 
the IT needs to be fixed to also accept value "die Bank" being returned 
(https://github.com/apache/sling-org-apache-sling-scripting-sightly-testing-content/blob/91e9397133eea906372aae2ea1f4a1e2e46f4c70/src/main/resources/SLING-INF/apps/sightly/locales/de_finance_basename.json#L13)
 even when no explicit basename is set.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to