Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
21 Nov 2010 at 18:06 UTC
Updated:
29 Jul 2014 at 19:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidOn my dear lord. The File token tests manually add $file->description = ... in order to pass. So, so, so wrong.
Comment #2
dave reidForgot to remove it from system_token_info as well.
Comment #3
dave reidComment #4
dave reidWithout reverting a potential security hole this time.
Comment #5
dave reidComment #6
joachim commentedWhat if you want the description on managed files?
Comment #7
dave reidThen you want *field* tokens as provided by Token.module for D7 because the description is field instance data. The file tokens should only work with a proper file object from file_load().
Comment #8
dave reid@joachim Feel like RTBCing this one now that it makes sense?
Comment #9
muriqui commented#5: 978028-file-description-token-no-more-D7.patch queued for re-testing.
Comment #10
muriqui commentedRerolled patch to work with latest 7.x.
Comment #11
dave reid@muriqui: Please attach the patch again without the '-D7' on the end of it so it can be tested properly.
Comment #13
muriqui commentedWhoops.
Comment #14
dave reidComment #15
dave reid#13: 978028-file-description-token-no-more.patch queued for re-testing.
Comment #16
dave reidLooks good. Let's fix this now so we stop people from trying to use an invalid token.
Comment #17
webchickCan we get at least one review on this? Since muriqui just re-rolled your patch, you've essentially marked your own patch RTBC here.
Comment #18
dave reidComment #19
joachim commentedPatch applies and looks good.
Comment #20
muriqui commented@webchick Does my review count, or do we need someone else since I was involved with the re-roll?
Comment #21
muriqui commentedNever mind, looks like joachim marked it RTBC before I did.
Comment #22
webchickCommitted and pushed to 8.x and 7.x. Thanks!