We have server with name '1'.
If I try to open file "test.mscz" from \1 ( "\1\test.mscz" ) I got error: "Cannot read file //0.0.0.1/test.mscz".
(Microsoft Word opens file "\1\test.doc" successfully.)
Yes. It works.
It does not work only with a shares whose server name is a digit.
(In my case - with the number '1' - Musescore converts it in "//0.0.0.1/hymns/test.mscz", believing that '1' is a part of an IP address.)
Can not open file from Windows (SMB/CIFS) network when hostname starts with number
Status (old)
needs info
⇒
active
Status
needs info
⇒
active
Reported version
2.3
⇒
2.1
Not sure, but this might be more or less by design, hostnames should not start with (or contain only) numbers for exactly that reason and I don't think MuseScore can do much about that, I believe that we're relying on Qt here.
And I'm pretty sure this is not only MuseScore 2.3 but all MuseScore versions.
You could try to use the real IP address of that server instead.
Admin said that the server has the name "MusicServer", but he uses "Multiple NetBIOS names for Windows servers" in Windows 10, calling this server also '1' for simplicity. Microsoft Word understands this trick.
(See https://www.techrepublic.com/blog/the-enterprise-cloud/adding-multiple-…)
And access via \\MusicServer\hymns\test.mscz works, I assume?
That page also mentiones: This NetBIOS name is not treated the same as the server's "primary" name. To aid in name resolution, I recommend that you add a DNS CNAME record that points to the server's primary name
This might help here too, so a DNS name of "1" resolves to the right host rather than 'guessing' an IP adress
Yes, access via \MusicServer\hymns\test.mscz works fine.
But adding a DNS CNAME does not help to access via \1. Musescore thinks that '1' in "\1..." is an IP address.
Can developers make it so that in future versions of Musescore the files would open also through "\1..."?
I'm pretty sure that MuseScore developers can not and this is more of a Qt issue (the library MuseScore uses to be mostly platform independent), or something then e.g. Microsoft Word solves in some magical proprietary way.
You could try whether a development build from the master branch solves this, as those use a newer version of Qt
These are not for real use though, so this would just be a test
Comments
Should that be \\host\share\file rather than \\host\file ?
Can you try assigning the share a drive letter and access it via that?
Yes. Sorry. It is "\1\hymns\test.mscz"
And yes, I can assing a drive letter, but the server has 20+ music shares. Too many drive letters in the list. ))
Does it work with a drive letter?
Yes. It works.
It does not work only with a shares whose server name is a digit.
(In my case - with the number '1' - Musescore converts it in "//0.0.0.1/hymns/test.mscz", believing that '1' is a part of an IP address.)
Not sure, but this might be more or less by design, hostnames should not start with (or contain only) numbers for exactly that reason and I don't think MuseScore can do much about that, I believe that we're relying on Qt here.
And I'm pretty sure this is not only MuseScore 2.3 but all MuseScore versions.
You could try to use the real IP address of that server instead.
Admin said that the server has the name "MusicServer", but he uses "Multiple NetBIOS names for Windows servers" in Windows 10, calling this server also '1' for simplicity. Microsoft Word understands this trick.
(See https://www.techrepublic.com/blog/the-enterprise-cloud/adding-multiple-…)
And access via \\MusicServer\hymns\test.mscz works, I assume?
That page also mentiones:
This NetBIOS name is not treated the same as the server's "primary" name. To aid in name resolution, I recommend that you add a DNS CNAME record that points to the server's primary name
This might help here too, so a DNS name of "1" resolves to the right host rather than 'guessing' an IP adress
Yes, access via \MusicServer\hymns\test.mscz works fine.
But adding a DNS CNAME does not help to access via \1. Musescore thinks that '1' in "\1..." is an IP address.
Can developers make it so that in future versions of Musescore the files would open also through "\1..."?
I'm pretty sure that MuseScore developers can not and this is more of a Qt issue (the library MuseScore uses to be mostly platform independent), or something then e.g. Microsoft Word solves in some magical proprietary way.
Ah, I see. Ok. Thank you for help!!!
You could try whether a development build from the master branch solves this, as those use a newer version of Qt
These are not for real use though, so this would just be a test