Skip to content

File.chown throws "SystemCallError:Unknown error (SystemCallError)" at Windows11 on Arm64 #7937

@rammpeter

Description

@rammpeter

Environment Information

  • jRuby 9.4.3.0
  • Windows 11 preview on Arm64 build 25915.1000 rs_prerelease

Expected Behavior
File.chown(0, 0, 'C:/....'); on existing writable file should not throw exception like it does on other OS including Windows 10 on x86_64

Actual Behavior
Executing

File.chown(0, 0, 'C:/.....');

for an existing file or dir throws the exception SystemCallError: Unknown error (SystemCallError) - No message available.

Reproduced by running java -jar jruby-core-9.4.3.0-complete.jar and typing the command File.chown(0, 0, 'C:/.....');.

The original problem occurred because a RubyOnRails app running in jRuby failed on Windows 11 at ARM64 CPU at call of File.chown.
See also: rails/rails#49295

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions