EldoS | Feel safer!

Software components for data protection, secure storage and transfer

QT and UNC

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#26118
Posted: 08/13/2013 15:14:15
by Charles Reimers (Basic support level)
Joined: 08/13/2013
Posts: 4

I am working with SolFS OS version inside a QT cross-platform environment and want to be able to operate on files without exposing a lettered drive in Windows. It appears that QT does not understand the UNC file path. Can anyone suggest a solution to my conundrum?

Thanks.
#26120
Posted: 08/14/2013 02:13:37
by Volodymyr Zinin (EldoS Corp.)

Please specify version of SolFS and a code snippet you use to create the mounting point.
Thanks.
#26165
Posted: 08/16/2013 13:44:22
by Charles Reimers (Basic support level)
Joined: 08/13/2013
Posts: 4

Vladimir,

I was trying something along the lines of:

Code
wchar_t *path;
mStorage->GetMountingPoint(0, (PSolFSWideChar)path);
QString qsPath = QString("\\\\.\\") + QString::fromUtf16((ushort*)path) + '\\';
delete[] path;
QDir fsDir(path);

// do operations on fsDir


After further investigation, this seems to be a limitation of QT, and not really a UNC question.

Thanks
#26166
Posted: 08/16/2013 13:47:11
by Eugene Mayevski (EldoS Corp.)

IIRC some (not all) .NET classes don't handle UNC paths right as well. But there's not much we can do on our side with this. Maybe one can report this issue to Qt?


Sincerely yours
Eugene Mayevski
#26170
Posted: 08/19/2013 03:47:30
by Volodymyr Zinin (EldoS Corp.)

In the SolFS OS v5, which is prerelease now, there is a possibility to create a "real" UNC mounting point. Like "\\server_name\share_name", where "server_name" and "share_name" are arbitrary strings. So if Qt can work with UNC paths then it should work with such mounting points too. For details see the description of the SOLFS_SYMLINK_NETWORK flag.
#26171
Posted: 08/19/2013 03:54:48
by Eugene Mayevski (EldoS Corp.)

I believe QT just doesn't understand \\ in the beginning of the path.


Sincerely yours
Eugene Mayevski
Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.

Reply

Statistics

Topic viewed 3366 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!