View Issue Details

IDProjectCategoryView StatusLast Update
0001409MantisDroid[All Projects] Defectpublic2019-01-18 16:07
ReportercheesusAssigned Toe7andy 
PriorityurgentSeverityblockReproducibilityhave not tried
Status assignedResolutionopen 
Product Version 
Target Versionnext releaseFixed in Version 
Summary0001409: File upload fails
DescriptionFile upload not working.

Permission problem? If you try to upload a file you get a toast with "[Filename] (Permission denied)" and then another toast with "Upload failed".

Uploading files from other locations than from the device also got problems:
Dropbox - App crash
Drive - File selection failed
TagsNo tags attached.

Activities

cheesus

2016-11-25 20:17

reporter   ~0000293

The app crashes or displays a toast with error message, whenever I try to upload a file to an issue

cheesus

2016-12-05 10:32

reporter   ~0000295

It's connected to app's permission to access an sd card. The app doesn't ask for this permission - just throws an error.

e7andy

2019-01-18 15:21

administrator  

Screenshot_20190114-083625.jpg (1,939,059 bytes)

e7andy

2019-01-18 15:24

administrator   ~0000313

I just realised that you can manually allow the storage permission for the app to get it to work right away without a new release.
Exactly how you enable that permission differs from device to device.
This is how you do it on my phone (Huawei P10 Plus):
Settings->Apps & notifications->Apps->MantisDroid->Permissions. Enable Storage.
Now you can download and upload files. There is another bug in the Open Attachment dialog that makes if to fail to open that downloaded file. The downloaded file is located in your Downloads folder in your device.

e7andy

2019-01-18 16:07

administrator   ~0000315

Add permission check to IssueDetailsFragment.java:
https://github.com/e7andy/mantisdroid/blob/master/legacy-android-studio/mantisdroidlibrary/src/main/java/se/nextsource/android/mantisdroid/lib/gui/issue/IssueDetailsFragment.java
Add it to the showFileChooser() method, r.753-764

Issue History

Date Modified Username Field Change
2016-11-25 20:13 cheesus New Issue
2016-11-25 20:17 cheesus Note Added: 0000293
2016-12-05 10:29 e7andy Assigned To => e7andy
2016-12-05 10:29 e7andy Status new => acknowledged
2016-12-05 10:32 cheesus Note Added: 0000295
2017-02-17 15:27 e7andy Priority normal => high
2017-02-17 15:27 e7andy Severity minor => crash
2017-02-17 15:27 e7andy Status acknowledged => assigned
2017-02-17 15:27 e7andy Target Version => 2.7
2017-02-17 15:52 e7andy Summary upload test => File upload fails
2017-02-17 15:52 e7andy Description Updated View Revisions
2018-08-21 13:23 e7andy Target Version 2.7 => next release
2018-08-23 11:52 e7andy Category Test => Defect
2019-01-16 09:44 e7andy Priority high => urgent
2019-01-16 09:44 e7andy Severity crash => block
2019-01-16 13:34 e7andy Issue cloned: 0001448
2019-01-18 15:21 e7andy File Added: Screenshot_20190114-083625.jpg
2019-01-18 15:24 e7andy Note Added: 0000313
2019-01-18 16:07 e7andy Note Added: 0000315