On 05/17/2017 01:40 PM, Leif Halvard Silli wrote:

        Bug in FTP-add on when saving new, unsaved files, using the
        URL-based file chooser

In Mac applications, when first time saving a new, unsaved document,
invoking the 'Save' command in the File menu (typically by pressing the
Command-S shortcut) seems to have the same effect as if the 'Save as
...' command had been selected. Thus, it will offer to you to save the
file in the last used folder, and it gives easy access to changing the
file name (from the proposed 'untitled.foo' to whatever you like).

XXE apps behave the same way. *Except* when the URL-based file chooser
is being used in combination with the FTP addon. In that case, using the
shortcut, Cmd-S, causes the URL chooser to, finally, suggest the
following URL:

|sftp://HOSTNAME/ |

(Further details: At first - having pressed the shortcut, the URL
chooser displays another URL - probably the same URL as I describe
below. However, that first URL is, half a second later, replaced by XXE,
with the above URL. So it is as if some macro is going on that ends up
displaying the empty sftp URL.)

Whereas when I manually select 'Save' from the File menu, I, instead, am
proposed to use this URL (this happens when the previously opened file
was opened from a Google drive):

|google:/Foo-SameLocationAsLastTime/Untitled.xml |

Or, if, the last used (or last saved) document was loaded using the
file:URL protocol, then, when manually selecting 'Save' in the File
menu, I am proposed to use this save URL:

|file:/Users/Foo-Username/Foo-SameLocationAsLastTime/Untitled.xml |

Manually selecting 'Save' from the 'File' menu thus works as expected.

Proof that the FTP addon is involved: When uninstalling the FTP addon,
the effect goes away, meaning that both the Cmd-S shortcut and
'File|Save' then behave the same, expected, way.

I'm happy to tell you that this is indeed an XXE bug which occurs on all Java platforms and not a weird Java 1.8 bug specific to the Mac.

This means that we'll almost certainly be able to fix it in next release.

Thank you for taking the time to report this bug.





--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to