View Issue Details

IDProjectCategoryView StatusLast Update
0001409MantisDroidDefectpublic2019-10-26 09:21
Reportercheesus Assigned Toe7andy  
PriorityurgentSeverityblockReproducibilityhave not tried
Status closedResolutionfixed 
Target Version2.8Fixed in Version2.8 
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: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
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
2019-07-17 22:31 e7andy File Added: wtplogosmall.jpg
2019-07-17 22:39 e7andy File Deleted: wtplogosmall.jpg
2019-07-17 22:40 e7andy File Added: wtplogosmall(3).jpg
2019-07-17 22:40 e7andy File Added: wtplogosmall(4).jpg
2019-07-18 22:00 e7andy File Added: test.txt
2019-10-23 13:54 e7andy Target Version next release => 2.8
2019-10-23 14:27 e7andy File Added: magazine-unlock-01-2.3.2232-_D58E2C663F85B8B1474939EA7FD4D65F.jpg
2019-10-23 14:33 e7andy Status assigned => resolved
2019-10-23 14:33 e7andy Resolution open => fixed
2019-10-23 14:33 e7andy Fixed in Version => 2.8
2019-10-23 14:33 e7andy Description Updated
2019-10-26 09:21 e7andy Status resolved => closed
2023-02-15 17:00 e7andy File Deleted: Screenshot_20190114-083625.jpg
2023-02-15 17:00 e7andy File Deleted: wtplogosmall(3).jpg
2023-02-15 17:00 e7andy File Deleted: wtplogosmall(4).jpg
2023-02-15 17:00 e7andy File Deleted: test.txt
2023-02-15 17:00 e7andy File Deleted: magazine-unlock-01-2.3.2232-_D58E2C663F85B8B1474939EA7FD4D65F.jpg