Skip to content

Opening a file in edit mode on windows that is on a mounted network drive fails #3837

Description

@jwlodek

The file can be opened without an issue in display mode. The file browser also has no issues

Image

The issue is that the filepath seems to remove the mount's hostname, and instead appends the drive letter that the Phoebus installation lives on.

java.io.FileNotFoundException: D:\AlmaLinux-9\home\jwlodek\Workspace\ADKeyenceSR\KeyenceSRApp\op\bob\ADKeyenceSR_Top.bob (The system cannot find the path specified)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:185)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:139)
	at org.csstudio.display.builder.editor.EditorGUI.lambda$loadModel$9(EditorGUI.java:462)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
	at java.base/java.lang.Thread.run(Thread.java:1474)

This is easily reproducible with WSL2. From within wsl, clone/copy a bobfile. Then use explorer.exe . to open a windows file explorer in that folder (which will automatically mount the folder as a network drive). Then, copy the file path, and paste it into the filebrowser in phoebus. Right click on the display -> Open With -> Display, works fine, do the same thing for Edit and it will fail with the above error.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions