We're updating the issue view to help you get more done. 

Improper use of platform default encoding by DefaultFileHandler when reading/filtering text files

Description

The GlassFishStandaloneLocalConfiguration uses FileHandler.replaceInFile() to filter the domain.xml. The file handler is however completely unaware of any encoding constraints and blindly uses the platform default encoding to read/write the file (XML files default to UTF-8 however).

I suggest to deprecate all existing file reading/filtering methods in the handler and replace them with overloads that take an explicit encoding parameter. This would allow GlassFishStandaloneLocalConfiguration to pass in UTF-8 as the proper encoding for the file being processed.

Status

Assignee

Savas Ali Tokmen

Reporter

Benjamin Bentmann

Components

Fix versions

Affects versions

1.0.6

Priority

Minor