xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r828814 - in /xmlgraphics/commons/trunk: src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java status.xml
Date Thu, 22 Oct 2009 18:52:34 GMT
Author: jeremias
Date: Thu Oct 22 18:52:33 2009
New Revision: 828814

URL: http://svn.apache.org/viewvc?rev=828814&view=rev
Log:
Bugfix: Properly handle file URLs where URL.getHost() is an empty string.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
    xmlgraphics/commons/trunk/status.xml

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java?rev=828814&r1=828813&r2=828814&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
Thu Oct 22 18:52:33 2009
@@ -243,7 +243,7 @@
         } else {
             try {
                 String filename = "";
-                if (url.getHost() != null) {
+                if (url.getHost() != null && url.getHost().length() > 0) {
                     filename += Character.toString(File.separatorChar)
                             + Character.toString(File.separatorChar)
                             + url.getHost();

Modified: xmlgraphics/commons/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/status.xml?rev=828814&r1=828813&r2=828814&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/status.xml (original)
+++ xmlgraphics/commons/trunk/status.xml Thu Oct 22 18:52:33 2009
@@ -41,6 +41,9 @@
   <changes>
     <release version="Trunk" date="n/a">
       <action context="Code" dev="JM" type="fix">
+        Bugfix: Properly handle file URLs where URL.getHost() is an empty string.
+      </action>
+      <action context="Code" dev="JM" type="fix">
         Bugfix: Clip area got lost while cloning GraphicContext.
       </action>
       <action context="Code" dev="MB" type="add">



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message