Phonesaver crashed when folders of media files group on Anexplorer was shared to it

in #utopian-io6 years ago

Project Information

Expected Behavior

Phone saver literally makes file sharing/saving very easy. Virtually everything can be shared from any application or location easily to another location using phone saver as a medium. I expected this would be possible for every operation of any shareable content.

Actual Behavior

On Anexplorer Opening any media file category groups the media files in their respective albums and it has a share button meaning those album folders can be shared. Sharing them directly to another location accessed on Phonesaver caused Phonesaver to crash.
At first this seemed like an issue of the file from anexplorer and an issue was opened on Github and it was clarified by the developers of the project that the cause of this error wasn't from Anexplorer.

Steps To Reprodcue

  • ensure phonesaver app is installed and duly setup. Create locations where files shared to phonesaver would be saved.
  • to create locations click the + sign and browse through locations. Click on here button on the bottom of the app to select it as your preferred save location.
  • launch anexplorer and access the left sliding menu by swiping from left to right
  • scroll down and select any media file category location ie Images, Video and Audio
  • these media files will be grouped in their respective albums. The albums are simply shareable folders
  • to share click the 3 dots beside the folder to reveal options and select share
  • select phonesaver
  • after phonesaver app pops up select the location that was previously set and immediately phonesaver crashes.

Test Environment

  • Software Version: PhoneSaver v 4.0.2
  • Device: Tecno Camon CM
  • Operating system: Android 7.0

Recording of the bug

Logcat

Process: link.standen.michael.phonesaver, PID: 23495
java.lang.UnsupportedOperationException: Unsupported document videos_bucket:-296394803
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
    at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:151)
    at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:692)
    at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1179)
    at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:998)
    at android.content.ContentResolver.openInputStream(ContentResolver.java:718)
    at link.standen.michael.phonesaver.activity.SaverActivity.saveUri(SaverActivity.kt:338)
    at link.standen.michael.phonesaver.activity.SaverActivity.access$saveUri(SaverActivity.kt:31)
    at link.standen.michael.phonesaver.activity.SaverActivity$handleSingle$$inlined$let$lambda$1.invoke(SaverActivity.kt:272)
    at link.standen.michael.phonesaver.activity.SaverActivity$handleSingle$$inlined$let$lambda$1.invoke(SaverActivity.kt:31)
    at link.standen.michael.phonesaver.activity.SaverActivity.getFilename(SaverActivity.kt:506)
    at link.standen.michael.phonesaver.activity.SaverActivity.getFilename(SaverActivity.kt:399)
    at link.standen.michael.phonesaver.activity.SaverActivity.handleSingle(SaverActivity.kt:271)
    at link.standen.michael.phonesaver.activity.SaverActivity.useIntent(SaverActivity.kt:157)
    at link.standen.michael.phonesaver.activity.SaverActivity.useIntent$default(SaverActivity.kt:147)
    at link.standen.michael.phonesaver.activity.SaverActivity$loadList$$inlined$let$lambda$1$1.onItemClick(SaverActivity.kt:113)
    at android.widget.AdapterView.performItemClick(AdapterView.java:315)
    at android.widget.AbsListView.performItemClick(AbsListView.java:1204)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:3309)
    at android.widget.AbsListView$3.run(AbsListView.java:4378)
    at android.os.Handler.handleCallback(Handler.java:836)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:203)
    at android.app.ActivityThread.main(ActivityThread.java:6292)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)

Proof of Work Done

This is the link to my github account

Sort:  

Hello! I find your post valuable for the wafrica community! Thanks for the great post! @wafrica is now following you! ALWAYs follow @wafrica and use the wafrica tag!

Coin Marketplace

STEEM 0.26
TRX 0.21
JST 0.038
BTC 98006.84
ETH 3638.04
USDT 1.00
SBD 3.85