Skip to content

xfile - find_file_in_zip tries to open a non-workbook xml file #117

Closed

Description

@itsmarco

Hello,

I was parsing some packaged workbooks with and I encountered a problem. A .twbx I was trying to open had a bunch of .key files in it, which adhere to some xml structure. The function find_file_in_zip tries to pass this xml file on as a .twb, ultimately raising an tableaudocumentapi.xfile.TableauVersionNotSupportedException: 0.0 error.

The workbook is actually a valid workbook, and ended up not getting parsed. Manually excluding .key files fixed the issue for me.

Cheers,
Marco

Activity

  1. t8y8 commented on Dec 5, 2016

    @t8y8
    Contributor

    @itsmarco would it be possible to attach a workbook that reproduces the issue?

    I think I see where the problem is -- we return the first successfully parsed file, because the root_element check happens a layer above. One fix is to only try and parse .twb/.tds files.

  2. itsmarco commented on Dec 6, 2016

    @itsmarco
    Author

    @t8y8 unfortunately I cannot. What I can tell you is that the .twbx contains a folder named TwbxExternalCache, which contains two subfolders: TwbxResultsCacheV3 & TwbxTimestampsCacheV3. These folders contains .key & .bin files. A .key file is attached.
    .key.txt

  3. self-assigned this
    on Dec 6, 2016
  4. added a commit that references this issue on Dec 12, 2016
    fb36a3a
  5. t8y8 commented on Dec 12, 2016

    @t8y8
    Contributor

    @itsmarco this should be fixed in the development branch and included in the next release.

    Can you give it a quick try to confirm?

  6. itsmarco commented on Dec 12, 2016

    @itsmarco
    Author

    @t8y8 Fixed worked. Thanks :)

  7. t8y8 commented on Dec 12, 2016

    @t8y8
    Contributor

    Awesome! Thank you for verifying!

  8. added a commit that references this issue on Jan 11, 2017
    65fbc80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions