Skip to content

[BUG]: Crash upon clicking "Process checked feeds" in Message filters #420

@sakkamade

Description

@sakkamade

Brief description of the issue.

The crash.

How to reproduce the bug?

  1. Paste filter (look in Other information) into the "JavaScript code" section of Massage filter
  2. Check some either Atom or RSS feed and click "Process checked feeds"
  3. The crash

What was the expected result?

Not to crash.

What actually happened?

Has crashed.

Other information

  1. The "Script output" if click "Test" on such script is
EXISTING messages filtering error: 'ReferenceError: utils is not defined'.
SAMPLE message filtering error: 'ReferenceError: utils is not defined'.
  1. The same happens with dev build of latter commit 719071a. However I am unable to restart the dev version until after reboot of PC.
    (Tried removing the config files, cache files, and cache of QtWebEngine to no avail.)
The script in question (click here)
function filterMessage() {
  // Read raw contents of message and
  // convert to JSON.
  json = utils.fromXmlToJson(msg.rawContents);
  jsonObj = JSON.parse(json)

  // Read published date and parse it.
  publishedDate = jsonObj.entry.published.__text;
  parsedDate = new Date(publishedDate);

  // Set new date/time for message and
  // proceed.
  msg.created = parsedDate;
  return MessageObject.Accept;
}
  • OS: Arch Linux, KDE
  • RSS Guard:
    Version: 3.9.2 (built on Linux/x86_64)
    Revision:
    Build date: 4/17/21 8:31 AM
    Qt: 5.15.2 (compiled against 5.15.2)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions