| Summary: | Warning "Could not access device." for phone does not disappear after the user makes file transfer available | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | Fernando M. Muniz <fernandommuniz> |
| Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | dolphin-bugs-null, kdedev |
| Priority: | NOR | ||
| Version First Reported In: | 24.08.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Error/warning not disappearing after following the instructions successfully. | ||
I am not able to produce that error with my phone in Dolphin. Can you please let us know, step by step, what you did when you say you followed the instructions? Thanks. (In reply to TraceyC from comment #1) > I am not able to produce that error with my phone in Dolphin. Can you please > let us know, step by step, what you did when you say you followed the > instructions? Thanks. I've connected the phone to my notebook (by default it just charges via USB), I open the phone device, I see the message saying to activate MTP, I activate it, the phone's storage appear, but the warning doesn't disappear. Thanks for clarifying. That helps. I re-tested with Plasma 6.2.4 and Dolphin 24.08.3 and I am able to reproduce the bug. I see slightly different but still non-ideal behavior in git-master. Precondition: Set phone's default USB mode to be "No data transfer" (the text may vary, depending on the Android version) 1. open Dolphin 2. Connect the phone 3. In the notification pop up click "Open in File Manager" . A new tab opens with the device name and: 24.08.3: tab has the reported error "Could not access device. Make sure it is unlocked, and tap "Allow" on the popup on its screen. ..." git master: tab has "Loading canceled" (no error) 4. In the phone, switch USB mode to File transfer - observe that the tab is not refreshed (original bug) 5. Click Open in File Manager Actual result: Dolphin opens a second tab with the phone name git-master only: There are two folders with the name "internal shared storage" - one is empty, the other has the actual contents Expected result: Dolphin refreshes the same tab with the phone contents and no duplicate, empty folder NEXT (same for both versions) 1. Disconnect the phone - now there is an expected warning in Dolphin "Current location changed, 'mtp:/phone-name' is no longer accessible" 2. Make sure the phone is set to File Transfer 3. Reconnect the phone to the computer Actual result (the same in both versions): The warning is not removed, the file contents are not shown In the notification pop up click "Open in File Manager" and see another new tab with the phone name, and correct contents. A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1036 Git commit d0f8985b4c5c790781be6fcd06d299f087e78756 by Méven Car, on behalf of Wendi Gan. Committed on 03/10/2025 at 06:49. Pushed by meven into branch 'master'. DolphinTabPage, DolphinView: Fix duplicate folder for MTP device Issue: When opening an MTP device via the sidebar, Dolphin shows one "Internal shared storage" folder. However, clicking the entry again results in a duplicate folder being displayed. This regression was introduced by !865 (commit 6c7c047). Reason: The URL of an MTP device in the sidebar is `mtp:udi=/org/kde/solid/udev/sys/devices/...`. When clicking to open the MTP device, it is redirected to `mtp:/...`. - On the first click (no cache), `KCoreDirListerCache::slotUpdateResult()` calls `KCoreDirListerPrivate::emitItems()`. - On the second click (with cache), `KCoreDirListerCache::slotRedirection()` first calls `KCoreDirListerPrivate::emitItems()`. Besides, `DolphinTabPage::slotViewUrlRedirection()` calls `KCoreDirLister::openUrl()`, which triggers `CachedItemsJob::start()`, and eventually calls `KCoreDirListerPrivate::emitItems()` again. As a result, two `KCoreDirLister::itemsAdded` signals are emitted, causing `m_pendingItemsToInsert` to be appended twice. --- BUG 496414: Need to rename folder twice to make it reflect in the tab title. Reason: `m_url` is updated after emitting the `DolphinView::redirection` signal. It triggers `DolphinTabWidget::tabUrlChanged()`, which still uses the old URL and thus resets the tab title incorrectly. --- Change: - Revert the change in `DolphinTabPage::slotViewUrlRedirection()`. - Update `m_url` before `DolphinView::redirection` to fix BUG 496414. - Emit `DolphinView::urlChanged` signal to refresh the navigator of the inactive view. Related: bug 506634, bug 496414 M +1 -11 src/dolphintabpage.cpp M +4 -1 src/views/dolphinview.cpp https://invent.kde.org/system/dolphin/-/commit/d0f8985b4c5c790781be6fcd06d299f087e78756 |
Created attachment 176516 [details] Error/warning not disappearing after following the instructions successfully. The error/warning should disappear once the user manages to access the phone/device.