Prevent logging of result of resources.string() method call
The result of resources.string() method is the content of the file
saved to string. Logging of binary file content causes
UnicodeDecode error. Moreover, logging of any file content can be
security issue. Finally, it is just not practical to fill the logs
with tons of text from the big files.
Change-Id: I87077b002f2a8888c22b4dfba1f7b9f0508fec69
Closes-bug: #1561522
(cherry picked from commit ce8e2ec37aefdd52a6953d9b1d55b2ce540fd2a2)
Reviewed: https:/ /review. openstack. org/370576 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=0d3178cc419 21a98f4a7ec6a4d 49122337836f4d
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 0d3178cc41921a9 8f4a7ec6a4d4912 2337836f4d
Author: Valerii Kovalchuk <email address hidden>
Date: Wed Sep 14 15:18:40 2016 +0300
Prevent logging of result of resources.string() method call
The result of resources.string() method is the content of the file
saved to string. Logging of binary file content causes
UnicodeDecode error. Moreover, logging of any file content can be
security issue. Finally, it is just not practical to fill the logs
with tons of text from the big files.
Change-Id: I87077b002f2a88 88c22b4dfba1f7b 9f0508fec69 2a6953d9b1d55b2 ce540fd2a2)
Closes-bug: #1561522
(cherry picked from commit ce8e2ec37aefdd5