Skip to content

1.8.0

Choose a tag to compare

@sandymac sandymac released this 31 Oct 01:13
bea6e21
    • update_media_meta takes filenames with route: one set across up to 50 media files of one page, the page counterpart of paths (api plugin 1.1.3's POST /pages/{route}/media/batch/meta). The fields are checked once before anything is written, and each file gets its own row in results.
    • manage_users takes current_password. From api 1.1.0 an update that changes your own password needs it, and from 1.1.4 so does one that changes your own email; without it the call fails with a validation error. An account with no password yet (user records now carry has_password) and an admin changing someone else's account aren't asked. Wrong ones count toward the sign-in lockout. Changing your own password also signs the account out of its other browsers (with the Login plugin 3.11.0); the MCP connection keeps working, because its access token is an API key.
    • transfer_page with mode: "copy" takes order, the order number for the copy's folder. Without it, from api 1.0.56, a copy of a numbered page is numbered after its last numbered sibling instead of dropping out of the menu (getgrav/grav#4367).
    • delete_page returns undo when a plugin that keeps deleted pages attaches one: the api call that restores the page (api 1.1.3). Page records say delete_recoverable when such a plugin is installed.
    • list_environments needs only api.access, as api 1.1.5 lists environment names to any admin user. It asked for api.system.read before. Creating and deleting environments keep their permissions.
    • manage_blueprint_file notes api 1.1.4's new limits: a theme or plugin folder also needs api.config.write, its templates folder and anything outside user/ need super admin, and filenames ending in a space or dot, or carrying control or invisible characters, are refused.
    • Triaged against api plugin 1.0.56 through 1.1.5 and Grav 2.2.12 through 2.2.16. The api floor rises to 1.1.5, where list_environments changed and which has every route and parameter above. From 1.1.0 the api plugin needs the Login plugin 3.11.0 or newer, which GPM installs with it. The Grav floor stays at 2.1.5. The rest passes straight through: an API key whose id is all digits no longer fails in bursts of 500s, and new keys never get such an id (1.0.56, getgrav/grav-plugin-api#64, the api side of 1.7.1's fix); creating or revoking an API key can no longer be undone by another request writing the key store at the same moment (1.1.0), which closes a gap in OAuth refresh rotation, where a request still using the old access key could write it back after rotation revoked it; an invitation is accepted only once, and creating or removing invitations no longer brings back used ones (1.1.0); creating or copying a page refuses a . or .. route segment (1.1.0), and a module at the top level of the site is refused on create, move, copy and reorganize (1.0.57); page records carry uuid, the page folder's permanent id from Grav 2.2.15, and a copied page gets its own (1.1.3); updating a page that exists only in a non-default language saves that translation when no lang is given (1.0.56); list_pages shows and filters by a page's frontmatter template:, and translating such a page keeps its file name (1.1.2); an image whose bytes happen to contain <svg is no longer saved as an empty file, and an SVG the sanitizer empties is refused (1.1.5, getgrav/grav-plugin-api#70); thumbnails follow the photo's EXIF orientation (1.1.5); list_pages with children_of on a folder with thousands of pages is faster and no longer runs out of memory (1.0.56); discover_plugins passes along sidebar items' new children (1.1.0) and placement (1.1.3); get_blueprint returns an iconpicker field's icon_set when a theme or plugin registers one (1.0.57). Replacing or turning off your own 2FA now takes a current code (1.1.0), on routes this plugin skips, as are the new Admin Next sidebar preferences.