zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
173 stars 92 forks source link

attempting to open a named fifo pipe causes indefinite "opening file" notification? #1654

Open tucker01 opened 2 years ago

tucker01 commented 2 years ago

I accidentally clicked on a named fifo pipe in the USS files explorer and it caused an indefinite "opening file..." notification. I closed vscode and reopened to resolve.

I'm not sure if the file type is available, but I think opening named pipes in Zowe Explorer probably doesn't make sense and should be prevented? Same for other special types, like socket, etc.

github-actions[bot] commented 2 years ago

Thank you for creating a bug report. If you haven't already, please ensure you have provided steps to reproduce it and as much context as possible.

zFernand0 commented 2 years ago

Seems like depending on settings (zosmf ? ), the request may eventually timeout.

After some discussion, I do agree that it may be good to prevent certain types of files to be opened in ZE based on their file type code.

Source: https://www.gnu.org/software/libc/manual/html_node/Testing-File-Type.html

For creating a test pipe, just use mkfifo 😋 Source: https://man7.org/linux/man-pages/man3/mkfifo.3.html