Skip to content
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

Properly detect if fopen fails for txt previews #7453

Merged
merged 1 commit into from
Dec 11, 2017
Merged

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Dec 11, 2017

Our sentry instance found 2 occurrences where apparently the fopen failed, no clue why it failed.. Better not to start throwing exceptions and just return false so we know no preview was generated.

easy one

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@MorrisJobke MorrisJobke mentioned this pull request Dec 11, 2017
28 tasks
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 11, 2017
@codecov
Copy link

codecov bot commented Dec 11, 2017

Codecov Report

Merging #7453 into master will decrease coverage by <.01%.
The diff coverage is 50%.

@@             Coverage Diff              @@
##             master    #7453      +/-   ##
============================================
- Coverage     51.08%   51.08%   -0.01%     
- Complexity    24869    24870       +1     
============================================
  Files          1596     1596              
  Lines         94628    94630       +2     
  Branches       1367     1367              
============================================
+ Hits          48345    48346       +1     
- Misses        46283    46284       +1
Impacted Files Coverage Δ Complexity Δ
lib/private/Preview/TXT.php 73.52% <50%> (-1.48%) 10 <0> (+1)

@rullzer rullzer merged commit e1740c9 into master Dec 11, 2017
@rullzer rullzer deleted the txt_fopen_error branch December 11, 2017 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement feature: previews and thumbnails
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants