Skip to content

Conversation

@stephanritscher
Copy link
Contributor

This closes #2131 and closes #4220.

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@codecov
Copy link

codecov bot commented Oct 1, 2019

Codecov Report

Merging #4470 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##             master   #4470      +/-   ##
===========================================
+ Coverage     16.98%     17%   +0.01%     
  Complexity        3       3              
===========================================
  Files           364     364              
  Lines         32065   32065              
  Branches       4515    4515              
===========================================
+ Hits           5446    5452       +6     
+ Misses        25724   25722       -2     
+ Partials        895     891       -4
Impacted Files Coverage Δ Complexity Δ
...a/com/owncloud/android/utils/FileStorageUtils.java 20.09% <0%> (ø) 0 <0> (ø) ⬇️
...cloud/android/ui/activity/FileDisplayActivity.java 20.01% <0%> (+0.16%) 0% <0%> (ø) ⬇️
.../third_parties/daveKoeller/AlphanumComparator.java 82.14% <0%> (+1.19%) 0% <0%> (ø) ⬇️
...in/java/com/owncloud/android/datamodel/OCFile.java 64.67% <0%> (+1.37%) 0% <0%> (ø) ⬇️

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@tobiasKaminsky
Copy link
Member

@stephanritscher thank you for this finding! 🎉
I took the freedom to reformat it a bit, so that it fits into one line and additionally it is more clear that the replaceAll is for the entire path.

I also added some test cases, only for this function.

@tobiasKaminsky
Copy link
Member

/backport to stable-3.8

@nextcloud-android-bot
Copy link
Collaborator

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/11036.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@nextcloud-android-bot
Copy link
Collaborator

@backportbot-nextcloud
Copy link

backport to stable-3.8 in #4587

@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.9.0 milestone Oct 1, 2019
tobiasKaminsky added a commit that referenced this pull request Oct 2, 2019
ea696c5 Merge pull request #4425 from nextcloud/autoUploadSubfolder
37c6600 Upload files into subfolder
a1c28f9 Merge pull request #4470 from stephanritscher/master
9c1fedb add test cases
6184fcd add test cases
0f97564 Merge pull request #4208 from nextcloud/ezaquarii/new-media-player-service
d83792e [tx-robot] updated from transifex
9a2fc28 [tx-robot] updated from transifex
f10843e daily dev 20190928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants