Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 90403 invoked from network); 6 Dec 2010 16:05:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 16:05:38 -0000 Received: (qmail 59188 invoked by uid 500); 6 Dec 2010 16:05:37 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 58971 invoked by uid 500); 6 Dec 2010 16:05:37 -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 58944 invoked by uid 99); 6 Dec 2010 16:05:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 16:05:35 +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:05:32 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB6G5B3U000408 for ; Mon, 6 Dec 2010 16:05:11 GMT Message-ID: <19965709.130131291651511542.JavaMail.jira@thor> Date: Mon, 6 Dec 2010 11:05:11 -0500 (EST) From: "Dennis Brakhane (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-1253) ivy.xml that contains UTF-8 encoded umlauts in conf description 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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-1253?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Dennis Brakhane updated IVY-1253: --------------------------------- Attachment: ivy.xml FIle attached > ivy.xml that contains UTF-8 encoded umlauts in conf description cannot be= bigger than 10000 bytes > -------------------------------------------------------------------------= ------------------------ > > 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 would attach the test file, but it seems I can't do this, I'll just pas= te a shortened version here: > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation=3D > "http://ant.apache.org/ivy/schemas/ivy.xsd"> > > > > > > =20 > > > > > As already stated, either removing the "=C3=A4" from "test=C3=A4" or maki= ng the file 10000 bytes or less gets rid of the problem. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.