Repository navigation
Changed
- Laravel 13 (was Laravel 10, which no longer receives security fixes). PHP 8.3 or newer is now required (8.4 recommended); PHP 8.2 stops receiving security fixes at the end of 2026. Sanctum 4, Tinker 3 and Carbon 3 come with it;
composer auditreports no advisories. - Uploaded images that are validated as
image(project cover, site logo) no longer accept SVG files, as in Laravel 12 and later: an SVG can carry scripts. JPEG, PNG, GIF, WebP and so on are unchanged. - Durations (the time spent column, the sync history) are whole, non-negative seconds under Carbon 3 as before.
- Maintenance is done by commands run by the scheduler, no longer by visiting addresses (see Removed). New command
php artisan platform:autovalidate, which validates whatever already has enough agreement on every specimen (each submission already does it for its own specimen; the command only catches up after an interruption). - The nightly recount of contributors also moves people up to the level their validated contributions now reach (for example after the number a level requires was lowered). Levels are never lowered automatically.
- The manual sync page (Validation menu) is shown inside the site, with its menu, and still sends one record at a time. Opening it only shows the record; it is sent with the Send to Specify button, and the buttons of the validated list and Process next are buttons too (POST), so following a link or reloading a page never writes to Specify. Dry run is a button next to it (it was
?dryrun=1in the address). - After an upload of specimens or a change of a project's fields, only that project's progress is recalculated (it was every project).
- Internal: the sync with Specify (
ApiController, 1,600 lines) is now the serviceSpecifySync; validation, the choice of the next specimen and the counts are services too, and controllers no longer call each other. Models and the user-levels controller have consistent class names (Field,FieldOption,FieldMapping,CollaborativeField,ValidatedField,SpecifyField,Comment,Dialog,UserCategory,WeekReport,UserCategoriesController); the database tables are unchanged.
Fixed
- Debug output (
echoandprint_r) in the automatic validation that runs after every submission, and in the re-evaluate validation page, is gone: it was written into the response of whoever submitted, before the redirect. - The class in
FieldsController.phpis now spelledFieldsController(it wasfieldsController, which Composer reported as not matching its file name). - The project page shows the number of specimens again (it was empty).
- The export of validated values as CSV no longer writes a temporary file into
public/(two downloads at the same moment could mix), and no longer fails when there is nothing to export. - A failed connection while logging in to Specify is logged instead of being printed into the page.
- An upload of specimens is all or nothing: a file with a bad row no longer leaves a project half replaced (or emptied), and a failure is shown as a message instead of printing the error into the page.
- Promotion to a higher level tries the levels in order of their points, so a person always ends at the highest level they reach.
Removed
- Addresses that changed data when visited (GET):
/update_user_counts,/users_weekly_report,/update_project_stats,/promote_users,/validate/autovalidate,/validate/reevaulate_validation(a one-off repair of old data),/build_all_missing_dialogs,/update_tree_optionsand/fill_options_from_current(both broken), and/ingest_validated_nested(the same page as/validate/manual). Nothing in the interface linked to them; the scheduler already does the counts, the project figures and the weekly ranking. If a cron job on the server called any of them, remove it: the cron line of the installation guide is all that is needed. - Code nobody used: empty controller stubs, methods without a route, three views, routes that pointed to methods that do not exist (
/ingest_validated,create/edit/updateof user categories), relations that pointed to classes that do not exist, unusedusestatements, commented-out code (including HTML comments that were sent to every browser), and the Laravel broadcasting leftovers (BroadcastServiceProvider,routes/channels.php,config/broadcasting.php, theBROADCAST_DRIVERandPUSHER_*lines of.env.example). .env.example: the Memcached, Redis, AWS andVITE_APP_NAMElines, which the platform does not use.
Security
- What users type reaches other people's pages as text, never as markup: comments (addresses in them are still links), transcribed values, error messages and names in the validation, contributors and users lists, and the texts of fields, languages and levels in the administration.
- A submission only stores the fields of that project the person may work on (their level, not hidden by them) for a specimen of that project, the same ones the form shows; anything else in a hand-made request is left out.
- Uploaded project covers and the site logo are stored under a name the platform makes, with the extension of what the file really is (it was the extension the browser sent). Languages no longer take an image (it was never shown), and their code is letters only.
- The language cookie and the browser's language count only when they name a language of the platform; the sort column of the validated list only when it is one of its columns.
- In production, addresses are built on
APP_URLeven when the routes are cached (php artisan optimize). - The field-view and hide-field buttons only go back to a page of this site (an address like
//other.sitewas followed).
Upgrading from 1.1.0
git pull
composer install --no-dev --optimize-autoloader
php artisan optimize:clear
Check php -v first: it must be 8.3 or newer. No database migration is needed. optimize:clear matters this time: it empties the cache, which may hold objects under the old class names.