[ http://jira.magnolia.info/browse/MPSP-1?page=all ]
Andriy Shapochka resolved MPSP-1.
---------------------------------
Resolution: Fixed
Fixed by using the attached pom.patch on the magnolia-core pom.xml. Tested to
work on Windows XP Professional with SP 2, Ukrainian. Must work for the other
locales too.
> CurrentDateValueProvider.getValue() doesn't return UTF-8 Strings
> ----------------------------------------------------------------
>
> Key: MPSP-1
> URL: http://jira.magnolia.info/browse/MPSP-1
> Project: Magnolia SetProperty Maven Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: Windows XP SP2 / French environment
> Reporter: Anthony Ogier
> Assigned To: Philipp Bracher
> Priority: Blocker
> Fix For: 1.0.1
>
> Attachments: pom.patch
>
>
> In the main pom.xml of Magnolia, somewhere there is :
> <property
> implementation="info.magnolia.maven.setproperty.CurrentDateValueProvider">
> <name>magnolia.releaseDate</name>
> <format>d. MMMM yyyy</format>
> </property>
> So one can use ${magnolia.releaseDate}, as in
> magnolia-core/info/magnolia/cms/license/license.xml for example.
> The problem is that in my french environment, we are now in December, which
> is written "Décembre" in french, and when loading Magnolia in Tomcat, I've
> got :
> ERROR info.magnolia.cms.license.LicenseFileExtractor
> LicenseFileExtractor.java(init:107) 04.12.2006 17:43:39 failed to load
> license information
> ERROR info.magnolia.cms.license.LicenseFileExtractor
> LicenseFileExtractor.java(init:108) 04.12.2006 17:43:39 Invalid byte 2 of
> 3-byte UTF-8 sequence.
> java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence.
> at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
> at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
> at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
> at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
> at
> info.magnolia.cms.license.LicenseFileExtractor.init(LicenseFileExtractor.java:103)
> at
> info.magnolia.cms.license.LicenseFileExtractor.init(LicenseFileExtractor.java:97)
> at
> info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:110)
> at
> info.magnolia.cms.beans.config.ConfigLoader.<init>(ConfigLoader.java:100)
> at
> info.magnolia.cms.servlets.PropertyInitializer.contextInitialized(PropertyInitializer.java:212)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
> ...
> So, the CurrentDateValueProvider should render UTF-8 values (or add an
> "encoding" feature) in order to avoid that problem.
> It is actually a Blocker problem for releasing our customized version of
> Magnolia.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------