Can not open internal links to files when offline
- Dominant language
- Kotlin
- Stars
- 5.6k
- Forks
- 2k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 92
Description
### ⚠️ Before posting ⚠️
- [X] This is a **bug**, not a question or an enhancement.
- [X] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Steps to reproduce
1. In markdown reference a file like so: `[link to pdf](https://nextcloud.local/f/123456)`.
2. turn off wifi on device, or leave home so device has no access to lan/nextcloud server
3. click link
### Expected behaviour
Clicking `[link to pdf](https://nextcloud.local/f/123456)` or similar should open the file in the nextcloud app. When I am at home and connected to lan, this is what happens (yay!)
### Actual behaviour
When I am disconnected from lan/server, I get an error which says "socket exception". I then have to hunt for the file, which can be very time consuming.
This error occurs even when the file has been downloaded to my local system, and is available locally (IE, I can get to and edit the file from within nextcloud app, and I can open it from a widget), and even though the app knows all of the internal links for all the files even when offline.
### Android version
NA
### Device brand and model
NA
### Stock or custom OS?
Stock
### Nextcloud android app version
3.23.0
### Nextcloud server version
23.0.2
### Using a reverse proxy?
I don't know
### Android logs
_No response_
### Server error logs
_No response_
### Additional information
Cant post app logs, not using beta/dev version. Dont have logcat / adb installed.
The app is in general very unfriendly to offline use, which is unfortunate since I spend anywhere from 1/3 to 1/2 of my working time with no connection to my server.
Contributor guide
Assessment
This issue has not been assessed yet.