1
1
forked from 0ad/0ad
0ad/source/ps
Angen 6f1d17c954 Stop failing if mod is broken and display invalid mods in downloader [Mod Io]
If one mod is not signed or broken in any other way, mod.io downloader
fails and does not display any mod.
The problem with unsigned mod is that its metadata are empty.

That means one cannot break mod io downloader with mods having invalid
data.

mark mod as invalid and display in list as disabled and display reason
instead description to not spam ugly error messages on screen as this is
not error by the game but of the moder
report failed signatures back to list of mods
fail if property is not set using strict mode when getting from js
check in js for undefined values

Allow to filter only valid mods.

Differential Revision: https://code.wildfiregames.com/D2114
Reviewed by: @Itms
Fixes: #5459

This was SVN commit r23821.
2020-07-12 09:25:03 +00:00
..
GameSetup Fix error in e9361705ae. 2020-06-07 20:11:37 +00:00
scripting Refactor HWDetect and rendering options setup. 2020-06-07 13:16:57 +00:00
tests Stop failing if mod is broken and display invalid mods in downloader [Mod Io] 2020-07-12 09:25:03 +00:00
XML Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
ArchiveBuilder.cpp Add a confirmation message when packaging ends. 2019-01-07 23:57:18 +00:00
ArchiveBuilder.h Handle mods specified on the command line when using the archive builder. 2014-06-15 16:43:08 +00:00
CacheLoader.cpp Unify duplicate u8* to hex string functions in a new Hexify function variant, similar to bb1f86f515, used by Tests, CacheLoader, Terms and Conditions, Lobby and mod.io. 2018-08-08 12:59:05 +00:00
CacheLoader.h Fix biome-specific mappreviews in 7f602037ba for zipped mods, refs #4962. 2018-08-05 21:50:00 +00:00
CConsole.cpp Implement keyDown event 2020-05-26 21:47:03 +00:00
CConsole.h Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
CLogger.cpp Include Pyrogenesis.h and os_path.h where needed 2020-01-02 18:07:40 +00:00
CLogger.h Update cppformat from v0.11.0 to v1.1.0, fixes #5646, refs #3190. 2020-04-01 07:29:33 +00:00
Compress.cpp More build fixes for FreeBSD. 2012-01-31 00:06:56 +00:00
Compress.h More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
ConfigDB.cpp Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
ConfigDB.h Refactor HWDetect and rendering options setup. 2020-06-07 13:16:57 +00:00
CStr.cpp Replace boost::unordered_map, boost::unordered_set with std::unordered_map, std::unordered_set to establish consistency. 2019-11-25 14:30:25 +00:00
CStr.h Replace boost::unordered_map, boost::unordered_set with std::unordered_map, std::unordered_set to establish consistency. 2019-11-25 14:30:25 +00:00
CStrIntern.cpp Replace boost::unordered_map, boost::unordered_set with std::unordered_map, std::unordered_set to establish consistency. 2019-11-25 14:30:25 +00:00
CStrIntern.h Replace boost::unordered_map, boost::unordered_set with std::unordered_map, std::unordered_set to establish consistency. 2019-11-25 14:30:25 +00:00
CStrInternStatic.h Option to disable fog effects. 2017-12-04 15:54:24 +00:00
DllLoader.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
DllLoader.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Errors.cpp Don't leak all GUI objects on name ambiguity following 5cc814759f and remove ERROR_GROUP GUI. 2019-10-11 16:20:50 +00:00
Errors.h Catch exceptions by reference (by convention), based on patch from Markus, refs #1852 2013-05-22 22:27:53 +00:00
FileIo.cpp Fix gcc 8 compiler warning in FileIo.cpp about truncating use of strncpy [-Wstringop-truncation]. 2019-08-07 15:38:40 +00:00
FileIo.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Filesystem.cpp Use in-place construction. 2015-07-29 23:44:17 +00:00
Filesystem.h Move GUI schemas to the mod mod. Fix some validation related errors in the mod mod. 2015-06-15 16:00:26 +00:00
Game.cpp Fix rooting mistake in CGame::ReallyStartGame, detected by Bellaz89, fixes #5776. 2020-07-11 14:24:09 +00:00
Game.h Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
Globals.cpp Fix out of bounds access in Hotkey.cpp. Patch by echotangoecho. 2017-05-19 18:01:22 +00:00
Globals.h Fix out of bounds access in Hotkey.cpp. Patch by echotangoecho. 2017-05-19 18:01:22 +00:00
GUID.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
GUID.h Multiplayer lobby based on the XmPP protocol. Special thanks to Philip, alpha123, scythetwirler, and anyone else who has helped build, debug or test the lobby. 2013-11-07 20:07:24 +00:00
Hotkey.cpp Implement keyDown event 2020-05-26 21:47:03 +00:00
Hotkey.h Implement keyDown event 2020-05-26 21:47:03 +00:00
Joystick.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
Joystick.h Renames our sdl.h to libsdl.h, to avoid case sensitivity errors when it includes SDL.h. 2012-01-12 23:32:27 +00:00
KeyName.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
KeyName.h Fix out of bounds access in Hotkey.cpp. Patch by echotangoecho. 2017-05-19 18:01:22 +00:00
Loader.cpp Resolve Loader memory leak from 1f1642bfe3. 2019-09-30 08:49:00 +00:00
Loader.h Resolve Loader memory leak from 1f1642bfe3. 2019-09-30 08:49:00 +00:00
LoaderThunks.h Remove not needed checks and code for VS2015 [VS2013 -> VS2015] 2020-01-19 12:43:41 +00:00
Mod.cpp Include Pyrogenesis.h and os_path.h where needed 2020-01-02 18:07:40 +00:00
Mod.h Alpha 23 "lobby lag" release fix. 2018-05-24 18:08:56 +00:00
ModInstaller.cpp mod.io support. 2018-04-22 18:14:45 +00:00
ModInstaller.h mod.io support. 2018-04-22 18:14:45 +00:00
ModIo.cpp Stop failing if mod is broken and display invalid mods in downloader [Mod Io] 2020-07-12 09:25:03 +00:00
ModIo.h Include Pyrogenesis.h and os_path.h where needed 2020-01-02 18:07:40 +00:00
Profile.cpp Pthread -> std::thread (2/7) - Remove pthread in Profilers 2019-08-04 08:11:58 +00:00
Profile.h Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
Profiler2.cpp Include Pyrogenesis.h and os_path.h where needed 2020-01-02 18:07:40 +00:00
Profiler2.h Add Profiler2 static const member definition, since the declaration itself is insufficient for const ref access, as revealed in debug builds but not release builds following f89f90d56e and 9965f43067. 2019-08-07 14:45:13 +00:00
Profiler2GPU.cpp Pthread -> std::thread (2/7) - Remove pthread in Profilers 2019-08-04 08:11:58 +00:00
Profiler2GPU.h Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c). 2017-07-10 14:26:24 +00:00
ProfileViewer.cpp Implement keyDown event 2020-05-26 21:47:03 +00:00
ProfileViewer.h Remove disabled remains of the performance data (= profiler data + text input) upload feature from the UserReporter from 0da7e822ff. 2018-08-05 15:18:00 +00:00
Pyrogenesis.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
Pyrogenesis.h Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
Replay.cpp Support testing rejoins on turn 0, refs #3460, #4242, #5185, #5162, 2bf1dbfd13 2019-09-26 12:09:19 +00:00
Replay.h Include Pyrogenesis.h and os_path.h where needed 2020-01-02 18:07:40 +00:00
SavedGame.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
SavedGame.h Bump copyright header year numbers. 2018-02-21 18:44:52 +00:00
Shapes.cpp Fix some gcc 8 and gcc 9 compiler warnings that were thrown 4500 times. 2019-07-09 00:18:48 +00:00
Shapes.h Fix some gcc 8 and gcc 9 compiler warnings that were thrown 4500 times. 2019-07-09 00:18:48 +00:00
Singleton.h Simple refactoring of Singleton. Make it non-copyable. 2019-01-13 15:11:40 +00:00
TemplateLoader.cpp Add missing cpp files in last commit refs D2503 2020-05-28 18:18:00 +00:00
TemplateLoader.h More ScriptInterface const. 2017-11-25 06:49:58 +00:00
ThreadUtil.cpp Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
ThreadUtil.h Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
TouchInput.cpp Cleanup Camera related code and uses constant references where possible. 2019-10-03 12:58:47 +00:00
TouchInput.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
UniDoubler.h Use default Unicode encoding in source code on Windows. 2017-11-29 20:14:22 +00:00
UserReport.cpp Include Pyrogenesis.h and os_path.h where needed 2020-01-02 18:07:40 +00:00
UserReport.h Write UserReport data to local logfiles, so that users can review the personal data impact without exposing the data to JS/mods, refs #5257, b3438cabd2. 2018-08-22 22:17:42 +00:00
utf16string.h Fix -Wconversion warnings in simulation code. 2011-08-16 11:18:32 +00:00
Util.cpp Include Pyrogenesis.h and os_path.h where needed 2020-01-02 18:07:40 +00:00
Util.h Unify duplicate u8* to hex string functions in a new Hexify function variant, similar to bb1f86f515, used by Tests, CacheLoader, Terms and Conditions, Lobby and mod.io. 2018-08-08 12:59:05 +00:00
VideoMode.cpp Remove obsolete GetVideoMode platform-specifics, replaces by platform-agnostic SDL2`s APIs. 2020-06-08 17:49:26 +00:00
VideoMode.h Remove obsolete GetVideoMode platform-specifics, replaces by platform-agnostic SDL2`s APIs. 2020-06-08 17:49:26 +00:00
VisualReplay.cpp Save replay metadata for non-visual games too, refs #4577, #5548, fixes #5565. 2019-09-25 10:06:12 +00:00
VisualReplay.h Include Pyrogenesis.h and os_path.h where needed 2020-01-02 18:07:40 +00:00
World.cpp Always delete CMapReader. Patch by Sandarac. Fixes #4154. 2017-08-25 00:37:48 +00:00
World.h Always delete CMapReader. Patch by Sandarac. Fixes #4154. 2017-08-25 00:37:48 +00:00