RSS Feed/News Font-awesome cache rebuild are not atomic, and not file-system full safe

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
29,201
Points
823

Reputation:

I've had a report from a client that a full-disk can cause XF's font-awesome sprite icons to become broken, and the lack of explicit rebuild CLI command (or rebuild tool under the admincp) makes recovering from this failure mode more difficult than it needs to be.

The issue appears to be the file is written without doing a write-to-new-file-and-rename thing to ensure it is atomic and if any failure occurs the system fails into a previous state instead of being broken

Continue reading...
 
Status
Not open for further replies.
Top