View Issue Details

IDProjectCategoryView StatusLast Update
0001121bareos-corefile daemonpublic2024-05-08 15:27
Reporterb.braunger@syseleven.de Assigned Toarogge  
PrioritylowSeveritytextReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSRHELOS Version7
Product Version18.2.6 
Summary0001121: documentation of setFileAttributes for plugins not correct
DescriptionThe documentation says that the setFileAttributes for FD Plugins is not implemented yet. Although I a python plugin I can write an according function and it gets called.

https://docs.bareos.org/DeveloperGuide/pluginAPI.html#setfileattributes-bpcontext-ctx-struct-restore-pkt-rp

Is the documentation out of date or am I getting something wrong?
Steps To Reproduce* Create a restore job which calls a python plugin
* start a FD with debug output (at least 150)
* watch the logfile of the FD
Additional InformationLOG example:
test-server (150): filed/fd_plugins.cc:1308-326 PluginSetAttributes
test-server (100): filed/python-fd.cc:2740-326 python-fd: set_file_attributes() entry point in Python called with RestorePacket(stream=1, data_stream=2, type=3, file_index=43337, linkFI=0, uid=0, statp="StatPacket(dev=0, ino=0, mode=0644, nlink=0, uid=0, gid=0, rdev=0, size=-1, atime=1571011435, mtime=1563229608, ctime=1571011439, blksize=4096, blocks=1)", attrEx="", ofname="/opt/puppetlabs/puppet/share/doc/openssl/html/man3/SSL_CTX_set_session_id_context.html", olname="", where="", RegexWhere="<NULL>", replace=97, create_status=2)
test-server (150): filed/restore.cc:517-326 Got hdr: Files=43337 FilInx=43338 size=210 Stream=1, Unix attributes.
test-server (130): filed/restore.cc:534-326 Got stream: Unix attributes len=210 extract=0
TagsNo tags attached.

Activities

arogge

arogge

2024-05-08 15:27

manager   ~0005917

Will be fixed in https://github.com/bareos/bareos/pull/1805

Issue History

Date Modified Username Field Change
2019-10-18 16:20 b.braunger@syseleven.de New Issue
2024-05-08 15:27 arogge Assigned To => arogge
2024-05-08 15:27 arogge Status new => closed
2024-05-08 15:27 arogge Resolution open => fixed
2024-05-08 15:27 arogge Note Added: 0005917