View Issue Details

IDProjectCategoryView StatusLast Update
0000615bareos-corefile daemonpublic2019-12-18 15:25
Reporterscrasa Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformWindowsOSWindowsOS VersionWindows 2008 R2
Summary0000615: symlinks/junctions wrong target path on restore
DescriptionWhen restoring windows junctions/symlinks the target path is wrong with
something like :

(for symlinkd and symlink with absolute target path [C:\...])
\\?\C:\...

(for symlinkd and symlink with relative target path [name...])
\\?\C:\Windows ...
(add an extra C:\Windows before path)

(for junctions)
\??\C:\...

And even, when after the restoration came to junction, the filedaemon either crash, or run indefinitely unable to stop from director with "cancel"
Steps To Reproducecreate files and folder
use mklink with "/D" (symlinkd) "/J" (junction) "" (symlink file)
use absolute target path "C:\mypath_to_file-folder"
or user relative target path "name_file-folder" made with the previous "cd" to subdir
Additional InformationThe problem was tested with linux director 14.2 (debian) and filedaemon under windows with version 16.1 (from nightly).
Same problem with linux director 16.1 (nightly) and filedaemon 16.1 under windows
(filedaemon run on Windows Server 2008 R2)
TagsNo tags attached.

Relationships

child of 0000584 closedjoergs Release bareos-14.2.7 

Activities

pstorz

pstorz

2016-03-23 22:23

administrator   ~0002220

Fix committed to bareos bareos-15.2 branch with changesetid 6174.
mvwieringen

mvwieringen

2016-07-08 14:34

developer   ~0002311

Fix committed to bareos bareos-14.2 branch with changesetid 6419.

Related Changesets

bareos: bareos-15.2 97161d30

2016-03-22 13:06

pstorz

Ported: N/A

Details Diff
Fix problems with wide char symlinks and junctions

There were some problems since the last change to
the junctions and symlink code on windows to support
wide characters.

This fixes these problems so that we now can create correct
wide character symlinks and junctions.

This commit also adds a unit test for creating junctions and
changes what is needed for that.

Fixes 0000615: symlinks/junctions wrong target path on restore
Affected Issues
0000615
mod - platforms/win32/winbareos.nsi Diff File
mod - src/lib/unittests/Makefile.in Diff File
add - src/lib/unittests/junction_test.c Diff File
mod - src/lib/unittests/protos.h Diff File
mod - src/lib/unittests/test_lib.c Diff File
mod - src/win32/compat/compat.c Diff File
mod - src/win32/compat/include/compat.h Diff File
mod - src/win32/lib/unittests/Makefile Diff File

bareos: bareos-14.2 15659e4a

2016-03-22 13:06

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Fix problems with wide char symlinks and junctions

There were some problems since the last change to
the junctions and symlink code on windows to support
wide characters.

This fixes these problems so that we now can create correct
wide character symlinks and junctions.

Fixes 0000615: symlinks/junctions wrong target path on restore
Affected Issues
0000615
add - src/lib/unittests/junction_test.c Diff File
mod - src/win32/compat/compat.c Diff File
mod - src/win32/compat/include/compat.h Diff File

Issue History

Date Modified Username Field Change
2016-02-05 17:43 scrasa New Issue
2016-02-25 17:25 maik Status new => acknowledged
2016-03-23 22:23 pstorz Changeset attached => bareos bareos-15.2 97161d30
2016-03-23 22:23 pstorz Note Added: 0002220
2016-03-23 22:23 pstorz Status acknowledged => resolved
2016-03-23 22:23 pstorz Resolution open => fixed
2016-07-05 11:44 joergs Relationship added child of 0000584
2016-07-08 14:34 mvwieringen Changeset attached => bareos bareos-14.2 15659e4a
2016-07-08 14:34 mvwieringen Note Added: 0002311
2019-12-18 15:25 arogge Status resolved => closed