You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by "Ricky Hazelwood (JIRA)" <ji...@apache.org> on 2007/11/26 09:01:05 UTC

[jira] Created: (DDLUTILS-186) WriteDataToDatabaseCommand throws MalFormedURL if used with commons-digester 1.8

WriteDataToDatabaseCommand  throws MalFormedURL if used with commons-digester 1.8
---------------------------------------------------------------------------------

                 Key: DDLUTILS-186
                 URL: https://issues.apache.org/jira/browse/DDLUTILS-186
             Project: DdlUtils
          Issue Type: Bug
          Components: Core (No specific database)
    Affects Versions: 1.0
            Reporter: Ricky Hazelwood
            Assignee: Thomas Dudziak


The parse method on the Digester class in commons-digester-1.8 was changed to use URL rather than FileInputStream to get InputSource. WriteDataToDatabaseCommand takes the input file and passes file.getAbsolutePath() to DatabaseDataIO which in turn passes that string to Digester parse method. Since the file is passed as string without 'file:' prefix, new URL(filename) throws a MalFormedURL  exception (missing protocol)

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


[jira] Commented: (DDLUTILS-186) WriteDataToDatabaseCommand throws MalFormedURL if used with commons-digester 1.8

Posted by "John Armstrong (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DDLUTILS-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605197#action_12605197 ] 

John Armstrong commented on DDLUTILS-186:
-----------------------------------------

As a comment for other Google hunters:

Explicit userland fix: Just add file:// to the front of your writeDataToDataBase file command

previous: <writeDataToDatabase datafile="data.xml">

new: <writeDataToDatabase datafile="file://data.xml"/>

In this case the path stays relative which is usually what you want but you can always do a full filepath in there, its just a URI. Probably obvious to all readers but hopefully this makes it 100% clear for other folks like me.

Thanks for the Jira ticket, saved me a ton of time.



> WriteDataToDatabaseCommand  throws MalFormedURL if used with commons-digester 1.8
> ---------------------------------------------------------------------------------
>
>                 Key: DDLUTILS-186
>                 URL: https://issues.apache.org/jira/browse/DDLUTILS-186
>             Project: DdlUtils
>          Issue Type: Bug
>          Components: Core (No specific database)
>    Affects Versions: 1.0
>            Reporter: Ricky Hazelwood
>            Assignee: Thomas Dudziak
>
> The parse method on the Digester class in commons-digester-1.8 was changed to use URL rather than FileInputStream to get InputSource. WriteDataToDatabaseCommand takes the input file and passes file.getAbsolutePath() to DatabaseDataIO which in turn passes that string to Digester parse method. Since the file is passed as string without 'file:' prefix, new URL(filename) throws a MalFormedURL  exception (missing protocol)

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


[jira] Resolved: (DDLUTILS-186) WriteDataToDatabaseCommand throws MalFormedURL if used with commons-digester 1.8

Posted by "Thomas Dudziak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DDLUTILS-186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Dudziak resolved DDLUTILS-186.
-------------------------------------

       Resolution: Won't Fix
    Fix Version/s: 1.1

No longer necessary since Digester is no longer used in 1.1

> WriteDataToDatabaseCommand  throws MalFormedURL if used with commons-digester 1.8
> ---------------------------------------------------------------------------------
>
>                 Key: DDLUTILS-186
>                 URL: https://issues.apache.org/jira/browse/DDLUTILS-186
>             Project: DdlUtils
>          Issue Type: Bug
>          Components: Core (No specific database)
>    Affects Versions: 1.0
>            Reporter: Ricky Hazelwood
>            Assignee: Thomas Dudziak
>             Fix For: 1.1
>
>
> The parse method on the Digester class in commons-digester-1.8 was changed to use URL rather than FileInputStream to get InputSource. WriteDataToDatabaseCommand takes the input file and passes file.getAbsolutePath() to DatabaseDataIO which in turn passes that string to Digester parse method. Since the file is passed as string without 'file:' prefix, new URL(filename) throws a MalFormedURL  exception (missing protocol)

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