Bug 34104

Summary: ldap_extension.py: Invalid cross-device link
Product: UCS Reporter: Stefan Gohmann <gohmann>
Component: LDAPAssignee: Felix Botner <botner>
Status: CLOSED FIXED QA Contact: Arvid Requate <requate>
Severity: normal    
Priority: P5 CC: jmm
Version: UCS 3.2   
Target Milestone: UCS 3.2-1-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 35899    

Description Stefan Gohmann univentionstaff 2014-02-11 20:01:11 CET
http://forum.univention.de/viewtopic.php?f=48&t=3121&p=10913

--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/ldap_extension.py", line 58, in handler
    schema_handler.handler(dn, new, old, name=name)
  File "/usr/lib/pymodules/python2.6/univention/lib/ldap_extension.py", line 395, in handler
    os.rename(old_filename, backup_filename)
OSError: [Errno 18] Invalid cross-device link
--------------------------------------------------------------------------------

I think /var and /tmp are not part of the same partition.
Comment 1 Felix Botner univentionstaff 2014-03-19 13:24:20 CET
Replaced os.rename with shuitl.move in ldap_extension.py.

YAML: 2014-03-19-univention-lib.yaml
Comment 2 Arvid Requate univentionstaff 2014-04-07 19:01:47 CEST
Ok.
Comment 3 Moritz Muehlenhoff univentionstaff 2014-04-09 08:24:03 CEST
http://errata.univention.de/ucs/3.2/80.html