Opened 6 years ago

Last modified 6 years ago

#12518 new Bugs

boost::filesystem::unique_path throws std::exception and not filesystem_error

Reported by: gerald.lodron@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc:

Description

try this

path tmp = boost::filesystem::temp_directory_path(); tmp /= "MyApp-%%%%-%%%%-%%%%-%%%%";

path folderName; try {

folderName= boost::filesystem::unique_path(tmp );

} catch(boost::filesystem::filesystem_error& roE) {

std::cout << "Never come here on windows temporary user account" << std::endl;

} catch (std::exception& roE) {

std::cout << "Here i come on windows temporary user account" << std::endl;

}

in fact a boost exception should be thrown. Tested on Windows 8.1 x64

Change History (4)

comment:1 by anonymous, 6 years ago

compiled with VS Studo 2013 SP5 (also boost compiled with same on my own)

comment:2 by John Maddock, 6 years ago

Component: Nonefilesystem
Owner: set to Beman Dawes

comment:3 by jschaub@…, 6 years ago

Same happens for me with boost version 1.59 , Windows 10 x86 (32bit). The error message by Windows is:

"The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation."

Original German error message:

"std::exception: 'boost::filesystem::unique_path: Der angeforderte Vorgang kann nicht abgeschlossen werden. Dem Computer muss für Delegierungszwecke vertraut werden und das aktuelle Benutzerkonto muss für die Zulassung von Delegationszwecken konfiguriert werden"

comment:3 by jschaub@…, 6 years ago

Same happens for me with boost version 1.59 , Windows 10 x86 (32bit). The error message by Windows is:

"The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation."

Original German error message:

"std::exception: 'boost::filesystem::unique_path: Der angeforderte Vorgang kann nicht abgeschlossen werden. Dem Computer muss für Delegierungszwecke vertraut werden und das aktuelle Benutzerkonto muss für die Zulassung von Delegationszwecken konfiguriert werden"

Note: See TracTickets for help on using tickets.