v5.4.2

grokability/snipe-itv5.4.2Apr 11, 2022by snipe

AI Summary

This release addresses usability bugs in table display and CSV exports, introduces an artisan command to log out all users, and emphasizes the upcoming PHP 7.4 requirement.

Key Highlights

  • Added an artisan command to log out all users.
  • Fixed table export options and hidden column memory persistence.
  • Security updates and a warning regarding the upcoming PHP 7.4 requirement.

New Features

  • New artisan command to log out all users.

Full Release Notes

### ⚠️  IMPORTANT: Later versions of Snipe-IT will require PHP 7.4 or greater. It is highly recommended you upgrade your version of PHP NOW. 

(This is a requirement in order for us to be able to pull forward the dependencies that will allow us to support PHP8 and beyond moving forward.)

# What's New in v5.4.2

This release fixes a few usability bugs related to table display and export, namely it fixes an issue where the export options were not being honored anymore and where HTML would appear in the exported CSV data. We also fixed an issue where hidden-by-default columns would not be remembered on page reload. (That was a nasty one to track down.)

We've also added [an artisan command to log out ALL users](https://snipe-it.readme.io/docs/logout-all-sessions), and improved security so that when an admin toggles a user's ability to login to OFF, it will log the user out any existing sessions they may have open. 

And finally, a special congrats to @uberbrady for his first ever [CVE](https://nvd.nist.gov/vuln/detail/CVE-2022-1291)! 

![oh-yes](https://user-images.githubusercontent.com/197404/162765207-4a1a5044-ddcf-440e-8e3c-f02546ff6fdc.gif)


## Fixed
* Check if table exists before trying to create in migrations by @snipe in https://github.com/snipe/snipe-it/pull/10799
* Fixed #8143 Date localization not working in custom fields by @inietov in https://github.com/snipe/snipe-it/pull/10804
* Fixed `Carbon\Exceptions\InvalidFormatException: DateTime::__construct(): Failed to parse time string` by @inietov in https://github.com/snipe/snipe-it/pull/10811
* Fixed Customfields with boolean format not saving master [sc-9973] by @inietov in https://github.com/snipe/snipe-it/pull/10853
* Fixed bootstrap tables export options by @uberbrady in https://github.com/snipe/snipe-it/pull/10857
* Fixed #10872 - table crashing when no export options are provided by @uberbrady in https://github.com/snipe/snipe-it/pull/10873
* Fixed problem with static paths in [upload mover script](https://snipe-it.readme.io/docs/migration-uploads) - by @QveenSi in https://github.com/snipe/snipe-it/pull/10874
* Disable the display of HTML content during exports (cherry-picked for master) by @uberbrady in https://github.com/snipe/snipe-it/pull/10918
* Security fixes to master branch by @joelpittet in https://github.com/snipe/snipe-it/pull/10895
* Fixed Dates in Print All Assigned report doesn't match to history by @inietov in https://github.com/snipe/snipe-it/pull/10903
* Fixed #10892 - MySQL 8 compatibilty requires primary key by @snipe in https://github.com/snipe/snipe-it/pull/10902
* Fixed #10866 - action_date for check-in not including H:i:s by @Godmartinz in https://github.com/snipe/snipe-it/pull/10920
* Fixed Bulk user edit not updating checked out asset locations by @inietov in https://github.com/snipe/snipe-it/pull/10913
* Fixed #10482 - Downgrade bootstrap-table so columns stay remembered by @uberbrady in https://github.com/snipe/snipe-it/pull/10927


## Added
* Use the `max_results` env value in the paginator by @snipe in https://github.com/snipe/snipe-it/pull/10797
* Added QR and alt barcode urls to asset transformer by @snipe in https://github.com/snipe/snipe-it/pull/10798
* Added session killer artisan command by @snipe in https://github.com/snipe/snipe-it/pull/10814 [[documentation](https://snipe-it.readme.io/docs/logout-all-sessions)]
* Logout user when their activated status is switched to off by @snipe in https://github.com/snipe/snipe-it/pull/10876


## New Contributors
* @QveenSi made their first contribution in https://github.com/snipe/snipe-it/pull/10874

**Full Changelog**: https://github.com/snipe/snipe-it/compare/v5.4.1...v5.4.2

### Upgrading

For general upgrading instructions, [click here](https://snipe-it.readme.io/docs/upgrading). Users who installed Snipe-IT via Git (recommended) can just run `php upgrade.php`.