ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Brakhane (JIRA)" <>
Subject [jira] Created: (IVY-1253) ivy.xml that contains UTF-8 encoded umlauts in conf description cannot be bigger than 10000 bytes
Date Mon, 06 Dec 2010 16:05:10 GMT
ivy.xml that contains UTF-8 encoded umlauts in conf description cannot be bigger than 10000

                 Key: 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 <conf> with a description, and that description includes
a non-ASCII character (or at least an 'ä'), 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 = 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)
	default cache: /home/dennis/.ivy2/cache
	default resolver: default
	-- 5 resolvers:
	shared [file]
	default [chain] [local, main]
	local [file]
	public [ibiblio]
	main [chain] [shared, public]
using ivy parser to parse file:/tmp/ivy.xml
:: resolving dependencies :: test#test;working@thinky
	confs: [core]
	validate = true
	refresh = false
resolving dependencies for configuration 'core'
== resolving dependencies for test#test;working@thinky [core]
Exception in thread "main" Resetting to invalid mark
	at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update(
	at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater.update(
	at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.toIvyFile(
	at org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.toIvyFile(
	at org.apache.ivy.core.resolve.ResolveEngine.resolve(
	at org.apache.ivy.core.resolve.ResolveEngine.resolve(
	at org.apache.ivy.Ivy.resolve(
	at org.apache.ivy.Main.main(

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 paste a shortened version

<?xml version="1.0" encoding="utf-8"?>
<ivy-module version="2.0" 
        <info organisation="test" module="test"/>


            <conf name="core" description="testä"/>



<!-- just add enough bytes to make this file 10KB..-->
<!-- ...................................................................... -->

As already stated, either removing the "ä" from "testä" or making the file 10000 bytes or
less gets rid of the problem.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message