Can not open file from Windows (SMB/CIFS) network when servername starts with number

• Jul 5, 2018 - 11:51
Reported version
2.1
Type
Functional
Severity
S4 - Minor
Status
active
Project

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.)


Comments

Status (old) active needs info
Status active needs info

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. ))

Title Can not open file from network asdasdasd

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.)

Title asdasdasd 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.

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

Title Can not open file from Windows (SMB/CIFS) network when hostname starts with number Can not open file from Windows (SMB/CIFS) network when servername starts with number

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