You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Scott Banachowski (JIRA)" <ji...@apache.org> on 2009/10/29 21:44:01 UTC

[jira] Created: (AVRO-176) file status is not checked before attempting to read it in c++

file status is not checked before attempting to read it in c++
--------------------------------------------------------------

                 Key: AVRO-176
                 URL: https://issues.apache.org/jira/browse/AVRO-176
             Project: Avro
          Issue Type: Bug
          Components: c++
            Reporter: Scott Banachowski


When an istream object is passed to the avro compiler, it doesn't check if the file is actually opened successfully before attempting to read it.  This leads to a bug when the wrong path for a schema file is provided.





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


[jira] Updated: (AVRO-176) file status is not checked before attempting to read it in c++

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

Scott Banachowski updated AVRO-176:
-----------------------------------

    Attachment: AVRO-176.patch

Adds a safeguard check for a bad istream.  Also adds unit tests for it.


> file status is not checked before attempting to read it in c++
> --------------------------------------------------------------
>
>                 Key: AVRO-176
>                 URL: https://issues.apache.org/jira/browse/AVRO-176
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: AVRO-176.patch
>
>
> When an istream object is passed to the avro compiler, it doesn't check if the file is actually opened successfully before attempting to read it.  This leads to a bug when the wrong path for a schema file is provided.

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


[jira] Updated: (AVRO-176) file status is not checked before attempting to read it in c++

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

Scott Banachowski updated AVRO-176:
-----------------------------------

    Status: Patch Available  (was: Open)

> file status is not checked before attempting to read it in c++
> --------------------------------------------------------------
>
>                 Key: AVRO-176
>                 URL: https://issues.apache.org/jira/browse/AVRO-176
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: AVRO-176.patch
>
>
> When an istream object is passed to the avro compiler, it doesn't check if the file is actually opened successfully before attempting to read it.  This leads to a bug when the wrong path for a schema file is provided.

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


[jira] Updated: (AVRO-176) file status is not checked before attempting to read it in c++

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

Scott Banachowski updated AVRO-176:
-----------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed revision 831187.

> file status is not checked before attempting to read it in c++
> --------------------------------------------------------------
>
>                 Key: AVRO-176
>                 URL: https://issues.apache.org/jira/browse/AVRO-176
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: AVRO-176.patch
>
>
> When an istream object is passed to the avro compiler, it doesn't check if the file is actually opened successfully before attempting to read it.  This leads to a bug when the wrong path for a schema file is provided.

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