Closed JamminR closed 6 years ago
Bonus points for opening the zip and reading text files in it!!👍
That is not going to happen 4 sure, but I'll look into ignoring invalid files in the log directory
Fixed by adding a filter, only allowing file ext. as .log or .[integer]
Environment
Error shown
Technical Info: Url: api/v3/logs/show/FMoviePlus_tinkering.zip Location: Logs Error: logsService.getLogDetails - Fatal error happened in Logs show: [Errno 2] No such file or directory: u'D:\PlexCache\Plex Media Server\Logs\FMoviePlus_tinkering.zip'
Steps to reproduce
Expected behaviour
Actual behaviour
Additional Info
2018-03-15 19:16:52,858 (2750) : DEBUG (logkit:13) - Recieved an apiV3 call for module: LOGS for method: GET 2018-03-15 19:16:52,858 (2750) : DEBUG (logkit:13) - Log Root dir is: D:\PlexCache\Plex Media Server\Logs 2018-03-15 19:16:52,858 (2750) : DEBUG (logkit:13) - Function to call is: SHOW with params: ['FMoviePlus_tinkering.zip'] 2018-03-15 19:16:52,858 (2750) : DEBUG (logkit:13) - Log Root dir is: D:\PlexCache\Plex Media Server\Logs 2018-03-15 19:16:52,858 (2750) : DEBUG (logkit:13) - Opening logfile: D:\PlexCache\Plex Media Server\Logs\FMoviePlus_tinkering.zip 2018-03-15 19:16:52,858 (2750) : CRITICAL (core:574) - Fatal error happened in Logs show: [Errno 2] No such file or directory: u'D:\PlexCache\Plex Media Server\Logs\FMoviePlus_tinkering.zip' (most recent call last): File "D:\PlexCache\Plex Media Server\Plug-ins\WebTools.bundle\Contents\Code\logsV3.py", line 307, in SHOW with io.open(file, 'r', errors='ignore') as content_file: IOError: [Errno 2] No such file or directory: u'D:\PlexCache\Plex Media Server\Logs\FMoviePlus_tinkering.zip'
2018-03-15 19:16:52,898 (2750) : DEBUG (logkit:13) - Recieved an apiV3 call for module: LOGS for method: PUT 2018-03-15 19:16:52,898 (2750) : DEBUG (logkit:13) - Log Root dir is: D:\PlexCache\Plex Media Server\Logs 2018-03-15 19:16:52,898 (2750) : DEBUG (logkit:13) - Function to call is: ENTRY with params: None 2018-03-15 19:16:52,898 (2750) : DEBUG (logkit:13) - Starting Logs.entry function 2018-03-15 19:16:52,900 (2750) : DEBUG (logkit:13) - FrontEnd: Location: Logs
Error: logsService.getLogDetails - Fatal error happened in Logs show: [Errno 2] No such file or directory: u'D:\PlexCache\Plex Media Server\Logs\FMoviePlus_tinkering.zip' 2018-03-15 19:17:32,405 (2750) : DEBUG (logkit:13) - Recieved an apiV3 call for module: LOGS for method: GET 2018-03-15 19:17:32,407 (2750) : DEBUG (logkit:13) - Log Root dir is: D:\PlexCache\Plex Media Server\Logs
Checklist