1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

12 Commits

Author SHA1 Message Date
Nick Liu
a04db4e2c8
Hotfix: Don't fatal error if core_image.php is corrupt 2020-03-29 15:56:33 -05:00
Nick Liu
07f5bebab5
Code cleanup for automated release builds
Low-hanging resolutions for Code Climate
2020-03-27 21:57:51 -05:00
Nick Liu
03dfb5cce3
Implemented insecure file check in File Inspector
Bugs fixed:

* Security failure status is now prioritized in
  file_inspector::getStatusForValidationCode()
* File Inspector list view now supports filters
2020-03-27 17:06:16 -05:00
Nick Liu
b4f55049f8
File Inspector now shows the old e107 version of core files
Bugfixes related to this change:

* e_file_inspector: During validation, the checksum is now calculated,
  even if the file is old.
* e_file_inspector_json: Strip the "v" from the beginning of version
  numbers in the database to make them proper PHP-standardized versions.
2020-03-27 17:06:16 -05:00
Nick Liu
00d171473e
Validation bits improvement for e_file_inspector
Now File Inspector detects old files regardless of their hash value.
2020-03-27 17:06:15 -05:00
Nick Liu
6095c94de3
Minimum viable rewrite of File Inspector frontend 2020-03-27 17:06:14 -05:00
Nick Liu
b425b4e45d
CoreImage: API rework 2020-03-27 17:06:14 -05:00
Nick Liu
b8ed70693f
Restored JSON core image generator for performance
PDO SQLite was performing unacceptably poorly.
Let's just load the entire integrity image into RAM…
2020-03-27 17:06:13 -05:00
Nick Liu
e10c3230f4
Bugfixes and performance optimization for e_file_inspector
- MOD: e_file_inspector::validate() will no longer bother with
       checksumming a file if the database hash is not present for the
       requested version.
- MOD: Better check for e_file_inspector::VALIDATED_DETERMINABLE
- MOD: e_file_inspector::VALIDATED_UPTODATE will now pass if there is no
       checksum in the database and no calculable checksum in the real
       file.
- FIX: Better documentation for
       e_file_inspector_interface::VALIDATED_DETERMINABLE
- FIX: Use the same bit for e_file_inspector::VALIDATED for a full
       validation check in e_file_inspector::validate()
2020-03-27 17:06:12 -05:00
Nick Liu
0494000356
Rewrote e_file_inspector validation constants
Now uses bit flags, as the previous approach of "overriding" the
validation code may hide information.  Previously,
e_file_inspector::VALIDATION_FAIL could be overridden by
e_file_inspector::VALIDATION_OLD.  Now, e_file_inspector::VALIDATED_HASH
and e_file_inspector::VALIDATED_UPTODATE provides information about
both.
2020-03-27 17:06:12 -05:00
Nick Liu
0e7ad8a1b0
Rewrite e_file_inspector implementation: Use SQLite phar 2020-03-27 17:06:11 -05:00
Deltik
20dbdefb77
Began work on the core_image.php reader 2020-03-27 17:06:10 -05:00