Skip to content

Fix #50678: files extracted by ZipArchive class lost their original mtime #1291

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

Closed
wants to merge 2 commits into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented May 21, 2015

It might be considered to trigger an E_NOTICE if setting of the mtime fails, but that might even be a bigger BC break as the patch is now. Not sure…

@cmb69
Copy link
Member Author

cmb69 commented May 21, 2015

Ah, yes, I should explicitly note that setting the potentially stored atime and ctime (as stated in the expected result of the report) is not done, because they're not available from current libzip versions.

@smalyshev smalyshev added the Bug label May 22, 2015
@smalyshev
Copy link
Contributor

The test does not seem to work, @cmb69 please take a look

@cmb69
Copy link
Member Author

cmb69 commented May 22, 2015

@smalyshev Hmm, I've just double-checked (on Windows) and everything seems to be fine. I've reverted the fix, so Travis can check the test only – which is supposed to fail now.

@cmb69
Copy link
Member Author

cmb69 commented May 22, 2015

Well, interestingly, the Travis build failed with quite a lot of errors, even though nothing had been changed in the sources (only a test case has been added)…

…time

Let's restore the mtime; by the way, neither ctime nor atime are stored by
libzip, so we can't restore these.
@cmb69 cmb69 changed the title fix bug #50678: files extracted by ZipArchive class loose their original modified time Fix #50678: files extracted by ZipArchive class lost their original mtime Jun 29, 2015
@cmb69
Copy link
Member Author

cmb69 commented Jul 16, 2015

Um, the regression test was failing on Travis, but neither on my Windows nor Linux environment. Might be related to file permissions. I've loosened the test – let's see what's happening.

@krakjoe
Copy link
Member

krakjoe commented Jan 6, 2017

@cmb69 the test still seems to fail on travis, I tried to restart the build, but that failed ... maybe if you rebase it will trigger a build with new travis config, not sure.

Maybe you could have a fresh look at this ?

@cmb69
Copy link
Member Author

cmb69 commented Jan 6, 2017

Maybe you could have a fresh look at this ?

Apparently, the test failure is caused by timezone issues. I'll investigate.

@krakjoe
Copy link
Member

krakjoe commented Feb 22, 2017

@cmb69 status please ?

If you consider this abandoned, or it was superseded by another PR, please close this PR.

@cmb69
Copy link
Member Author

cmb69 commented Feb 22, 2017

For time reasons, I'm closing this PR. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants