From notifications-return-14439-apmail-ant-notifications-archive=ant.apache.org@ant.apache.org Mon Dec 06 16:14:35 2010 Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 92520 invoked from network); 6 Dec 2010 16:14:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 16:14:35 -0000 Received: (qmail 76338 invoked by uid 500); 6 Dec 2010 16:14:35 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 76241 invoked by uid 500); 6 Dec 2010 16:14:33 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 76225 invoked by uid 99); 6 Dec 2010 16:14:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 16:14:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 16:14:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB6GEAMK000507 for ; Mon, 6 Dec 2010 16:14:11 GMT Message-ID: <5979715.130201291652050613.JavaMail.jira@thor> Date: Mon, 6 Dec 2010 11:14:10 -0500 (EST) From: "Dennis Brakhane (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-1253) ivy.xml that contains UTF-8 encoded umlauts cannot be bigger than 10000 bytes In-Reply-To: <14580125.130121291651510690.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IVY-1253?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Dennis Brakhane updated IVY-1253: --------------------------------- Description:=20 When an ivy.xml contains a with a description, and that description = includes a non-ASCII character (or at least an '=C3=A4'), the ivy.xml must not be bigger than exactly 10000 Bytes. When the file is even = one byte bigger, the following exception is thrown: $ java -jar /usr/share/ant/lib/ivy-2.1.0.jar -verbose -confs core :: loading settings :: url =3D jar:file:/usr/share/java/ivy-2.1.0.jar!/org/= apache/ivy/core/settings/ivysettings.xml no default ivy user dir defined: set to /home/dennis/.ivy2 including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-public.xml no default cache defined: set to /home/dennis/.ivy2/cache including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-shared.xml including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-local.xml including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-main-chain.xml including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-default-chain.xml settings loaded (141ms) =09default cache: /home/dennis/.ivy2/cache =09default resolver: default =09-- 5 resolvers: =09shared [file] =09default [chain] [local, main] =09local [file] =09public [ibiblio] =09main [chain] [shared, public] using ivy parser to parse file:/tmp/ivy.xml :: resolving dependencies :: test#test;working@thinky =09confs: [core] =09validate =3D true =09refresh =3D false resolving dependencies for configuration 'core' =3D=3D resolving dependencies for test#test;working@thinky [core] Exception in thread "main" java.io.IOException: Resetting to invalid mark =09at java.io.BufferedInputStream.reset(BufferedInputStream.java:433) =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update(X= mlModuleDescriptorUpdater.java:743) =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update(X= mlModuleDescriptorUpdater.java:139) =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.toIvyFile= (XmlModuleDescriptorParser.java:143) =09at org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.toIvyFi= le(DefaultModuleDescriptor.java:527) =09at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:= 246) =09at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:= 193) =09at org.apache.ivy.Ivy.resolve(Ivy.java:502) =09at org.apache.ivy.Main.run(Main.java:270) =09at org.apache.ivy.Main.main(Main.java:179) This happens with both 2.1.0 and 2.2.0, haven't tried 2.0 so far. I've attached the test file. As already stated, either removing the "=C3=A4= " from "test=C3=A4" or making the file 10000 bytes or less gets rid of the = problem. It seems like even an Umlaut in a comment leads to this problem. Just addin= g one byte in front of the umlaut (to see if a streaming reader unintentionally split the utf-8 byte) does not seem to help either. was: When an ivy.xml contains a with a description, and that description = includes a non-ASCII character (or at least an '=C3=A4'), the ivy.xml must not be bigger than exactly 10000 Bytes. When the file is even = one byte bigger, the following exception is thrown: $ java -jar /usr/share/ant/lib/ivy-2.1.0.jar -verbose -confs core :: loading settings :: url =3D jar:file:/usr/share/java/ivy-2.1.0.jar!/org/= apache/ivy/core/settings/ivysettings.xml no default ivy user dir defined: set to /home/dennis/.ivy2 including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-public.xml no default cache defined: set to /home/dennis/.ivy2/cache including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-shared.xml including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-local.xml including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-main-chain.xml including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/core/= settings/ivysettings-default-chain.xml settings loaded (141ms) =09default cache: /home/dennis/.ivy2/cache =09default resolver: default =09-- 5 resolvers: =09shared [file] =09default [chain] [local, main] =09local [file] =09public [ibiblio] =09main [chain] [shared, public] using ivy parser to parse file:/tmp/ivy.xml :: resolving dependencies :: test#test;working@thinky =09confs: [core] =09validate =3D true =09refresh =3D false resolving dependencies for configuration 'core' =3D=3D resolving dependencies for test#test;working@thinky [core] Exception in thread "main" java.io.IOException: Resetting to invalid mark =09at java.io.BufferedInputStream.reset(BufferedInputStream.java:433) =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update(X= mlModuleDescriptorUpdater.java:743) =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update(X= mlModuleDescriptorUpdater.java:139) =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.toIvyFile= (XmlModuleDescriptorParser.java:143) =09at org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.toIvyFi= le(DefaultModuleDescriptor.java:527) =09at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:= 246) =09at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:= 193) =09at org.apache.ivy.Ivy.resolve(Ivy.java:502) =09at org.apache.ivy.Main.run(Main.java:270) =09at org.apache.ivy.Main.main(Main.java:179) This happens with both 2.1.0 and 2.2.0, haven't tried 2.0 so far. I've attached the test file. As already stated, either removing the "=C3=A4= " from "test=C3=A4" or making the file 10000 bytes or less gets rid of the = problem. Summary: ivy.xml that contains UTF-8 encoded umlauts cannot be bigg= er than 10000 bytes (was: ivy.xml that contains UTF-8 encoded umlauts in c= onf description cannot be bigger than 10000 bytes) > ivy.xml that contains UTF-8 encoded umlauts cannot be bigger than 10000 b= ytes > -------------------------------------------------------------------------= ---- > > Key: IVY-1253 > URL: https://issues.apache.org/jira/browse/IVY-1253 > Project: Ivy > Issue Type: Bug > Components: Core > Environment: Debian Testing > java version "1.6.0_18" > OpenJDK Runtime Environment (IcedTea6 1.8.2) (6b18-1.8.2-3) > OpenJDK Client VM (build 16.0-b13, mixed mode, sharing) > Reporter: Dennis Brakhane > Attachments: ivy.xml > > > When an ivy.xml contains a with a description, and that descriptio= n includes a non-ASCII character (or at least an '=C3=A4'), the > ivy.xml must not be bigger than exactly 10000 Bytes. When the file is eve= n one byte bigger, the following exception is thrown: > $ java -jar /usr/share/ant/lib/ivy-2.1.0.jar -verbose -confs core > :: loading settings :: url =3D jar:file:/usr/share/java/ivy-2.1.0.jar!/or= g/apache/ivy/core/settings/ivysettings.xml > no default ivy user dir defined: set to /home/dennis/.ivy2 > including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/cor= e/settings/ivysettings-public.xml > no default cache defined: set to /home/dennis/.ivy2/cache > including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/cor= e/settings/ivysettings-shared.xml > including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/cor= e/settings/ivysettings-local.xml > including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/cor= e/settings/ivysettings-main-chain.xml > including url: jar:file:/usr/share/java/ivy-2.1.0.jar!/org/apache/ivy/cor= e/settings/ivysettings-default-chain.xml > settings loaded (141ms) > =09default cache: /home/dennis/.ivy2/cache > =09default resolver: default > =09-- 5 resolvers: > =09shared [file] > =09default [chain] [local, main] > =09local [file] > =09public [ibiblio] > =09main [chain] [shared, public] > using ivy parser to parse file:/tmp/ivy.xml > :: resolving dependencies :: test#test;working@thinky > =09confs: [core] > =09validate =3D true > =09refresh =3D false > resolving dependencies for configuration 'core' > =3D=3D resolving dependencies for test#test;working@thinky [core] > Exception in thread "main" java.io.IOException: Resetting to invalid mark > =09at java.io.BufferedInputStream.reset(BufferedInputStream.java:433) > =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update= (XmlModuleDescriptorUpdater.java:743) > =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update= (XmlModuleDescriptorUpdater.java:139) > =09at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.toIvyFi= le(XmlModuleDescriptorParser.java:143) > =09at org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.toIvy= File(DefaultModuleDescriptor.java:527) > =09at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.jav= a:246) > =09at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.jav= a:193) > =09at org.apache.ivy.Ivy.resolve(Ivy.java:502) > =09at org.apache.ivy.Main.run(Main.java:270) > =09at org.apache.ivy.Main.main(Main.java:179) > This happens with both 2.1.0 and 2.2.0, haven't tried 2.0 so far. > I've attached the test file. As already stated, either removing the "=C3= =A4" from "test=C3=A4" or making the file 10000 bytes or less gets rid of t= he problem. > It seems like even an Umlaut in a comment leads to this problem. Just add= ing one byte in front of the umlaut (to see if a streaming reader > unintentionally split the utf-8 byte) does not seem to help either. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.