/[Apache-SVN]
ViewVC logotype

Revision 674281


Jump to revision: Previous Next
Author: rdonkin
Date: Sun Jul 6 10:23:15 2008 UTC (15 years, 9 months ago)
Changed paths: 3
Log Message:
This change breaks backwards compatibility but I think is justified. I agree that defaulting is appropriate for TEXT types but is very unreliable for other types. For many types conversion to characters is not appropriate (for example, image/png). For other types, the type itself contains charset meta-data (for example application/xhtml+xml). By defaulting in these cases information is lost: it is not possible to destinguish between the case when the charset parameters is explicitly set to us-ascii and when the charset is unset. Non TEXT types cannot be assumed to default to us-ascii and so this behaviour is potentially dangerous.

Changed paths

Path Details
Directoryjames/mime4j/trunk/src/main/java/org/apache/james/mime4j/ContentDescriptor.java modified , text changed
Directoryjames/mime4j/trunk/src/main/java/org/apache/james/mime4j/DefaultBodyDescriptor.java modified , text changed
Directoryjames/mime4j/trunk/src/test/java/org/apache/james/mime4j/BaseTestForBodyDescriptors.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26