Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The color module is not setting the file permissions on created files. This is a problem on sites that have a tight umask (i.e. 077). Similiar patches found their way into core in D5 (for example, the new install system), but as color is a new core module, the fixes did not make it here yet.
This patch should fix many of the Garland related problems, such as 110916 and maybe 97661, although I suspect there are more.
Comment | File | Size | Author |
---|---|---|---|
#7 | 119196.patch | 1.88 KB | douggreen |
#2 | color_2.patch | 1.75 KB | douggreen |
color_1.patch | 1.4 KB | douggreen | |
Comments
Comment #1
Owen Barton CreditAttribution: Owen Barton commentedsubscribing
Comment #2
douggreen CreditAttribution: douggreen commentedI had hoped that this would get into the 5.x bug fix releases, but seeing no movement here, the same problem exists in 6.x. While the original patch works for 5.x, the attached patch is re-rolled for 6.x (with slightly different line numbers).
Comment #3
douggreen CreditAttribution: douggreen commentedComment #4
douggreen CreditAttribution: douggreen commentedI just confirmed, this patch still applies.
Comment #5
douggreen CreditAttribution: douggreen commentedWe've been running this patch on all of our D5 sites ever since D5 was released, with no ill-effects. As real world scenerio's go, this patch only comes into effect when/if you use Garland's color picker. So, we've really only used it for a couple sites.
Comment #6
agentrickardThere should probably be a brief comment regarding the permission setting. Here's what file.inc does in a similar context.
Four lines is probably overkill. How about a simple:
Otherwise, looks RTBC.
Comment #7
douggreen CreditAttribution: douggreen commentedRe-rolled with the suggested comment and a few lines were moved around so the comment makes sense. I tested the new patch on our servers with the restricted umask, and it still works.
Comment #8
Gábor HojtsyMakes a lot of sense to reuse the file API. Committed!
Comment #9
drummCommitted to 5.x.
Comment #10
(not verified) CreditAttribution: commented