News:

MultiCommander v16.6 is released!

Main Menu

Create/Edit new file bug

Started by nietrupek, Yesterday at 08:59:40

Previous topic - Next topic

nietrupek

Steps to reproduce:
- switch MC to admin mode
- enter (or create) directory out of C:\Users subtree (for example: C:\Program Files\Mozilla Firefox\distribution\)
- use menu: File / Create New File
- modal window appears, enter file name (for example: policies.json), press OK

Expected result: new file appears
Actual result: nothing happens

Same happens for "Edit New File" (Shift+F4).

On the other hand, when I do the above in my user subtree, everything works. I can even Move created/edited file to target directory (C:\Program Files\...).

Whatever happens here, MC should be more informative and display error message. It fails silently instead.


Mathias (Author)

Any error in AppLog or FileOperation log ? (Ctrl+L to view)

total_annihilation00

In "File Type Setup" ➡ "Editors" if the filetype is listed & a handler is defined, it should automatically open in it...
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


Mathias (Author)

Quote from: total_annihilation00 on <strong>Yesterday</strong> at 09:29:24In "File Type Setup" ➡ "Editors" if the filetype is listed & a handler is defined, it should automatically open in it...
I think the issue is that the new file is not even created

total_annihilation00

#4
Quote from: Mathias (Author) on <strong>Yesterday</strong> at 09:32:10I think the issue is that the new file is not even created

Oh

Quote from: nietrupek on <strong>Yesterday</strong> at 08:59:40Steps to reproduce:
- switch MC to admin mode
- enter (or create) directory out of C:\Users subtree (for example: C:\Program Files\Mozilla Firefox\distribution\)
- use menu: File / Create New File
- modal window appears, enter file name (for example: policies.json), press OK

Expected result: new file appears
Actual result: nothing happens

Same happens for "Edit New File" (Shift+F4).

On the other hand, when I do the above in my user subtree, everything works. I can even Move created/edited file to target directory (C:\Program Files\...).

Whatever happens here, MC should be more informative and display error message. It fails silently instead.

Are you using the latest V17 Preview 6 Beta or the older V16 Stable version ?
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


Mathias (Author)

Quote from: total_annihilation00 on <strong>Yesterday</strong> at 10:52:30Are you using the latest V17 Preview 6 Beta or the older V16 Stable version ?
16.. Nobody (almost) run the preview and if running preview you do not post issue in this forum section. :)

nietrupek

Quote from: Mathias (Author) on <strong>Yesterday</strong> at 09:26:00Any error in AppLog or FileOperation log ? (Ctrl+L to view)

File creation: nothing for success (user dir) nothing for failure.
Only deleting files operations are recorded in FileOperation log.

Mathias (Author)

#7
I can't reproduce this.
It create the file for me when I run MC as admin.
Is it only under firefox program folder or any protected folder under program files??
(If only firefox. then it might be that that folder has changed the permission so that not even normal admin can just create files.)

Are you running normal version of MC or Windows StoreEdition ?

nietrupek

Quote from: Mathias (Author) on <strong>Today</strong> at 08:25:28I can't reproduce this.
It create the file for me when I run MC as admin.
Is it only under firefox program folder or any protected folder under program files??

Here's a sample of what I checked.

Fails for:
- C:\Program Files
  checked this dir and its 7zip and Notepad++ subdirs
- C:\Windows
- C:\Program Files (x86)

Works in:
- C:\Cygwin, C:\Cygwin\bin
- C:\bin\Ruby
- C:\hpswsetup
  but fails in its subdirs
- C:\xampp

There's interesting situation in C:\bin\Ruby: Create file works, but Edit new file creates file as expected, but doesn't run editor (Notepad++)

Quote from: Mathias (Author) on <strong>Today</strong> at 08:25:28Are you running normal version of MC or Windows StoreEdition ?

Normal, I think: v16.6 (build 3240) (how to attach an image in this forum?)

Mathias (Author)

#9
Yes working folder is normal folder properly created by user. so they are not write protected.

Sure you started MC as admin ?  Writing in program files and the other folders are write protected for normal user, require admin permissions..