-
-
Notifications
You must be signed in to change notification settings - Fork 923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stat.writable? incorrectly reporting false for some directories on Windows 7 #3505
Comments
@enebo It looks like we have more work. |
I'm also seeing this pop up when upgrading from jruby-1.7.22 to jruby-1.7.23. This is what the error looks like to a user when running rspec or anything that uses Dir.tmpdir:
|
@olleolleolle and @rallenecraft - this may be the issue we've been seeing also, or related to it. |
@nirvdrum, @aschmied, @enebo - I did a bit of R&D on the subject in jnr/jnr-posix#67. Unfortunately far from closing this yet, but we are getting started. More details there. I guess I may have to clone the whole JRuby code and add some more debugging there... it could actually be an idea. Thus far, I've only tried debugging it on the jnr-posix side. |
@perlun I mentioned in a comment in that PR that I think this is a generic mode issue and not platform specific. I also thought (cannot 100% remember for sure :| ) that I saw this while only step-debugging through jnr-posix itself. It would make sense that this would be jnr-posix only issue since the JRuby side is not modifying the mode value. getting mode value to match should fix all issues... |
@perlun Now that we're past the holidays, do you have any updates on this? We can get your jnr-posix PR merged in, but it sounds like we have more work to do. |
Unfortunately not, yet.
I think so yes. My main problem was that I wasn't able to reproduce the problem, in I have a Windows 8 and a Windows 10 VM so testing any suggested fix is rather easy. |
Ahh I can help you run against an updated jnr-posix. First, in jnr-posix, run:
This should install a SNAPSHOT of jnr-posix in your local repository. Then in JRuby, edit Do a full |
This is crazy. 1.7.23 was not released with the latest version of jnr-posix. I was hurrying because of my impending travel but there is no excuse for this. I am sorry I did not update this as jnr-posix 3.0.22 had some serious issues. Strangely none of our acceptance tests hit it and we still do not have CI properly working on appveyor yet. Appveyor will happen soon since I don't ever want to repeat this... @perlun can I ask you to build and verify that things work on your various windows boxen? It is possible there is still an issue but the basic issue I can see was fixed between 3.0.22 and 3.0.23 of jnr-posix. |
Great @enebo - that would explain things, since I was absolutely unable to repro any of this w/ I rebuilt now from the latest Any chance we can have a JRuby 1.7 released w/ this fix included in the near future? Many thanks.
|
@perlun one more fix involving stat on windows and we should be good for another release. Looking at this week. |
The build contains jruby-jars 1.7.24 which should fix Windows deployments (see jruby/jruby#3505). Signed-off-by: Kill Bill core team <contact@killbill.io>
In 1.7.22:
In 1.7.23:
I noticed this because it broke
Dir.tmpdir
on this system: every candidate temp directory is skipped.The text was updated successfully, but these errors were encountered: