Bug #1369
Unable to do stat on path with Unicode
Start date:
06/09/2016
Due date:
% Done:
100%
Description
2016-06-09 16:28:47,151 ERROR Execution failed Traceback (most recent call last): File "/opt/splunk/etc/apps/file_meta_data/bin/file_info_app/modular_input.py", line 1320, in execute self.do_run(in_stream, log_exception_and_continue=True) File "/opt/splunk/etc/apps/file_meta_data/bin/file_info_app/modular_input.py", line 1220, in do_run input_config) File "/opt/splunk/etc/apps/file_meta_data/bin/file_meta_data.py", line 473, in run results, new_latest_time = self.get_files_data(file_path, logger=self.logger, latest_time=latest_time, must_be_later_than=must_be_later_than, file_hash_limit=file_hash_limit) File "/opt/splunk/etc/apps/file_meta_data/bin/file_meta_data.py", line 164, in get_files_data info, this_latest_time = cls.get_file_data(os.path.join(root, name), logger, latest_time_derived, must_be_later_than, file_hash_limit) File "/opt/splunk/etc/apps/file_meta_data/bin/file_meta_data.py", line 325, in get_file_data path, dirs, files = os.walk(file_path).next() File "/opt/splunk/lib/python2.7/os.py", line 286, in walk if isdir(join(top, name)): File "/opt/splunk/lib/python2.7/genericpath.py", line 41, in isdir st = os.stat(s) UnicodeEncodeError: 'ascii' codec can't encode character u'\u011f' in position 49: ordinal not in range(128)
History
#1 Updated by Luke Murphey over 8 years ago
- Description updated (diff)
#2 Updated by Luke Murphey over 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100