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

[FIX] UrlReader: shorten TempFile extension #4747

Merged
merged 1 commit into from
May 13, 2020

Conversation

PrimozGodec
Copy link
Contributor

Issue

It can happen that the file name is too long due to the long suffix of the temp-file (the suffix is complete path joined together with _). It invokes File name too long: 'filename' error.
This is one of the issues causing that tests cannot run on cond-forge where file paths are really long conda-forge/orange3-feedstock#77

Description of changes

Temfile does not get a complete name as a suffix but just an ending which makes sure that the correct reader reads the file.

I do not know what exactly is the reason that complete path was provided as a name so I hope that I didn't break anything.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented May 8, 2020

Codecov Report

Merging #4747 into master will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4747      +/-   ##
==========================================
- Coverage   83.80%   83.76%   -0.04%     
==========================================
  Files         280      275       -5     
  Lines       56496    55682     -814     
==========================================
- Hits        47344    46640     -704     
+ Misses       9152     9042     -110     

@janezd janezd merged commit 4b84b39 into biolab:master May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants