-
-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Labels
Component-CoreComponent-Message-FiltersStatus-FixedTicket is resolved.Ticket is resolved.Type-DefectThis is BUG!!!This is BUG!!!
Milestone
Description
Brief description of the issue.
The crash.
How to reproduce the bug?
- Paste filter (look in Other information) into the "JavaScript code" section of Massage filter
- Check some either Atom or RSS feed and click "Process checked feeds"
- The crash
What was the expected result?
Not to crash.
What actually happened?
Has crashed.
Other information
- 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'.
- 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
Labels
Component-CoreComponent-Message-FiltersStatus-FixedTicket is resolved.Ticket is resolved.Type-DefectThis is BUG!!!This is BUG!!!