Skip to content

UnsupportedOperationException: View 'unix' not available #371

Closed

Description

@glebsts

Hello,
thank you for cool library. I was impressed at Geekout and started building project with that.
My desktop OS is Windows.

https://github.com/testcontainers/testcontainers-java/blob/master/core/src/main/java/org/testcontainers/utility/MountableFile.java#L269
try { return (int) Files.getAttribute(path, "unix:mode"); } catch (IOException e) { // fallback for non-posix environments .....

If we look at javadoc for Files.getAttribute(), and its source in JDK, we can see and trace that in case of not-existing attribute view (as 'unix' if file is on windows file system), UnsupportedOperationException is thrown, not IOException. Everything fails here without any fallback to non-posix env.

Is it a (known) bug, or I am doing something wrong?

Activity

  1. rnorth commented on Jun 18, 2017

    @rnorth
    Member

    Ah, thanks for using the library and reporting this @glebsts.

    It looks like this is a bug - I must have missed that it's an UnsupportedOperationException that's thrown, so I apologise. We can fix this fairly easily, though.

  2. added this to the 1.3.1 milestone on Jun 18, 2017
  3. glebsts commented on Jun 20, 2017

    @glebsts
    ContributorAuthor

    Added PR #376

    Wonder why selenium tests failed on that? https://travis-ci.org/testcontainers/testcontainers-java/jobs/244861859

  4. bsideup commented on Jun 20, 2017

    @bsideup
    Member

    Hi @glebsts,

    Flaky test, I'll re-trigger. See #373

  5. added a commit that references this issue on Jun 20, 2017
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions