https://bugs.kde.org/show_bug.cgi?id=516275

            Bug ID: 516275
           Summary: Creating a places bookmark that points to an
                    automounted directory that changes after mount results
                    in spurious "Current location changed, XYX no longer
                    available" error
    Classification: Frameworks and Libraries
           Product: frameworks-kio
      Version First 6.22.0
       Reported In:
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Places
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
  Target Milestone: ---

SUMMARY

Creating a places bookmark in Dolphin that points to a systemd automounted
mount point that changes after mount will cause Dolphin to emit an incorrect
"Current location changed, XYZ no longer available" error.

STEPS TO REPRODUCE

1. Create the following files to setup a test rig:

***** /etc/systemd/system/mnt-test.mount *****

[Unit]
Description=Test mount
Requires=test_mount@%N.service
Before=test_mount@%N.service

[Mount]
What=tmpfs
Where=/mnt/test
Type=tmpfs

[Install]
WantedBy=multi-user.target

***** /etc/systemd/system/mnt-test.automount *****

[Unit]
Description=Test mount

[Automount]
Where=/mnt/test
TimeoutIdleSec=60

[Install]
WantedBy=multi-user.target

***** /etc/systemd/system/[email protected] *****

[Unit]
Description=Test mount touch
StopWhenUnneeded=true

[Service]
ExecStartPre=/usr/bin/sleep 2
ExecStart=/usr/bin/touch "%f/some_random_file"

[Install]
WantedBy=multi-user.target

2. Enable the systemd automount unit with `systemctl start mnt-test.automount`
3. Create a new Places bookmark in Dolphin that points to /mnt/test
4. Click on the new bookmark

OBSERVED RESULT

After exactly two seconds, Dolphin will bump you up one directory level with
the warning "Current location changed, /mnt/test no longer available".

If the service that creates the random test file ([email protected]) is
disabled in the mount file (so the mount does not change after being mounted),
then nothing happens as expected.

It seems as though the creation of a file (technically any file) in the mount
once Dolphin has loaded the folder is what triggers this behavior, but only
when navigating to the mount through a Places bookmark. Furthermore, if
navigating to the folder directly through the URL bar (just type in "/mnt/test"
and whack return), everything works as expected, so this appears to be some
sort of weird bug with the way Places instructs Dolphin to navigate to the
folder somehow.

EXPECTED RESULT

Dolphin should not emit the "Current location changed" warning and nothing
should happen.

SOFTWARE/OS VERSIONS

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to