Skip to content

xmlhandler "read" doesn't return error when file doesn't exist #389

Description

@avilleret

On Ubuntu, if path is a directory, I do receive an error.
If it is a file it returns 0.
If it point to nothing (i.e. the file doesn't exists) it returns 0.
This is weird and thus I have no clue if the file is read correctly.

I didn't test on other platform.
The code involved for this test is on JamomaPureData repo but something similar appear in JamomaMax code.
see : https://github.com/jamoma/JamomaPureData/blob/master/library/source/JamomaForPd.cpp#L130

AFAIK, this might be due to libxml xmlNewTextReaderFilename method that doesn't return an error code when the file doesn't exist. So this is a bug of libxml2. But I think we can find a workaround.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions