Repository navigation
FluentCMS 1.0.0-preview.2
Pre-releaseThe second preview of FluentCMS, a headless CMS for .NET, and the first with its admin. Every package is on nuget.org as 1.0.0-preview.2, the twelve of the admin among them, and the image of the reference host is ghcr.io/fluentcms/fluentcms:1.0.0-preview.2, for linux/amd64 and linux/arm64; the prebuilt static build of the admin, fluentcms-admin-1.0.0-preview.2.zip, is on the GitHub release; @fluentcms/client for TypeScript is on npm as @fluentcms/client@1.0.0-preview.2 under the dist-tag next. The contract can still break between previews, and a preview makes no promise to upgrade a database.
These notes name the changes since 1.0.0-preview.1: the admin first, then the limits that still hold, what breaks code or a database built before this preview, what was added and what was fixed.
The admin
The first preview of the admin of FluentCMS, the Blazor WebAssembly app in which editors manage content and media, and administrators users, roles, keys, members, sites, settings, plugins and jobs. It is a client of the Management API alone, and signs the users of the instance in on its hosted login page. docs/admin.md is the overview. It comes in three distributions, the same app built from the same packages:
- At
/adminof the API host, for most setups: the image serves it, and so does a host made withdotnet new fluentcms, which addsFluentCMS.Admin.Hostingwith the prebuilt build it carries unless--admin falseis given. Open{public origin}/admin/, such ashttps://localhost:5443/admin/for a template host in Development, and sign in as an administrator of the instance. The sign-in needs https. - The prebuilt static build, for the first-party admin on a static host or a CDN:
fluentcms-admin-{version}.zipon the GitHub release, with the recipes ofdocs/admin-hosting.md, and on the API host the two settings of an admin on another origin (docs/admin-configuration.md). - An app of your own, for a team with admin halves of its own plugins:
dotnet new fluentcms-admin, with the administration pages, the rich text editor and the six first-party halves as package references, served from the team's host in place of the prebuilt build or as static files.dotnet new fluentcms-pluginwrites a plugin's admin half by default, and it restores from nuget.org now that its packages are published.
The packages. Twelve new package ids on nuget.org, each with its symbols: FluentCMS.Admin.Abstractions, FluentCMS.Admin.Components, FluentCMS.Admin, FluentCMS.Admin.Administration, FluentCMS.Admin.RichText, FluentCMS.Admin.Hosting, and the admin halves of the first-party plugins, FluentCMS.Plugins.Media.Admin, FluentCMS.Plugins.Webhooks.Admin, FluentCMS.Plugins.Mcp.Admin, FluentCMS.Plugins.AiAssist.Admin, FluentCMS.Plugins.MultiSite.Admin and FluentCMS.Plugins.Search.Admin. They are a preview. FluentCMS.Admin.Abstractions and FluentCMS.Admin.Components, the contract of an admin half and the wrapped components it draws with, follow semantic versioning from 1.0.0, as FluentCMS.Sdk does, and may break between previews until then; the other ten have no such promise. FluentCMS.Admin and FluentCMS.Admin.Hosting have the public API analyzer, with every entry unshipped. A half's AdminRange is compared with the assembly version of FluentCMS.Admin.Abstractions, which is 1.0.0 for every preview of 1.0.0, so build a half again for each preview. docs/releasing.md has the policy, under "The admin packages".
A configured client. While the admin is on, a fluentcms-admin that the options list and that the admin at /admin cannot sign in with is named in the startup report, and the host still starts: admin-client-secret for a Secret, admin-client-scopes with those of profile, email and management it lacks (the server holds no client to openid and offline_access), and admin-client-redirect-uri when none of its RedirectUris is the callback of the admin the host serves (#3464). The report never holds the secret. A start whose options list no client of the operator's still keeps the clients the host registered before, with their sessions and tokens, and logs which (event id 9003), although the admin adds a client of its own: ClientRegistration.ContributedByPackage, a new member that the admin sets on its client, keeps that client out of the rule, and every client listed through the configuration, cms.Clients, or the host's Configure or PostConfigure counts. A fluentcms-admin the operator had listed is written as the admin's own client while the section is lost (#3464).
Browsers. The admin is built for the last two versions of Chrome, Edge, Firefox and Safari, on desktop and tablet; a phone gets a readable layout that no test covers. Its end-to-end tests run in Chromium against a publish of the reference host on every pull request into main that changes more than docs and on every push to main, against its image on every push to main, and every night in Firefox and WebKit, Safari's engine, against the publish (#3462). Five cases are left out in WebKit, each with an issue: closing a tab with nothing unsaved (#3648), the loading state on the reload of a lazily loaded page, in two cases (#3649), the preview after its page navigates to one without the preview script (#3650), and a link set by keyboard in the rich text editor (#3651).
Language. English is the only interface language that ships. Every text is in resource files ready for a translation, which docs/admin-translating.md describes. Each user sets the language, when an instance offers more than one, the time zone and the formats of dates, times and numbers on the account page of the admin (#3457).
Accessibility. Every view is checked with axe-core against WCAG 2.2 AA, in the light and the dark theme and right to left, with no exception left (#3458). The daily loop runs by keyboard alone, and the criteria of WCAG 2.2 that axe-core does not check have checks of their own (#3460). The screen reader pass, NVDA with Firefox and VoiceOver with Safari, is still to be run by the maintainer with the script and the table of docs/admin-accessibility.md.
Known to be missing or open.
- In WebKit, the preview pane stays ready after its page navigates to one without the preview script (#3650), and a link set with Ctrl+K and an address in the rich text editor is not made and the selected text is lost (#3651).
- An entry action,
[EntryAction]withEntryActionBase, is part of the contract and of a half's manifest, but no view of the admin draws one yet; it is on the follow-up list of the admin (#3610). - The findings that reviews left for later are on the follow-up lists of #3608 (content), #3609 (identity and access), #3610 (the admin) and #3611 (storage, jobs, events and settings).
Limits
- The contract can break between previews.
FluentCMS.SdkandFluentCMS.Plugins.Abstractionsfollow semantic versioning from 1.0.0. Until then a preview may change or remove a public member, and its notes name each such change. - A preview makes no promise to upgrade a database. Each migration stream still has one migration,
Initial, for each provider, and the changes of the model in this preview went into it. A database made by1.0.0-preview.1with the media, search or AI assist plugin is refused withFCMS1308, and one without them starts with a warning that names the indexes it lacks (below). A later preview may need a new database. - Not verified against a real service. CI calls no provider. Member sign-in with Apple and AI assist on Azure OpenAI have still not been run against the real service, and are verified before 1.0.0. What the member sign-in run of
1.0.0-preview.1left open is in #3160. - Search on SQL Server matches a part of the text. The search plugin uses full-text search on PostgreSQL and FTS5 on SQLite. On SQL Server it matches each word as a part of the text, without a full-text catalogue, so it reads every indexed row of the type, locale and state, and
otnetfinds "dotnet" there only (#3049). No provider ranks by relevance or stems the words of a language. - AI assist calls OpenAI-compatible endpoints only. Its providers are
openAi,azureOpenAiandopenAiCompatible. Ollama is reached through its/v1endpoint without a key, and any other client comes through theIAiClientFactoryslot (#3048). Ollama's/v1endpoint reads the oldermax_tokensand notmax_completion_tokens, which the plugin sends, so an answer is capped atmaxOutputTokensthere only with the site settinglegacyMaxTokens, which is off by default (#3008). Settings that nameanthropicorollamaare refused with what to use instead, and a configuration sectionFluentCms:Ai:AnthropicorFluentCms:Ai:Ollamastops the host. - An SSO provider's remote sign-out can come from another site.
/account/sso/{name}/signoutnow ends only the sign-in whose providersidandissthe request carries (#3204), but a site that knows them ends that sign-in and its tokens with one top-level link, and a provider that gives onesidto every relying party of a sign-in lets each of them do so. Back-Channel Logout is not supported. The other three known bugs in sign-in and sessions of1.0.0-preview.1are fixed (below). - SQLite with several processes on one file. A process that waits for a lock can still take it from a holder that is still working, when the holder's lease runs out inside a long write transaction of another connection while other processes keep writing; a holder's own write transactions now renew it (#3186). A
fluentcms schema applythat notices it lost its lock says so (FCMS3339orFCMS3340) and is finished by a second run. The other two known bugs in operations of1.0.0-preview.1are fixed (#3192, #3212). - A storage that instances share is safe only when they share the database too. An instance that purges, replaces or removes a site deletes the files it wrote even when an asset that another instance imported by a line without a file names them. Import between such instances with
mediaFiles=true(#3472).
Changes that break code built before this preview
-
The admin is on by default.
FluentCms:Admin:Enabledis true unless it is set to false, in the image and in every host that callscms.AddAdmin()(#3464). An instance that set nothing about the admin now, after the upgrade:- serves the admin at
/admin/, underFluentCms:ReverseProxy:PathBasewhen it is set, with itsconfig.jsonat/admin/config.json; the admin's pages carry aContent-Security-Policyof their own andCross-Origin-Opener-Policy: same-origin, and no other route changes; - registers the public client
fluentcms-adminof the admin pool at start, a new row ofcms_oidc_application, with the redirect URI{public origin}/admin/authentication/login-callback; - counts the admin's files, their compressed copies and fingerprinted paths included, under
FluentCms:RateLimits:StaticFiles:PermitLimit(15000 a minute per client address), and its page,config.jsonand its calls under the coarsePreAuthlimit, asdocs/admin-configuration.mddescribes under "Rate limits"; - needs
FluentCms:PublicOriginoutside Development: a host that started withFluentCms:Security:AllowRequestOriginand no public origin now stops withFCMS1101, and so does one whose public origin has a host name that is not ASCII (write it in itsxn--form) or whose path base holds a character other than letters, digits and- . _ ~ /, or a segment of dots only. A command of the host, such asfluentcms migrate, needs no public origin, and a start with nothing set stops on the same three refusals as in Production before (FCMS1102,FCMS1105,FCMS1106).
- serves the admin at
-
To keep what the host had before, set
FluentCms:Admin:Enabledto false,FluentCms__Admin__Enabled=falsefor the image:/adminanswers 404 like any unknown path, no client is registered, and a client the admin registered while it was on is deleted at the next start with its sessions and tokens (#3487). Do so on an instance whose admin is the prebuilt static build or a team's app on another origin, which keeps its ownfluentcms-adminunderFluentCms:Clients:Applications; with the admin on, that listed client is the one the admin at/adminsigns in with too. -
The packed
FluentCMS.Admin.Hostingdepends onFluentCMS.Coreat its exact version,[1.0.0-preview.2]for this preview, since it serves/adminwith members of Core that no public API file tracks. A host that takes another version of Core with it is told at restore:NU1608, a warning only, when it references a newerFluentCMS.Coreitself, as a host ofdotnet new fluentcmsdoes, so keep every FluentCMS package of a host at one version;NU1605, an error by default, when it references an older one; andNU1107when two packages ask for different ones. -
Rotating, revoking or expiring an API key needs every grant of its role as its binding narrows it, as creating it does, besides
apikeys.managewhere the key reaches; without the grants the call is refused with 403. Revoking a key, or expiring it now, revokes the pending invitations it sent (#3262, #3297). -
Revoking an invitation needs every grant of its roles, and so does sending one that ends a pending one to the same address. An invitation is accepted only while its sender still stands: the user is active, the key is neither revoked nor expired, the service account's client still exists, and the sender holds
users.manageand the roles' grants. Otherwise accepting fails withFCMS3005; an invitation sent by the CLI is not checked again (#3297). -
A job that ignores its token past its attempt timeout is abandoned 30 seconds later: the attempt fails with
FCMS2508, the worker goes on, event 9515 is logged and the counterfluentcms.job.abandonedcounts it. It may still run beside its retry.FluentCms:Jobs:MaxAbandonedJobs(4, a new option) caps how many are left running on an instance, and the gaugefluentcms.job.abandoned_runningshows them; past the cap such a job keeps its worker until it returns (event 9519), as every such job did before (#3266). -
A rich text URL under
href,src,url,cite,action,formaction,poster,backgroundorxlink:hrefof any node or mark is refused withFCMS2114(422) at its path when it has a scheme other thanhttp,https,mailtoandtel, or is not a string; a URL with no scheme is allowed. The JSON form stored and returned ajavascript:link as written; only the HTML and Markdown renderers left it out. A URL stored before is left out of every entry read: alinkmark goes and its text stays, any other key goes alone. A write that carries it on, such as a patch of another field, stores the value without it and logs warning 9405, which names the field and the scheme, never the URL (#3269). -
A secret setting, a key that its settings class marks
[SettingsSecret]or that is named like a secret, such asapiKeyofai, is stored incms_settingprotected with the Data Protection key ring, as a string that starts withfcms-protected:v1:, where it was stored as plain text. A secret stored before is read as it is, and protected by the next write of its settings or byfluentcms settings reprotect; while one is left, the startup report listssettings-secrets-unprotected, so replace the secrets a backup may have exposed. The secrets are only as safe as the key ring: losing it, or replacing its certificate without keeping the old one, loses every secret setting. A value the ring cannot unprotect reads as its code default, is not inherited by a site from the instance, is left out ofsecretsSetand is logged with event 9804, and the report listssettings-secrets-unreadable(#3270). -
Lockout no longer ends the sessions a user or a member already has: the authorize endpoint over a live cookie, the token endpoint and the member pool's cookie check only that the account may sign in, and a new sign-in is still refused while it is locked out. Before, a lockout, which anyone who knows a user name can raise, held a signed-in user at the authorize endpoint and refused its refresh tokens (#3271).
-
A configured client with
RequireConsentwhose redirect URIs change at start loses its users' consents and their tokens, so its users consent again (#3272). -
A job of a type the instance has not registered, as in a rolling deploy or after a plugin is removed, is put back for an instance that knows it without using up its attempts (event 9517), and is dead-lettered with
FCMS2501one hour after it was first put back; each attempt failed withFCMS2501before. A recurring job of such a type makes no job on that instance and is logged with event 9518 (#3276). -
Dead-lettered jobs and failed outbox deliveries are removed 30 days after they failed:
FluentCms:Jobs:DeadLetteredRetentionis a new option (30 days), andFluentCms:Events:Outbox:FailedRetentiondefaults to 30 days, where both were kept for good. The outbox removes only a delivery that ran out of its attempts. To keep them all, set either option to an empty value (#3285). -
A user name that is another user's email address, or an address that is another user's name, is refused on any save that sets it, with
FCMS3049onuserNameorFCMS3003onemail; only a new or changed value is checked. At start, up to 20 such pairs already stored are logged with event 9007, each with the two user ids; rename one of each (#3296). -
An authenticator code is taken once: a code of the time step of the last code accepted, or of an earlier one, is refused at sign-in, on
/account/enable-two-factorand at/me/two-factor(#3296). -
The token endpoint redeems no code or refresh token of a user who must change the password (
invalid_grant), andfluentcms user reset-password --password-stdinsets the forced change, where it cleared it, and says so (#3296). -
The startup refusals
FCMS1102,FCMS1105andFCMS1106, the refusals offluentcms doctorand thepublic-origin-unsetline of the startup report apply in every environment but Development, where they applied in Production only, so a Staging or custom-named environment needs what Production needs. Without a public origin, the server of the OpenAPI document, and so its OAuth URLs, is the request's path base as a relative URL, where it followed the request'sHost(#3298). -
src/FluentCMS.Host/.env.examplehasFLUENTCMS_ALLOW_GENERATED_SIGNING_KEYandFLUENTCMS_ALLOW_UNENCRYPTED_KEY_RINGcommented out, so a compose stack made from it with no certificates stops withFCMS1102andFCMS1106until both are uncommented for an evaluation or the certificates are mounted (#3298). -
PUT /api/management/v1/webhooks/{id}keeps the stored value of a header sent as***only while the URL keeps its scheme, host and port. APUTthat changes any of them is refused withFCMS1560onheaders.{name}until it gives the value. It kept the stored value whatever the URL, so a holder ofwebhooks.managecould have the write-only headers sent to a host of their own (#3299). -
FluentCms:Ai:AzureOpenAi:ApiKeyandFluentCms:Ai:OpenAiCompatible:ApiKeyare sent only to the newFluentCms:Ai:AzureOpenAi:EndpointandFluentCms:Ai:OpenAiCompatible:Endpoint. A host that has either key without its endpoint, or an endpoint that is not an absolutehttporhttpsURL, does not start.FluentCms:Ai:OpenAi:ApiKeygoes to OpenAI's own endpoint unlessFluentCms:Ai:OpenAi:Endpointis set. A site whose settings name another endpoint no longer gets the configuration's key:openAiandazureOpenAiare refused withFCMS1685(409), andopenAiCompatibleis called with no key. Before, those keys went to any allowed endpoint a site named (#3300). -
The MCP tool
unpublishruns after a dry run, as{type}_deleteandbulkdo: a call answers the plan, with the published references that would break, and aconfirmationToken, and unpublishes nothing; the same call withdryRun: falseand that token unpublishes. It unpublished at once (#3300). -
IMcpClients.RemoveUnusedAsyncis a new member with no default, which an implementation other than core's must add (#3301). -
An SSO provider whose authority is a shared Microsoft tenant,
common,organizations,consumersor the id of the consumers tenant, on a Microsoft sign-in host stops the host withFCMS3070, since the handler cannot check the issuer of such a tenant (#3301). -
The outbox delivers in a lane per owner, each plugin one and core's and the host's handlers together another: an owner's handlers get its events one after another in the order they were recorded, and lanes of different owners run side by side, so a slow handler holds back only its own owner. The order holds on one instance only. The recurring job
events.outbox.drainis gone, and a start deletes its row: a sweep every minute fails the deliveries whose attempts ran out and kicks a drain when rows are due, so an idle instance adds no job a minute (#3303). -
activity.retention,content.trash.purge,oidc.prune,members.remove_unverifiedandidempotency.retentionhave an attempt timeout of 10 minutes, whateverFluentCms:Jobs:AttemptTimeoutsays, and they andjobs.retentionare resumable: a run stopped at its limit has succeeded, logged with event 9520, and the next run goes on with what is left, where a backlog longer than an attempt was dead-lettered withFCMS2508(#3304). -
Every write of a media asset moves its version on, which
If-Matchchecks (below), so the columnversionofcms_media_assetwent into the media plugin'sInitial, since a preview upgrades no database. A database made by1.0.0-preview.1with the media plugin lacks that column and is refused withFCMS1308, at start and byfluentcms migrate, with nothing applied; recreate it (#3333). -
A search matches only the searchable fields the caller may read (#3263). The search plugin keeps a row for each searchable field of an entry, so the column
fieldofcms_search_entrywent into the search plugin'sInitial, since a preview upgrades no database. A database made by1.0.0-preview.1lacks that column and is refused withFCMS1308, at start and byfluentcms migrate, with nothing applied; recreate it and rebuild the index (POST /api/management/v1/search/rebuild). -
ISearchIndex.MatchesByFieldis a new member, with a default offalse, andSearchRequest.Fieldsnames the searchable fields the caller may read, or isnullwhen it may read them all. An index other than the search plugin's is refusedqwithFCMS2211for a caller who may not read every searchable field, until it matches only the fields ofSearchRequest.Fieldsand returnstrue(#3263). -
SystemOperation.Begintakes the host'sTimeProviderafter the accessor, asSystemOperation.Begin(accessor, time, Origin.Job, site), and stamps the operation with it (#3310). An event read before it is published, with no source set, has the system's source atDateTimeOffset.MinValue; the bus stamps it when it is published, as before. -
The clients,
FluentCMS.Clientand@fluentcms/client, throw a problem for an empty answer, a 204 or a literalnullwhere a call returns a result, which they answered as null orundefinedbefore (#3310), and refuse the path segments.and..(#3273). The calls of@fluentcms/clientareasync, so an empty,.or..segment rejects the promise they return, where it threw before the call returned. -
POST /me/two-factor/enrolandPOST /me/two-factor/verifyanswerFCMS3065(403) to a token whose sign-in on the hosted pages is more than ten minutes old, a refreshed one included, so a client signs the user in again before it sets up two-factor (#3372). -
PATCH /users/{id}refusesmustChangePasswordtrue for a user without a password (FCMS3049onmustChangePassword), and such a user who carries the flag is no longer sent to/account/change-password(#3378). -
The invitation page refuses a user name that is an email address other than the invitation's own, with one answer whether or not a user has it (#3373).
-
A usage row of the AI assist plugin keeps the name its principal had at the call (#3418), so the column
principal_nameofcms_ai_usagewent into the plugin'sInitial, since a preview upgrades no database. A database made by1.0.0-preview.1lacks that column and is refused withFCMS1308, at start and byfluentcms migrate, with nothing applied; recreate it, which starts the usage log, and with it the day's budget count, afresh. -
The MCP tool
schedulewithaction: unpublishruns after a dry run, asunpublishdoes: a call answers the plan with aconfirmationTokenand schedules nothing, and the same call withdryRun: falseand that token schedules it. A scheduled publish runs at once as before, and refusesdryRunandconfirmationToken(#3361). -
A user keeps at most
maxConsentsPerUser(20, a new key of the settings areamcp, andMcpClientRegistrationPolicy.MaxConsentsPerUser) MCP clients that theopenpolicy approved by consenting. A client counts for a user while the user holds a consent to it, one ended by its session or a password change included until the prune of the authorization server removes it, and for the user who first consented to it for as long as it is there, until that user ends the consent withDELETE /api/management/v1/mcp/consents/{id}. A consent that would keep one more ends on the hosted error page withconsent_limit_reached, whose sentence tells the user to end a consent they no longer use or to ask an administrator, and is logged with event 9008 (#3397, #3441). -
IMcpClients.RemoveOpenApprovedAsyncis a new member with no default, which an implementation other than core's must add (#3397). -
On SQL Server a start with
MigrateOnStartupor afluentcms migratethat waits for another process's migrations no longer fails at the command timeout withExecution Timeout Expired. It logs event 9305 once after 30 seconds and fails after 15 minutes with aTimeoutExceptionthat names EF's application lock__EFMigrationsLockand says that another process is applying migrations;migrateexits with 1 andFCMS3302, as on SQLite (#3192). -
On PostgreSQL the same wait, for the advisory lock of the whole run, which had no end and logged nothing, logs event 9305 once after 30 seconds and fails after 15 minutes in the same way, naming the migrations lock of FluentCMS (#3192). A migration that runs longer than 15 minutes now makes the processes that wait for it fail; apply it from one
fluentcms migratebefore the hosts start. -
Event 9305 names the lock in the property
Lock, which replacesWritten; on SQLite it holds the row of__EFMigrationsLockand its time, and the message reads as before (#3192). -
A change of API keys made by a key, and sending or revoking an invitation by any caller, check the caller again in the transaction of the write: grants cut, or a calling key revoked, expired, rotated without overlap, past the overlap of the secret it presented or no longer allowed from the request's address, after the checks before it, refuse the change with 403 and write and mail nothing (#3481, #3483).
-
A host that sets
EventsorEventsTypeon theOpenIdConnectOptionsof a provider ofFluentCms:Ssokeeps FluentCMS's check of the remote sign-out and of the token's subject and session: FluentCMS'sOnTokenValidated,OnRemoteFailureandOnRemoteSignOutrun first, then the host's, and anEventsTypeis resolved once a request as the handler would (#3225). -
A write that changes a shared (non-localizable) field, whether a save, a discard of the draft, a version restore or a publish whose hooks change the draft, and a write that adds a locale, advance the draft version of every other locale of the entry too, with a version of its own whose message is
Shared fields changed in {locale}.orAdded the locale {locale}., so a write or publish of another locale with a version read before it answers 412, and of two writes of two locales that cross, one does. An import of an entry the instance has advances the locales the package does not name the same way (#3265). -
A 412 can now come with the caller's own version unchanged: a write that moves the shared fields, or adds a locale, is refused when another locale of the entry moved since the write read it. Read the entry again and retry (#3265).
-
The other locales'
updatedAtandupdatedBychange with another locale's shared edit or added locale, so a list sorted byupdatedAtmoves them, and an import's check that a locale is the same moment as the package's sees them as changed (#3265). -
The versions a locale takes for another locale's shared edit count against
MaxVersionsand can prune that locale's own older versions. No event or webhook announces them, so a version or ETag kept from an event goes stale (#3265). -
A list with
locale=allholds every entry the caller may read once, also one with no row in the site's default locale, and is filtered, sorted, paged and counted by the entry's row in the first locale, the default and then the site's order, that has one the caller may read; it was the default locale's rows alone. A filter or sort on a field the caller may not read in one of the locales it reads is refused, the message naming that locale. A search withlocale=allsearches the first locale the caller may read, and lists an entry only by its row there, under that locale's row rule (#3277). -
MaxPopulatedEntriesholds for the whole answer of a read: the locales of alocale=allread and the locales a read falls back to count together, so such a read that inlines more related entries than the cap is refused withFCMS2207, where each locale had a cap of its own before (#3284). -
A multiple field or blocks that declares no maximum holds at most
MaxItemsitems (1,000, the new optionFluentCms:Content:MaxItems), and a value with more is refused withFCMS2103, through the SDK and an import too; a declared maximum, higher or lower, holds instead (#3307). -
A content hook runs for at most
FluentCms:Content:HookTimeout(30 seconds, at most a day, a new option), and starts on the thread pool, so one that blocks before its first await is held to it too: one that runs longer has its token cancelled, and the write fails with the new codeFCMS2410(503), naming the hook, and rolls back, to its savepoint inside another transaction, with what it tracked detached; it is logged with event 9406. A hook that timed out, or that had not ended when its caller was cancelled (a client that went away, a lostIdempotency-Key), may still be running, so its scope then writes and commits nothing more: further writes, a write around a nested one whose failure was caught, a commit of the caller's own transaction, and any save,ExecuteUpdate,ExecuteDeleteorExecuteSqlon that scope'sCmsDbContextare refused withFCMS2410, and a bulk reports the items after it asNotRun. A plugin's own context and other scopes are not covered. A hook that ends afterFluentCms:Content:SlowHookThreshold(1 second) is logged with event 9407. A scheduled publish or unpublish whose hook timed out is tried again (#3307). -
A request with an
Idempotency-Keythat a repeat took over, after the renewals of its lease failed for a whole lease, is cancelled: what it had not committed rolls back, it answersFCMS3142(409), and event 9145 is logged (#3307). -
A line of a transfer package that names a locale for an entry of a type that is not localized is reported as an invalid item (
FCMS3212) instead of an unexpected failure (FCMS3215) (#3305). -
A write that adds an entry to a site, or a locale of an entry, is refused with
FCMS2301once the site is gone, also on an instance whose cache still has it, and a site deletion waits for such a write that is under way.SiteDeletedEventis recorded in the outbox in the transaction of the deletion, so a cleanup of a plugin runs even when the process stops right after it, and a deletion whose event cannot be recorded does not happen (#3306). -
IDataProvider.BeginSnapshotAsyncandIDataProvider.LockSiteAsyncare new members with defaults: a provider other than the three of FluentCMS reads an export without a snapshot, and one whose database has more than one writer must lock the row ofcms_site(#3305, #3306). -
On PostgreSQL the text columns of content fields that are not JSON have the collation
C, so a sort on text, and the cursor that continues it, follow the code points, as on SQLite and SQL Server, and no longer the database's collation:Bananacomes beforeapple, and_cherryno longer besidecherry(#3308). A query of PostgreSQL data that sorts on text, or pages through such a sort, returns another order than before. Nothing changes a content table at start. Changing a column keeps its type, rewrites no rows and rebuilds the indexes on the column, and its table is locked until that is done, so reads and writes of the type wait: do it in a maintenance window.-
A host with content migrations runs
fluentcms migrations addwith a name of its own now, which with no schema change holds only anAlterColumntoCfor each content text column, and thenfluentcms migrate. Otherwise the alters wait for the host's next content migration and go in with it. -
Schema apply does not change a collation, so the content tables that a host without content migrations already has keep the database's order, and its plan lists each such column under
Left alone:(#3476); a column that schema apply adds, or whose type or nullability it changes, getsC. Recreate the database, exporting and importing the content, or run the statements that this query writes. They cover thetextandcharacter varyingcolumns of the content tables,cms_{type}andcms_{type}_i18n, which alone have auuidcolumndocument_idand asmallintcolumnstate, other thanlocale; system tables andjsonbcolumns are left out, and a column that hasCalready. Each statement keeps the column's own type:TYPE texton aslug,url,emailorselectcolumn, or a text column with a maximum length, which arecharacter varying(n), leaves a type change that the nextfluentcms schema applyrefuses as destructive. Read the list before running it.SELECT format('ALTER TABLE %I ALTER COLUMN %I TYPE %s COLLATE "C";', c.table_name, c.column_name, CASE WHEN c.data_type = 'character varying' THEN format('character varying(%s)', c.character_maximum_length) ELSE c.data_type END) FROM information_schema.columns c WHERE c.table_schema = current_schema() AND c.data_type IN ('text', 'character varying') AND c.column_name <> 'locale' AND c.collation_name IS DISTINCT FROM 'C' AND EXISTS (SELECT 1 FROM information_schema.columns d WHERE d.table_schema = c.table_schema AND d.table_name = c.table_name AND d.column_name = 'document_id' AND d.data_type = 'uuid') AND EXISTS (SELECT 1 FROM information_schema.columns s WHERE s.table_schema = c.table_schema AND s.table_name = c.table_name AND s.column_name = 'state' AND s.data_type = 'smallint') ORDER BY c.table_name, c.ordinal_position;
-
-
The
widthandheightof an image are those it is shown at, after its EXIF orientation, asIImageProcessor.IdentifyAsyncreads them, so a photo stored turned answers them the other way round from before; the jobmedia.dimensions.backfillcorrects the JPEG, WebP and AVIF images stored before, whose type the processor reads, once per database, without changing their version or raising an event (#3309). To run the check again, delete the row with id 2 ofcms_media_signing_key(DELETE FROM cms_media_signing_key WHERE id = 2) and start an instance. An image uploaded by an instance of an earlier version during a rolling upgrade can keep the size of its header after the check is done; running the check again corrects it. -
An SVG uploaded, replaced or imported with
Svgset tosanitizekeeps only the SVG elements and attributes of drawing the plugin lists, and loses every link andurl()that is not to a#fragmentof the file, embeddeddata:images included (#3309). A value read as CSS that holds anything removed goes whole, so oneurl(data:…)or an@font-facewhosesrcis aurl(…)removes the whole<style>element orstyleattribute; a<style>element now goes whatever it holds (#3484). SVGs stored before are not sanitised again, by this or by the other changes of SVG below: they are safe where the CMS serves them with itsContent-Security-Policy, not where a page inlines them or a CDN drops the header, so serve them through the CMS. An import line without a file that names the storage key of such an older SVG is refused withFCMS3220(TransferFileMissing), since sanitising it now changes its checksum; a file of the package is sanitised and taken (#3484). -
An index that fills the
ISearchIndexslot matches only the fields marked searchable that are not hidden, whatever rows it holds, andSearchRequest.Fieldsset tonullmeans a caller who may read every searchable field, not every field or every row. An index other than the search plugin's that matches a hidden field, a field that is not searchable or a field it kept from before, and answered it to a caller who may read every searchable field, must stop, whether itsMatchesByFieldistrueor not (#3376). -
An import of settings no longer writes a secret that a package names, so each secret keeps what the site has, and an area whose class requires a secret, by
[JsonRequired]or[Required], is refused withFCMS2805on the key unless the site's own row holds a value for it (#3379). -
GET /invitationsleaves out an invitation that accepting would refuse for its sender, such as one whose user lostusers.manageor a grant of its roles, or whose key expired after it was sent, and leaves the row as it is (#3391). -
Scheduled publish and unpublish (
content.schedule.publish,content.schedule.unpublish) and the account mail jobs (members.send_mail,users.send_password_reset) have an attempt timeout of five minutes, whateverFluentCms:Jobs:AttemptTimeoutsays (#3408). Past it the job's token is cancelled and the attempt fails withFCMS2508and is retried, and a job that ignores its token is abandoned 30 seconds later and its worker freed. A host'sIEmailSenderthat takes longer than that to send is cut off the same way. -
The prune of failed outbox rows and the purge of a handler's dead letters seek the rows they remove, on two new indexes of
cms_outboxfiltered tostatus = 'failed':ix_cms_outbox_failed_available_aton(available_at, attempts)andix_cms_outbox_failed_handleronhandler(#3411). -
The indexes added to the baseline since
1.0.0-preview.1went into theInitialof their stream, since a preview upgrades no database:ix_cms_job_status_completed,ix_cms_outbox_failedandix_cms_outbox_handler_pending(#3285), the two above (#3411) and, with the webhooks plugin,ix_cms_webhooks_delivery_queued(#3268). A database made by1.0.0-preview.1lacks them. Unless it is refused withFCMS1308for a column, as one with the media, search or AI assist plugin is, it still starts, and a start orfluentcms migratelogs a warning, event id 9306, that names them, since the startup check refuses a missing table, column or unique index of the model and only names any other missing index; its prune and purge then read every failed row. Recreate it to have them (#3407). -
fluentcms settings reprotectends withFCMS3308and exit code 1 when a stored settings document holds a protected value under a key its class does not read as a secret, such as one the class no longer has, that is not under the default key of the key ring; it is named by area, scope and key, never by value, and left as it is. Such a value was skipped without a word and the command ended with 0 (#3436). -
fluentcms settings reprotectnames every row of an area no settings class of the host registers, and leaves every value of it unchanged, since it cannot tell which of its values are secrets or whether the plugin that owns the area is only not loaded in that run. Such a row ends the command withFCMS3308only when a protected value of it is not under the default key; before, every such row with a protected value did, and one without was not named (#3436). -
IMcpClients.ListConsentsAsyncandIMcpClients.EndConsentAsyncare new members with no default, which an implementation other than core's must add (#3441). -
The record
McpClientInfoof the MCP plugin, the answer of/mcp/clients, has two more positional parameters,UsedAtandUsedBy, afterLastActivityAt, so code that constructs or deconstructs it changes with it (#3441). -
A configured client whose redirect URI or post-logout redirect URI changed only in the case of its host is written as configured at the next start, since the authorize and logout endpoints compare a URI with the stored one as strings. From that start on, a client that still sends the old spelling of the host is refused, and one that sends the URI as configured is accepted; the stored URI kept the old spelling, so it was the other way round. Its users' consents stay, since the URI names the same place (#3442).
-
A grant with a row rule gives content permissions alone. A grant of
*,users.manage,roles.manage, asettings.{area}.manageor a plugin's permission with arowRuleheld that permission in full and now holds it nowhere, and gives a plugin'sResourcesOfno resource; the content a*with a rule reaches stays under the rule. A user, a key or a member who held such a permission only through such a grant loses it, which can takeroles.manageorusers.managefrom an administrator; Super Admin, whose*has no constraints, keeps everything. The role of an MCP client that registered itself limits every call through the client, so a client role whose*or other permission outside content has a row rule now leaves calls through that client no core, settings or plugin permission, whatever the user's own roles hold. To find the grants, readGET /api/management/v1/rolesas a Super Admin, which lists the roles of every site, and look for a grant withconstraints.rowRulewhosepermissiondoes not start withcontent.. Give the permission without the rule to keep what it gave, orcontent.*.*with the rule for what*with it meant (#3443). -
POST /roles,PUT /roles/{id}and the import of roles refuse a row rule with 422FCMS3042ongrants[n].constraints.rowRulebeside a permission that is not of content alone (*,*.*.update, a core, settings or plugin permission), and on a content type the rule is not registered for, which for a pattern of every type, such ascontent.*.update, is any content type of the schema; such a role was saved, and the rule then matched no row of that type. A role stored with such a grant is still read and exported, and an import of a role identical to the stored one is skipped, but an edit, or an import that would change the role, is refused until the grant or its rule is dropped. An import validates a role before it checksroles.manage, as it does for an unknown rule, so a caller withtransfer.managealone sees the refusal and the types it names in the report, in a dry run too (#3443). -
A grant of every type with a rule registered type by type, such as
content.*.readwith a rule of its own for each type, stops fitting when a content type is added to the schema and the rule is not registered for it: the grant gives no row of the new type, and everyPUT /roles/{id}of its role, a rename or a change ofrequireTwoFactortoo, is refused withFCMS3042naming the new type. Register the rule for the new type as well, or drop the grant, or replace it with one grant per type the rule has (#3443). -
A signed-in user's wrong current passwords at
/account/change-passwordand wrong two-factor codes at/account/enable-two-factorand/me/two-factorare counted, each kind apart, with the limit and time ofFluentCms:Users:Lockout, as the user tokensSignedInFailuresandSignedInCodeFailuresofcms_user_token, and each also counts towards the lockout. Either count at its limit keeps the user's sessions out of both until its time ends. The lockout itself no longer holds them, so a user locked out by wrong passwords at the login page still makes a forced change and sets up two-factor. A right password starts its own count and the lockout's again; a right code starts only the count of codes, and no longer the lockout's. Before, a wrong current password counted nothing, and a code counted towards the lockout alone and was refused while the account was locked out (#3371, #3447). -
A password change checks the new password against the policy before the current one, so a new password the policy refuses gets the policy's answer whatever the current password given, and counts nothing. It answered a wrong current password first, and the policy only for a right one, which told the sender the guess was right (#3447).
-
IDataProvider.IsUniqueViolation(Exception, IUniqueConstraint)is a new member, with a default offalse, that tells one key of the model from the others: PostgreSQL by the constraint its error names; SQL Server by the key's name in single or double quotes in the message of 2601 or 2627, looked for only before the message's first parenthesis, since the duplicate value ends the message in parentheses; and SQLite by the key's columns, which end its message. The part of a message that repeats the duplicate value is never read. A message of SQL Server in another language is read the same way, as long as it quotes the name in one of those two quotes; one that quotes it otherwise has a save of a user that meets another's on the key ofcms_user_tokenthrown instead of refused, as has a provider other than the three of FluentCMS. Core found that key by the name of the table anywhere in the message, which SQL Server's duplicate value could hold too (#3447). -
The cleanup job
mcp.client-cleanupruns hourly, and also removes the clients theopenpolicy approved that no user consented to withinneverUsedClientHours(24) or that have no token or authorization left afterunusedClientDays(30), two new keys of the settings areamcp, logged with event 9286. At1.0.0-preview.1it ran daily and removed only the clients that were never approved (#3301). -
The cleanup job
mcp.client-cleanupskips a client whose delete crossed a consent or a token that arrived meanwhile, a refusal of a foreign key or what the provider calls a deadlock (IDataProvider.IsDeadlock), and logs it with event 9009. It takes its clients in the order of their ids, and a client whose delete fails otherwise is logged with its id (event 9013,OidcClientDeleteFailed) and passed over, so that one client that cannot be deleted does not keep the run from the others; the run then fails with that failure, several in anAggregateException, and the job runner tries again. Before, the first delete that failed ended the run (#3448). -
IDataProvider.IsForeignKeyViolationis a new member, with a default offalse, so that a provider other than the three of FluentCMS has every failure of those deletes thrown. SQLite tells a foreign key by its extended code 787 and PostgreSQL by23503. SQL Server answers 547 for a check constraint too, so a foreign key is told by 547 with the constraint the message quotes namedFK_, as EF names every foreign key of the model, or with the wordsREFERENCEorFOREIGN KEYin the message; a refusal whose message has neither, as a server may word it, is thrown, and the client is tried again at the next run or call (#3448). -
POST /api/management/v1/ai/actions/altTextruns only where the site's AI settings turn onassetAltText, a new setting that is off by default and in the instance defaults, since everyaltTextsends to the provider an image of the media library that no field opted in. This holds for an asset alone, withoptions.mediaIdand notypeandfield, and also for the alt text of an opted-in text field with an image, which is refused too until the site turns the switch on: an opted-in field opts in its text, not the images the caller may read. A site that used either turns it on in/settings/ai, or the instance defaults do for every site that follows them; a site whose settings were saved before reads it off. Off, the call is refused withFCMS1683(403), as a field that is not opted in, before the image or anything of the asset is read, andGET /api/management/v1/ai/fieldsanswersassets: false. The text actions are not affected (#3449). -
IActivityLog.ActorNameis a new member with no default, which an implementation other than core's must add (#3449). -
A content list with
qthat falls back, or that readslocale=all, asks the search index once, in the locale it searches, and reads the other locales of the entries found by their ids. Their fields now fall back to a locale whose text does not hold the words, and alocale=alllist holds every locale of each entry that the caller may read in it, where both left out what did not match. The entries listed, their order,total,nextCursorandsearchTruncatedare unchanged, and the Delivery and Management APIs, GraphQL, MCP andIContentServiceanswer alike. Before, the index was asked again in each other locale and each batch of ids, and each of those answers was cut atMaxSearchResultswithoutsearchTruncatedsaying so. With an index whoseMatchesByFieldisfalse, which the search plugin's is not, alocale=alllist withqfor a caller who may read every searchable field in the locale searched but not in another locale answers, where the search in that other locale refused the whole list withFCMS2211(#3469). -
An import line without a file whose storage key is in the folder of an asset of the instance is refused with
FCMS3220(TransferFileMissing), in a dry run too, when that asset is deleted or no longer has that key as its file or a variant's, since the daily cleanup deletes such a file once nothing else names it. Such a line is also refused when that asset changes between the check of the file and the save of the line, as when it is deleted and purged meanwhile; import the package again, or export it withmediaFiles=true(#3472). -
An import line for an asset itself, without a file, that names a key in the asset's own folder which the asset no longer names, such as the file a replace left to a holder, is refused with
FCMS3220, as a line whose file is not there (#3472). -
An SVG uploaded, replaced or imported from a package file with
Svgset tosanitizeloses every<style>element, whatever it holds, since a page that inlines the SVG would apply its rules to the whole page;styleattributes stay, except on the root<svg>. A drawing whose colours were in a<style>, as many editors export them, loses them (#3484). -
Every
idof such an SVG, and every reference to one inhref,xlink:href,url(#…),aria-labelledby,aria-describedbyand thebeginandendof an animation, takes the prefixfcms_, sixteen hex digits of the SHA-256 of the sanitised file as written before the prefix, and an underscore, so that an inlined SVG puts no name onwindow, clashes with no id of the page or of another SVG and reaches no element of the page. The underscores keepbegin="fcms_…_a.end"an id and an event, where a hyphen would be read as an offset. A reference to no id of the file takes it too. A prefix of that form that the file carries already is kept only when taking it off and scoping the file again gives the same bytes, as for a file the plugin sanitised before; otherwise every name takes the file's own on top. A page or script that found an element of the SVG by its id finds it under the new one (#3484). -
The root
<svg>of such an SVG loses itsoverflow,style,transformandfilter, and an animation of the root that sets one of them or the root'swidth,height,x,y,viewBoxorpreserveAspectRatio, or ananimateTransformoranimateMotionof the root, goes; an animation whosehreforxlink:hrefnames the root counts as one of the root. Astyleor other value read as CSS that holdselement(or-moz-element(goes, as does an animation whoseattributeNameisclassorid, and abeginorendlist with a value the timing grammar does not read whole, such as one with a backslash, a no-break space or a parenthesis in an id, or withaccessKey(…)orwallclock(…); an animation whosebeginwent starts when the drawing loads (#3484). -
A
classname on an inlined drawing picks up whatever the page's CSS gives that class, which with utility CSS includes position; the page's box for the drawing is what holds it (#3484). -
These remove the ways out of its box that are known; they do not promise there is no other. What keeps an inlined drawing inside its place is the page's own box for it, with
overflow: hiddenandcontain: paint(#3484). -
An SVG that nests elements more than 128 levels deep, the root included, or holds more than 100,000 nodes (elements, text, CDATA sections, comments and processing instructions), or has an element with more than 1,000 attributes, namespace declarations included, is refused as a file that is no SVG (
FCMS1581), whateverSvgsays. Those limits bound the time sanitising takes: each pass sets an element's children and attributes again once, where a file of about 1 MB of many removed elements took tens of seconds before (#3484). -
An export holds the database snapshot it reads its entries from for at most
FluentCms:Transfer:ExportSnapshotTimeout(1 hour, at most 1 day, a new option), counted from the start of the snapshot, not from when a reader stalls: an export whose entries take longer to go out, however steadily its package is read, is stopped. The client sees the connection reset after the 200, with nothing that names the option:fluentcms export --urlfails withFCMS3252and writes no file, as it now also does when the handler reports the reset as a plainIOExceptionof the transport, which it printed as it was;fluentcms exportrun in the host fails with a cancellation that names the option. The server logs warning 9190, which names the option, and writes notransfer.exportedactivity row. Raise the option for such exports, asFluentCms__Transfer__ExportSnapshotTimeout=02:00:00. Where the database gives no snapshot, as on a default SQL Server database, the bound does not apply (#3485). -
An export that stops before its package is whole, at the bound or for any other reason, writes nothing more, the central directory of the zip included, so its bytes are never a smaller package that opens: the import refuses them with
FCMS3200. Such an export completed the zip with the files written so far (#3485). -
DELETE /api/management/v1/sites/{id}/locales/{code}refuses a locale that another locale of the site names in its fallbacks, enabled or not, withFCMS3143(409) and one error for each such locale atlocales.{code}.fallbacks; it was removed and left in those chains, so a later change of one of them was refused withFCMS2312. Take the locale out of those fallbacks first. A locale whose fallbacks are the implicit chain names none, and a removal changes no chain (#3517). -
A request with an
Idempotency-KeywhoseFluentCms:Idempotency:Windowends while it still runs keeps its key: a repeat answers 409 (FCMS3142) until it answers, and the retention job leaves the key, instead of removing it and letting the repeat claim it afresh and run beside the request. Once the request has answered, the expired key is claimed afresh and a repeat runs again, as before, which the 409's message now says (#3523). -
While a publish, a discard, an unpublish, a scheduled publish or unpublish, or an import of an entry runs, its hooks included, a write to any locale of that entry waits for it to commit: these hold every locale row of the entry. A write of another locale did not wait for a publish before. A write that waits longer than
FluentCms:Content:LockTimeoutgives up withFCMS2411(503), as the item of #3573 below says (#3524). -
A discard whose locale was published, unpublished or given another status by another request between the discard's read and its holds answers 412 (
FCMS3105) with the version it read; it went on with what it had read (#3524). -
A publish whose entry another request put in the trash while it ran answers 404 (
FCMS3104), as a publish of an entry in the trash does. It answered 412 (#3524). -
A host that sets
EventsorEventsTypeon theOpenIdConnectOptionsof anOidcprovider ofFluentCms:Members:Providers(member-{name}) keeps FluentCMS's events of that provider: the login's key from the token'ssub, the way back to the member login page after a failure, the provider's name in the ticket, the callback on the public origin, and the remote sign-out and signed-out callback paths left unserved (404). FluentCMS's run first, then the host's, and anEventsTypeis resolved once a request as the handler would. Before, a host's events replaced them, so the handler answered the remote sign-out path itself (#3526). -
A host that replaces
Eventsor setsEventsTypeon such a provider in aPostConfigureregistered afterAddFluentCmsdoes not start, withFCMS3180naming the provider. Set the events inservices.Configure<OpenIdConnectOptions>("member-{name}", ...), wherever it is registered, or register thePostConfigurebeforeAddFluentCms; a library that post-configures the options of every scheme is called beforeAddFluentCms. A delegate ofoptions.Eventsset in a laterPostConfigureruns after FluentCMS's part of that event (#3526). -
On SQL Server and PostgreSQL a start with
MigrateOnStartupand afluentcms migratetake the migrations lock before they check the database against the baselines, so one that arrives during another process's migration waits and then goes on, where it failed at the command timeout. One with nothing pending waits too, for up to 15 minutes. On SQL Server this takes the lock on every such start and needs a connection pool that allows two connections (#3528). -
A wait for the lock that times out before the checks ends in
so this run migrated no stream, where the error named the first stream as not migrated (#3528). -
The runner calls
IDataProvider.LockMigrationsAsyncbefore its checks, andTakeMigrationsLockAsyncon the system stream's context around them and on each stream's before it reads what is pending, so also for a stream with nothing to apply. A provider of your own that implements either must not keep the lock on a pooled connection when the call or the disposal fails (#3528). -
The jobs of the first-party plugins that had no attempt timeout have one, whatever
FluentCms:Jobs:AttemptTimeoutsays:mcp.client-cleanupandwebhooks.deliver10 minutes andmedia.variants.cleanupan hour; the new jobswebhooks.queueandmedia.dimensions.backfillcome with 5 and 30 minutes (#3529). Past it the job's token is cancelled and the attempt fails withFCMS2508and is retried, and a job that ignores its token is abandoned 30 seconds later and its worker freed.webhooks.deliverhas the time of the longest send timeout the options allow, five minutes, and more, so no send is cut off. -
media.variants.cleanupis resumable: a run stopped at its limit has succeeded, and the next day's run goes on with the variants and assets that are left, where a long backlog would have been failed and retried (#3529). -
A host that replaces
Eventsor setsEventsTypeon theOpenIdConnectOptionsof a provider ofFluentCms:Ssoin aPostConfigureregistered afterAddFluentCmsdoes not start, withFCMS3070naming the provider, since it would drop the check of the provider's remote sign-out. Set the events inservices.Configure<OpenIdConnectOptions>("{name}", ...), wherever it is registered, or register thePostConfigurebeforeAddFluentCms; a library that post-configures the options of every scheme is called beforeAddFluentCms. A delegate a host sets onoptions.Eventsthere, asOnRemoteSignOut,OnTokenValidatedorOnRedirectToIdentityProvider, now runs after FluentCMS's part of the event instead of replacing it, so the callback on the public origin is kept too (#3531). -
A plugin's model in which a table, view, column, key, foreign key, index or check constraint would have a name of more than 63 bytes in UTF-8 on PostgreSQL stops the host in
AddFluentCmswithFCMS1529, on every provider, naming the plugin, the name and its length. PostgreSQL keeps the first 63 bytes of a name and drops the rest without a word, so the check behindFCMS1308and event 9306, which finds the tables, columns and indexes of the model by name, would not find it and would warn or refuse at every start of a healthy database (#3533). -
That holds for a name the model gives and for one EF derives, such as
IX_...for an index given none,PK_...orFK_..., as EF derives it on PostgreSQL: EF cuts a derived name to 63 characters, which is 63 bytes only in ASCII, so a derived name built from a table or column name with other characters can be refused although each name the model gives fits. A column named for one table alone, with entity splitting, TPT or TPC, is measured on that table. Names of what only EF's conventions find, such as a property that no call of the model configures, are not measured (#3533). -
A publish that another request's write of the same draft overtook, a shared field changed in another locale included, answers 412 (
FCMS3105) with the stored version and entry, also when that write committed while the publish ran; it could answer 409FCMS2405(A hook changed the draft being published.) with no hook involved.FCMS2405is still the answer when a hook of the publish changed the draft (#3536). -
A publish whose hook saved the draft being published with the values it already had answers 409
FCMS2405(A hook changed the draft being published.), also when the hook then changed the entry it publishes. It answered 412 (FCMS3105) with a version that rolled back with the publish, so a retry with that version answered 412 again (#3546). -
POST /api/management/v1/api-keys/{id}/rotatechecksapikeys.managein the site of the request, and then the reach of the key, before the overlap it asks for, asPOST /api-keyschecks the permission before the ids it names. For anyoverlapSecondsthat binds, a caller without the permission gets 403, and one who has it 404 (FCMS3015) for a key that does not exist or is out of its reach; a value that does not bind is still refused withFCMS2108(422) first, as on every route. With an overlap longer thanFluentCms:ApiKeys:RotationOverlap, both answered 422 (FCMS3026), which named the configured seconds (#3570). -
A write that waits longer than
FluentCms:Content:LockTimeout(10 seconds, at most a day, a new option) for what another write holds, the rows of its entry or on SQLite the database, gives up and answers 503 with the new codeFCMS2411(Entry busy) andRetry-After: 1, with nothing of it stored. It waited until its command timeout (30 seconds by default) and answered 500FCMS3199. A bulk reports such an item withFCMS2411, an import reports the item, a scheduled publish or unpublish is tried again, and GraphQL and MCP describe it asFCMS2411with status 503. A deadlock victim is run again as before (#3573). -
IDataProvider.BeginWriteAsyncandIDataProvider.IsLockTimeoutare new members with defaults: a provider other than the three of FluentCMS sets no lock timeout and its writes wait until their command timeout, as before (#3573). -
An upload, a new media folder or preset, a line of the media import that adds a folder or an asset, a new webhook, new MCP guidelines, instructions or stored prompt, a new host name of a site and a search write that adds entries of a site now hold the row of their site in
cms_siteuntil they commit, as a content write that adds an entry does, so a deletion of the site waits for them and their rows go with the site's cleanup. One for a site that is gone is refused withFCMS2301(422,ValidationException), also on an instance whose cache still has the site; it was saved and stayed as a row of a site that no longer exists. An upload or an import line refused so deletes the file it wrote, and an import reports the line withFCMS2301; a search delivery refused so is tried again by the outbox. Each such write runs in a transaction of its own: up to one begin, one statement and one commit more. AI usage rows and webhook deliveries hold nothing and are left to their retention jobs, which remove the rows of a site that is gone with the others (#3586). -
The default
IDataProvider.LockSiteAsyncreadscms_siteby its name for a context whose model has noSite, such as a plugin's, and a third-party data provider whose ownLockSiteAsyncreadscontext.Set<Site>()must do the same (#3586). -
GET /me/sitesandIPermissionChecker.HoldsGrantInAsynccount a grant only when it gives its holder a permission in the site: a content permission, under its row rule if it has one, a permission outside content with no row rule, or, for a grant limited to resources, a permission outside content with no row rule and at least one resource, whichResourcesAsyncgives a plugin that asks. A grant stored with a row rule beside a permission outside content, a grant of content alone limited to resources and a stored grant with an empty resource list no longer make a site count, so a caller whose only grants in a site are such grants no longer sees the site inGET /me/sites, and the MCP plugin no longer serves it the site's guidelines, the instructions of its types or its stored prompts. Such grants gave no permission in the site before either. The signature ofHoldsGrantInAsyncis unchanged (#3595). -
POST /api/members/v1/me/change-passwordchecks the new password against the policy before the current one, so a new password the policy refuses gets the policy's answer (FCMS3165) whatever the current password given, and counts nothing. It answered a wrong current password, counted, first, and the policy only for a right one, which told the sender the guess was right (#3597).
Additions
FluentCms:RichText:LinkSchemeslists the schemes a rich text URL may have, in place ofhttp,https,mailtoandtel.javascript,data,vbscript,blob,fileorabout, or a value that is not a scheme, stops the host withFCMS1101(#3269).- The consent page names the host of every redirect URI the client registered, in ASCII form with its port, the requested one first, and warns that an MCP client's name is not verified (#3272).
- The media plugin decodes at most
FluentCms:Media:MaxConcurrentDecodesimages at once on an instance (4, from 1 to 256, a new option), for variants, thumbnails and copies such as alt text's, and requests beyond it wait. Requests at once for one new variant decode it once, and an image is decoded at a smaller scale when the result is under half its size (#3281). - A request with
X-Forwarded-FororX-Forwarded-Protofrom an address the host does not trust as a proxy logs warning 9133 once per address, for the first four addresses, and the startup report lineforwarded-headers-untrustednames them (#3286). - The settings area
aihasdailyTokenBudget, the prompt and completion tokens a site may use a day from midnight UTC; 0, the default, sets none.FluentCms:Ai:DailyTokenBudget(0, a new option) is the operator's ceiling for the calls a site makes with the operator's credential, which a site's budget may lower but not raise;FluentCms:Ai:SiteBilledEndpoints(empty) names the allowed endpoints where a key the site sets is the site's own account and is not held by it. A call is refused withFCMS1693(429) once the site's usage since midnight UTC and the estimates of its calls in flight reach the budget, and event 9369 is logged once a day per site.AiClient.SiteCredential, a newinitproperty, says that a host factory's credential is the site's (#3300). maxClients(1000), a new key of the settings areamcp, andMcpClientRegistrationPolicy.MaxClientscap the MCP clients of the instance: a client's own registration over the cap answers 503temporarily_unavailablewithRetry-Afterand logs event 9006, and an administrator's registration is not refused (#3301).- A media field takes
accept, the asset types it holds, each a MIME type such asimage/pngor a family such asimage/*, matched without regard to case or parameters:[Media(Accept = ["image/*"])](MediaAttribute.Accept,FieldSettings.Accept) or"accept"in a schema file; none means every type. An item that is neither is refused withFCMS1596, and the analyzers report it withFCMS0017. A save or a publish whose field holds an asset of another type is refused withFCMS1597(422). Thetypefilter ofGET /api/management/v1/mediaignores case (#3331). FieldSettingDescriptor.ValidateandFieldSettingDescriptor.ErrorCodelet a field type check the value of one of its settings; schema validation reports whatValidatereturns withErrorCode, orFCMS1211when it is not set (#3331).GET /api/management/v1/media/{id}answers the asset's version as itsETag, andPATCH /media/{id},POST /media/{id}/moveandPOST /media/{id}/replaceanswer the new one. Those three andDELETE /media/{id}take it back as an optionalIf-Match: a version that is no longer stored is refused withFCMS3105(412) and changes nothing, and a list of tags or a value that is not a whole number isFCMS3131(400). WithoutIf-Match, or with*, a write applies to whatever version is stored, as before. A plugin's route does the same withEntityVersions.IfMatchandEntityVersions.SetETag, and describes it in the OpenAPI document withTakesIfMatch()andGivesETag(), new public members ofFluentCMS.Plugins.Abstractions(#3333).@fluentcms/clienttakes asignalin the last options argument of every call (RequestOptions, whichWriteOptionsextends) and atimeoutMsinClientOptions, which abort the request and the read of its answer (#3310).FluentCmsProblem.retryAfter(seconds) andFluentCmsProblemException.RetryAfter(TimeSpan?) hold the server'sRetry-After(#3310). In a browser a date-formRetry-Aftercannot be read from another origin, sinceDateis not an exposed header; the API sends seconds.- A user's and a member's access tokens carry
auth_time, which a refresh keeps (#3372). For a token of the code flow it is the time of the sign-in on the hosted pages, of either pool; for a member's direct login (grant_type=member_password) it is the time of the grant. - A save that gives an admin user a name or an address takes the
IDistributedLocknamedfluentcms:user-names, a name a host's own lock has not seen before (#3373). IMediaService.RequireUpdateAsync(id)checks that the caller may change an asset's metadata, asUpdateAsyncchecks it, and writes nothing; its default refuses withNotSupportedException, so an implementation other than the media plugin's builds as before (#3418).POST /api/management/v1/ai/actions/altTextruns for an asset alone, withoptions.mediaIdand notypeandfield, where the site's AI settings turn onassetAltText(above), for a caller who may update the asset asPATCH /media/{id}checks it; it only suggests and never writes the asset (#3418).GET /api/management/v1/ai/fieldsanswersassets, whether the caller may ask for the alt text of an asset alone (#3418).GET /api/management/v1/ai/usageanswersprincipalNameon each row, the name the principal had at the call, for a caller who holdsai.usage.readalone (#3418).GET /api/management/v1/ai/usageanswerstotals.groups, the calls and tokens of the filter for each principal, by kind and id, and action: at most 100 groups, those that used the most tokens, ordered by kind, id and action, withtotals.groupsTruncatedtrue when the filter matched more. The three totals count every row. To read every group, narrow the filter byprincipalId,action,fromortountilgroupsTruncatedis false (#3418, #3449).GET /api/management/v1/permissions/row-ruleslists the registered row rules that a grant'srowRulemay name, each with the content types it is registered for (typeNames, null for every type), for the callers who may readGET /permissions(#3417).POST /api/management/v1/mcp/clients/removewith{ "registeredFrom", "registeredBefore" }removes the MCP clients theopenpolicy approved that registered in that span, 100 in a call, withmcp.managefor the instance, and answers{ "removed", "more" }. A call that names neither time, a time without an offset or an empty span is refused with the new codeFCMS1610, and a client whose delete crossed a consent or a token that arrived meanwhile, a refusal of a foreign key or what the provider calls a deadlock (IDataProvider.IsDeadlock), is skipped and logged with event 9009. Any other failure of a delete, such as a write of the outbox the database refuses or a serialization failure of PostgreSQL (40001), ends the call with a 500, and the clients removed before it stay removed, each with its activity row (#3397, #3448).PUT /api/management/v1/mcp/clients/{id}/rolewith the role a client has records the caller asapprovedByon a client theopenpolicy approved, so that the cleanup and the bulk removal keep it (#3399).IDataProvider.TakeMigrationsLockAsynctakes EF's migrations lock before EF does, on the connection of the stream's context, for a provider whose lock EF waits for no longer than a command may run; its default takes nothing, so a provider other than core's builds without it. One that implementsLockMigrationsAsyncdoes behave differently: its wait is logged after 30 seconds and cancelled after 15 minutes, as on PostgreSQL (#3192).- Every end of a session writes an activity row,
user.sessions_endedfor an admin user andmember.sessions_endedfor a member, with the reason and the actor: a sign-out, a session ended by its owner or an administrator, a password change or reset, a deactivation, a removed login, another change of the user's security stamp, a deleted member, another sign-in over the same browser, a sign-in with the second factor and a provider's remote sign-out. A row names a session ended by its id and never carries a token. The SDK has the new eventsUserSessionsEndedEventandMemberSessionsEndedEventand the names of their reasons,SessionEndReasons(#3207). ValidationContext.Fieldslists the fields a validation run validates, at any depth, asValidatedFieldrecords of the field, its path and its value, so that a validator reads once for all of them; it is empty for a context made with the constructor (#3349).- A content list whose search returned the most matches the search index gives (
FluentCms:Query:MaxSearchResults, 1,000) holds"searchTruncated": trueon the Delivery and Management APIs and in the MCP list tools, a read of the trash never does, a GraphQL list has the fieldsearchTruncated, andPagedResult.SearchTruncatedis a new member of the SDK; an index other than the search plugin's needs no change, and one that stops short of the limit on its own is not reported as cut (#3302). POST /api/management/v1/transfer/importtakesauthors=keep|importer, andfluentcms importtakes--authors keep|importer:importerrecords the caller as the creator of the entries the import creates and as the updater of what it writes, wherekeep, the default, keeps the authors of the package (#3305).- An export reads the entries of every type from one snapshot, so a save during it changes nothing in the package: a
REPEATABLE READtransaction on PostgreSQL, a deferred transaction in WAL mode on SQLite, andSNAPSHOTisolation on SQL Server. No migration allowsSNAPSHOTisolation, so a default SQL Server database exports without a snapshot, as before, and logs event 9189; an administrator turns it on withALTER DATABASE CURRENT SET ALLOW_SNAPSHOT_ISOLATION ON, which needsALTERon the database but not the database to itself. An export reads a batch of 100 entries in four queries (#3305). - The lease of an
Idempotency-Keyis renewed every third ofInProgressTimeoutwhile its request runs, so a request that runs longer is not taken over; a renewal that fails is logged with event 9144 and tried again (#3307). - The media plugin logs a run of
media.dimensions.backfillwith event 9275, an image whose file it cannot read with 9276, and a start that cannot start the check with 9277 (#3309). fluentcms settings reprotectprotects every stored secret setting again under the current default key of the Data Protection key ring, to run before a ring key or certificate is retired; a row it cannot unprotect is left as it is and named by area and scope, and the command ends withFCMS3308(#3364).- The counter
fluentcms.rate_limit.refusedcounts the requests that the seven rate limits refuse with a 429, byfluentcms.policy:pre-auth,auth,health,static-files,delivery,managementorcaller. The limit of client registrations per hour answers 429 too and is not counted. Before, a refusal showed only as a 4xx influentcms.requests(#3385). - The startup report lines
https-redirection-off,allowed-hosts-any,member-direct-login,member-apple-loggingandmember-mail-limit-per-instance, and the plugin entriesmcp-open-client-registration,media-local-storage,media-unsigned-urlsandwebhooks-private-networks, apply in every environment but Development, as the startup refusals do since #3298, so a Staging or custom-named environment that is reached from outside gets them too. They were listed in Production only (#3392). - The
--probeof the reference host reads an http endpoint underKestrel:Endpoints(Kestrel__Endpoints__Http__Url) beforeurlsandhttp_ports, as Kestrel does, so the image'sHEALTHCHECKasks that endpoint's port.docs/docker.mdsays that command-line arguments of the main process, such as--urls, do not reach the probe (#3393). IPluginServiceBuilder.AddJob<TJob, TPayload>(type, attemptTimeout, resumable)registers a plugin's job as resumable: one that stops on its token at its attempt timeout has succeeded and leaves what is left for its next run, so a long backlog is never dead-lettered for its size. Its default hands a job that is not resumable to the overload withoutresumableand refuses a resumable one withNotSupportedException, so a builder other than core's builds as before. The retention jobs of the AI Assist and Webhooks plugins are registered so (#3408).- Before
jobs.retentionremoves a dead-lettered job, a pending schedule that still names it, as after a crash before the schedule heard of the job, is failed with the error that its job was dead-lettered and removed, and its entry no longer shows the scheduled time (#3407). - The outbox drain gives the rows of a batch back with one write, for a stopping host, a failed renewal, hand-offs that never started and handlers that are missing or whose plugin is disabled, where it wrote once for each row (#3410). The writes of a stopping host share
JobRunnerOptions.ReleaseTimeout(5 seconds) in all, with the delivered rows of each lane settled first: the writes before the release have half of it at most, and the release, one write for every row the batch gives back (#3548), what is left; a stop during the read of which plugins are disabled ends a batch the same way (#3521). The rows of a write that does not fit keep their lease and the attempt of their claim, and are delivered when the lease ends, one per claim by another instance and again for those already delivered, which is at-least-once. The sweep fails instead a row that was on its last attempt, one whose own write did not fit or, when its release could not be written, one no handler saw: it is in the dead-letter list and can be retried. When which plugins are disabled cannot be read, the batch goes back after one read, and its lane waits for the next signal. Rows that a claim of a running instance gave up without a write are claimed again by that instance with the rest of their batch, and the drain leaves out at mostBatchSizedeferred rows, the latest. GET /api/management/v1/schemaandGET /schema/types/{type}answerpreviewableon each type, andSchemaTypeDescription.Previewableholds it: true when the site has a template of the settings areapreviewfor the type that fits it as the caller sees it, and the caller may mint a preview token of it, with themanagementscope and a draft read. A template that reads a field the caller may not read counts as none, and so does one the schema no longer fits; a component, a block and a description outside an operation are never previewable, and a caller without themanagementscope, such as an MCP client's token on the plugin's schema resources, reads false for every type. A client learns whether a type has a preview page without minting a token (#3432).- The reference host and its image read the Data Protection key ring with previous certificates as well, from
FluentCms:DataProtection:PreviousCertificates(0:Pathand0:Password, and so on), which only unprotect the keys they protected and never protect a new one, so the key ring certificate can be replaced without losing the older keys. An entry that cannot be read or holds no RSA private key, one with a password and noPath, and previous certificates without a current one stop the host withFCMS3155; an entry whose members are all empty is absent. Outside Development the startup report listsdata-protection-previous-certificateswith their thumbprints.docs/host-configuration.mdanddocs/docker.mdgive the steps of a replacement and what to do instead when the old certificate's private key may have leaked (#3435). fluentcms settings reprotectnames the id of the default key of the key ring it protected under, so that the operator checks it is the key to keep before retiring another. Thesettings-secrets-unprotectedline of the startup report names the command, anddocs/host-configuration.mdsays when to run it while instances may still protect under an older key (#3436).GET /api/management/v1/mcp/consentslists the MCP clients theopenpolicy approved that count toward the caller'smaxConsentsPerUser, each withid,clientId,name,redirectUris,registeredAt,consentedAtandactive, a consent ended by its session or a password change included, andDELETE /api/management/v1/mcp/consents/{id}ends the caller's consent to one of them and frees its place. It revokes the caller's valid consents to the client with their tokens, and commits that, before it deletes them, so its access tokens stop at once and a client that refreshes meanwhile gets no token that works, and the client no longer names the caller asusedBy; one that then holds no grant of anyone goes as a client never used, afterneverUsedClientHours. Both need no permission and are the caller's own: a client that counts for another user, or for none, isFCMS1603, answered before any lock is taken, and a caller that is no user has none. An end that crosses another change, a token issued under the consent meanwhile included, isFCMS1609(409) and frees no place, but the consent stays revoked with its tokens, and the same call again frees the place. The end of a valid consent is the activity rowuser.sessions_endedwith the reasonrevoked(#3441, #3594).- The consents that take a place, the end of one and the cleanup's write of a client's first user run one at a time under the database lock
fluentcms:mcp-consents, each counting what the others committed, so consents given at the same moment never passmaxConsentsPerUser, and a user whose consent ends while the cleanup writesusedByis not named again (#3441). - When that lock is not free within 45 seconds, the consent page ends on the hosted error page with
temporarily_unavailableand records nothing, andDELETE /mcp/consents/{id}answers 503 withFCMS3106and ends nothing (#3441). GET /api/management/v1/mcp/clientsanswersusedAtandusedByof each client, the time and the user of its first consent, and so doMcpClient.UsedAtandMcpClient.UsedBy(#3441).- Event 9008 names the list of the user and the end of a consent:
Refused the consent of the user {UserId} to the MCP client {ClientId}: the user keeps {MaxConsentsPerUser} clients that the open policy approved already, as GET /api/management/v1/mcp/consents lists them to the user, some of them perhaps with a consent that was ended. The user frees one with DELETE /api/management/v1/mcp/consents/{id}; an administrator removes the clients not in use, or raises MaxConsentsPerUser.(#3441). - The consent page names a redirect URI of any scheme other than
httpsandhttpby its scheme, somyapp://callback/xismyapp:. It showed the authority of such a URI,callback, as if it were a web host (#3442). IActivityLog.ActorNamegives a name as an activity row's actor and a version's author are stored: a value shaped like a secret masked and the name cut to 128 characters outside a surrogate pair. AI assist writes theprincipalNameof a usage row through it, so a name reads the same in/ai/usageas in a version'sauthorName(#3449).altTextwith notextand nodocumentIdreserves against the daily token budget what it sends: its instructions, the image andmaxOutputTokens. The 25,600 tokens of an image are an estimate, not a bound: on a provider that counts an image as more, image calls in flight together can each pass the budget by the excess (#3449).PATCH /me/preferenceschanges the members its body names and keeps the others as they are stored, whatever the caller last read; null makes one no longer chosen. Two changes of different preferences sent at once, from two tabs or two devices, are both kept.PUT /me/preferencesstill replaces every value (#3450).GET,PUTandPATCH /me/preferencesanswer anETag, a hash of the four values that changes with any of them. Both writes take it back as an optionalIf-Matchand are refused withFCMS3105(412) once another write has changed the preferences; a malformedIf-MatchisFCMS3131(400). Without it they apply to whatever is stored, as before, and aPATCHis answered the values as its update left them, a change of other members that landed meanwhile included; one that names no member writes nothing.GET /me/preferencesanswers no 304 toIf-None-Match, as no Management route does. The OpenAPI document describes the route, the header and theETag(#3450).- A package that maps endpoints of its own under a FluentCMS host, outside the groups of
MapFluentCms(), does it with public members ofFluentCMS.CoreinFluentCmsSurfaceExtensions:WithFluentCmsSurface(name)makes them FluentCMS endpoints of that surface, with the security headers, the coarse rate limit, the request limits and the FluentCMS authentication, and refuses the names of core's surfaces;WithContentSecurityPolicy(policy)sets the policy of a page per request;WithFluentCmsStaticFiles()puts the files underFluentCms:RateLimits:StaticFiles;EnsureFluentCmsPipeline(method)stops the host withFCMS1104beforeUseFluentCms(); andservices.AddFluentCmsOptions(section, instance, validate)bindsFluentCms:{section}and stops the host withFCMS1101and the key, whichFluentCmsConfigurationException.InvalidOption(message)raises fromvalidate.FluentCmsConfigurationException.NotRegistered(message)raisesFCMS1103,PublicOriginis public withBaseandIssuer, andClientOptions.FromOptionsPropertynames the property of a client thatcms.Clientsregistered.docs/host-configuration.mdhas an example (#3451). - The endpoints a surface marks as serving its static files count before authentication in a partition of their own per client address,
FluentCms:RateLimits:StaticFiles:PermitLimit(15000 a minute), instead of the coarsePreAuthlimit, so that loading a surface's files from an office behind one address does not use up the allowance of its API calls. Only the endpoint's own mark counts, never the path or the extension of the request: a page, a configuration file, a fallback, also one that answers a path matching no file, and every API and sign-in request count underPreAuthas before, and so does a marked endpoint under a group of core. A key sent with such a file is never looked up, as on/health. A refusal is the same 429 problem, counted byfluentcms.rate_limit.refusedunder the policystatic-files. The admin marks the files of its app so, as the first of the changes that break says (#3452, #3577). - A replace, through
POST /media/{id}/replaceor by an import, of an asset whose old file or variant another asset of the library names leaves those files to a deleted row of their own, which the daily cleanup purges with them once no other asset names them: variant files at the next run, the original afterDeletedRetention. They stayed before with no row that owned them, and were never deleted. The replace checks again just before it deletes the old files, so a line of an import that names one of them meanwhile keeps it too. When that row cannot be saved, the files stay with no row that owns them, and the new warning 9278 says so and that they must not be removed by hand while an asset names them (#3472). - The variant files that an asset on another asset's key made go to that asset when the first is deleted, replaced, or its site is deleted, and are deleted with that asset's own. Each goes on its own. One whose hand-over fails stays with a deleted asset for the next cleanup; after a replace its row is gone already, so its file stays with no row (#3472).
- The variant row of an asset whose row is gone deletes its file only when the file is in that asset's own folder (#3472).
- The answer of
POST /api/management/v1/content/{type}/{id}/preview-tokenhasexpiresIn, the token's lifetime in whole seconds as a JSON integer:expiresAtless the token'siat, the requestedminutesorFluentCms:PreviewTokens:DefaultLifetime. A client whose clock is not the server's, or one on another origin that cannot read theDateheader, ends the token that long after its own request (#3473). fluentcms schema applylists underLeft alone:a content text column whose collation is not the model's,Con PostgreSQL andLatin1_General_100_BIN2on SQL Server, and--scriptwrites the line as a comment:column title on table cms_article, whose collation is the database's default and not C as in the content model; schema apply does not change a collation, so a sort and a cursor on the column follow the one it has until it is altered by hand. Such a column is one of a table made before #3308 on PostgreSQL or before #2874 on SQL Server, or one altered by hand. Schema apply does not change it, with--allow-destructiveneither, since the change rebuilds the column's indexes and locks the table, SQL Server refuses it on an indexed column, and it moves what every sort and cursor on the column returns. On PostgreSQL alter the columns with the statements that the query in the notes of #3308 writes. On SQL Server drop the indexes, statistics and check constraints that read the column, alter it with its own type and nullability, asALTER TABLE cms_article ALTER COLUMN title nvarchar(max) COLLATE Latin1_General_100_BIN2 NULL, and runfluentcms schema apply, which makes the model's indexes again; content text has no check constraint in the model, so make again any that was made by hand. A PostgreSQL database whose own collation isClists its columns too, until they are altered toCOLLATE "C". That alter rebuilds every index on the column and holds anACCESS EXCLUSIVElock on the table until it is done, although the order stays the same, so do it in a maintenance window, or leave the line as it is. SQLite's model gives no collation, so nothing is listed there. A run that leaves something alone, a column or a plugin's table, and has nothing else to do now endsNothing to apply; what is listed above was left alone, and the schema history records schema {hash}.in place of saying that the content tables match the schema; it still exits with 0 (#3476).- The specification states the order of text on each provider. SQLite and PostgreSQL sort content text by code point. SQL Server sorts it by UTF-16 unit, which differs only around U+FFFF: a character at U+10000 or above, such as an emoji, comes before one in U+E000 to U+FFFF there, such as
A(U+FF21) or U+FFFD, and after it on SQLite and PostgreSQL. A cursor continues each provider's own order correctly. A client that sorts or compares pages itself compares by UTF-16 unit for SQL Server, as JavaScript's<does, and by code point for SQLite and PostgreSQL. Content moved to another provider can list such texts in another order (#3476). - Every answer of
/api/management/v1/api-keysthat carries a key, the list,GET /api-keys/{id}, the create, the rotation, the expiry and the change of addresses, hasmaxOverlapSeconds: the longest overlap a rotation takes, in whole seconds as a JSON integer, which isFluentCms:ApiKeys:RotationOverlaprounded down to whole seconds and what a rotation that leavesoverlapSecondsout gets. A longer one is still refused withFCMS3026. A client offers the range before it rotates instead of learning it from the refusal (#3497). SettingsAttribute.InstanceOnlymarks a settings area whose code reads the instance defaults only, withISettings<T>.GetDefaultAsync:[Settings("area", InstanceOnly = true)].brandingand the MCP plugin'smcpare marked so. Each area ofGET /api/management/v1/settingssays it asinstanceOnly, for a plugin's area as for core's, so that a client sends such an area to/settings/{area}/defaultswithout knowing it by name. The flag only describes the area in that list and changes nothing about how the area is read or written. A site write to such an area throughPUT /settings/{area}is still accepted and stored, and has no effect only because the area's code reads the defaults;ISettings<T>.GetAsync(site)still gives the site's values, so the flag is true only when the area's own code reads withGetDefaultAsync(#3499).- A callback registered on the
Losttoken of a lock that throws is logged as a warning with event 9167 (LockLostCallbackFailed) and what it threw, once, on every provider; the other callbacks run and the lock is lost all the same. Before, the lock's renewal loop logged it as a renewal that failed (9162) and logged the loss (9161) a second time (#3522). - A request whose key passed its window and was removed after its lease ran out puts its claim back at its next renewal and goes on holding the key, logged with the new event 9146, so its response is kept for a repeat; if another request claimed the key first, the request is cancelled as after a takeover (#3523).
- Writes, publishes, unpublishes, schedules, scheduled jobs, imports, trash, restore and purge of one entry take its rows in one order, its
cms_documentrows first, each by its primary key and ordinal by locale code, so two of them that cross wait for each other. On PostgreSQL and SQL Server a publish of one locale and a shared write through another, a scheduled job and a write that ends its schedule, or an import and a shared write could deadlock, and one of them ran again after about one second on PostgreSQL and five on SQL Server (#3524). - A save and a version restore decide their own status from what is stored once their swap holds the row, so a publish or an unpublish of that locale, or another locale's publish of the shared row, that committed between the write's read and its swap no longer leaves a stale status, such as
Modifiedfor a draft equal to what is published,Draftfor a locale published or published and unpublished meanwhile, orModifiedfor one unpublished meanwhile (#3524). - An unpublish decides whether it removes the shared published row under the holds of every locale row, so a publish or an unpublish of another locale that commits meanwhile no longer leaves a published locale without its shared row, or a shared row that no published locale uses (#3524).
- A trash, a restore or a purge of an entry to which a locale was added meanwhile runs again with that locale, so its hooks, checks and
EntryTrashedEventcover it (#3524). - A release of the migrations lock that fails is logged as a warning with event 9307 and no longer replaces the outcome of the migration. The providers of SQL Server and PostgreSQL release every share, with a timeout of 5 seconds, or close the connection, so that no lock stays in the pool after a failed or cancelled migration (#3528).
- A database that another process is creating is no longer refused with
FCMS1308as one of an earlier baseline, by a start,migrateordoctor(#3528). docs/content-migrations.mdgives the query that finds the session holding the lock on each server, and lists the waits that the command timeout still ends (#3528).JobsBuilder.AddJob<TJob, TPayload>(type, attemptTimeout, resumable)is public, so a host registers a resumable job withcms.Jobs.AddJob<TJob, TPayload>(type, attemptTimeout, resumable: true), as a plugin does throughIPluginServiceBuilder. Such a job stops on its token wherever it is with what it did kept, and something runs it again, such as a schedule, since a run stopped at its limit has succeeded and is not retried (#3529).- The schema readers of PostgreSQL and SQLite list an index whose keys are expressions by its name, as the check behind
FCMS1308and event 9306 finds the indexes of a model. On PostgreSQL an index of expressions alone, such as a GIN index onto_tsvector, was not listed, so a plugin whose model has one would be warned of it at every start, or refused for a unique one; on SQLite such a key failed the read. A key that is an expression is listed with an empty name. SQL Server indexes no expression, and an index on a computed column or with a filter was already listed (#3530). fluentcms schema applyand the schema sync of a development host leave alone an index on a content table that has an expression key and that the content model lacks, such as one made by hand onlower(title), since the content model cannot declare one: apply does not drop it, and the sync does not report it with event 9303. On PostgreSQL an index of expressions alone was kept so before, since it was not listed, while one of columns and expressions was listed by its columns alone and dropped; on SQLite the read failed. An index of plain columns that the model lacks is dropped or reported as before (#3530).- A sign-out whose
user.sessions_endedormember.sessions_endedrow cannot be written still finishes: the logout endpoint, the member logout page and a provider's remote sign-out delete the cookie and answer as they do otherwise, where they answered 500 and left the cookie in the browser with its tokens revoked. A sign-in over another one, or with the second factor, likewise goes on. That holds for any failure of the write, whatever the provider throws for it, SqlClient's bareInvalidOperationExceptionfor an exhausted pool included, exceptOutOfMemoryExceptionand the refusal of a write inside a transaction someone else began (FCMS3009,FCMS2602), which fail the request as before. The failure is logged as an error with event 9012 (SessionEndNotRecorded), with the pool, the id, the reason, the type of the failure and, for an error of the database, itsSqlStateand error code, without its message or stack, and no row is written, so that line is the only trace of the end and an operator who audits sign-outs alerts on it (#3531). member.sessions_endedwith the reasonspassword_changed,deactivated,login_removedanddeletedis written only when the member had a live session, a valid authorization or a valid token that has not expired. Every authorization and token of the member is revoked as before (#3531).- A publish scheduled, or due, while a locale is added to the entry publishes at its time. Adding a locale moves the version of the entry's other locales, and such a schedule was skipped with
FCMS2409("the draft changed") although its draft had not changed: a schedule saved meanwhile kept the version it had read, and a job compared the schedule it had read before its transaction (#3534). - A claim of the outbox drain that fails or is stopped after its update, before its rows are read back, gives them back with the attempt it counted. They stayed leased with one attempt more, and the sweep failed those on their last attempt though no handler saw them (#3537).
- No outbox handler starts once its lane is told that the host is stopping, also when the stop comes during a renewal of the lease or just before the hand-off. Such a handler could start after the drain returned, while its row was given back (#3537).
- A stopping host's job runner returns within
JobRunnerOptions.ReleaseTimeout(5 seconds) after the grace period, also when a cancelled job writes its release inside the cancellation, as on SQLite while the command waits for the lock. Such a release held the stop for up to the command timeout of each such job before the time of the releases even began. Each worker's job is told of the stop in a thread-pool work item of its own, so a release written so, or a cancellation callback that blocks, no longer delays telling the others, the outbox drain included. A job whose release is not written by then keeps its lease, is taken over once the lease ends and is never marked done, and event 9514 is logged (#3538). - The bound has a cost: a release that needs longer than
ReleaseTimeoutbut would have succeeded used to finish before the stop returned. Now the stop returns and logs 9514, and unless the release still lands before the process ends, the job waits for its lease to end with its attempt spent (#3538). - What a callback of the stop's cancellations throws while the stop waits is thrown from
StopAsync, as before; what one throws after the stop has given up waiting is logged as a warning with event 9522 (StopCallbackFailed) (#3538). - A content hook that had not ended when its caller was cancelled, such as by a client that went away or a lost
Idempotency-Key, is logged as a warning with the new event 9408, naming the hook, its kind and its type; only a hook that timed out was logged, with event 9406 (#3542). - On SQL Server without MARS, a write whose hook was left inside a command, its reader open, fails with what it failed with, its cancellation or
FCMS2410, instead of SqlClient's refusal of the rollback beside that reader, which is logged with the new event 9409. Its transaction and its locks then stay until the scope is disposed, which rolls them back; nothing of it commits (#3542). - Disposing a handle of the database lock waits at most 5 seconds, as the job runner's disposal does, for the callbacks registered on its
Losttoken once the loss is being told. A callback that does not return kept the disposal waiting for it. When the bound is reached the disposal returns, after the release, and logs a warning with event 9168 (LockLostCallbackSlow); the callback runs on, the token stays usable until it returns, and what it throws then is logged with event 9167 as before (#3544). - A stopping host settles the outbox rows already delivered and gives back the rest also when the stop comes during the read of the site's default locale for a delivery, which the drain no longer waits for, or during the disposal of a delivery's scope, which goes on without it. A read or a disposal longer than half of
JobRunnerOptions.ReleaseTimeoutleft the delivered rows leased, and one longer than all of it the rest too (#3548). - The rows of a batch that the outbox drain gives back, those that wait
MissingHandlerDelayand those that go back at once, go with one write at the end of the batch, which has what is left of the stop'sReleaseTimeout. Each kind had a write of its own, so a slow first one could leave the next none. The lease of the rows given back so far is renewed with the rest of the batch (#3548). - A drain job that comes while the lanes of a cancelled drain of its instance still run, as when a drain job that lost its lease returned at the end of
ReleaseTimeoutwith a release in flight, only signals and ends, as one that finds a drain running does, so that it cannot deliver an owner's later rows before the earlier ones go back. The instance drains again only once those lanes have ended, and then at the next kick or sweep, since nothing kicks a drain when they end. A drain that returns so is logged as a warning with event 9628 (DrainLeftLanes) (#3548). - Event 9603 says that a write given up may still land, and that a row on its last attempt is left as failed rather than delivered again:
Could not write the outcome of outbox delivery {Id}, or gave the write up, which may still land; if it does not, the delivery keeps its lease and is tried again when the lease ends, or left as failed if that was its last attempt.(#3548). - The lock timeout of a write is set for its transaction alone:
SET LOCAL lock_timeouton PostgreSQL,SET LOCK_TIMEOUTon SQL Server, set back before the transaction ends so that no connection keeps it, and the busy wait of the transaction'sBEGIN IMMEDIATEon SQLite. A write sends one statement more on PostgreSQL and two more on SQL Server (#3573). PluginDbContext<TPlugin>.HoldSiteAsync(SiteId site, CancellationToken cancellationToken = default)holds the row of a site shared to the end of the context's current transaction, for a plugin's own writes of a site's rows, and is refused withFCMS2301when the site is gone. Without an open transaction of the context it throwsInvalidOperationException; it begins none of its own. A plain save holds nothing, as before. Hold several sites in ascending order ofSiteId.Value, and never in a content hook, where on SQL Server a deletion of the same site queued meanwhile and the hold wait for each other until a timeout fails the content write (#3586).
Fixes
- On SQLite a host that holds a database lock renews it inside each of its own write transactions as it commits, once half the lease has passed, so a process that waits for the lock no longer takes it from a holder whose lease ran out inside its own long write transaction, such as a
schema apply, a schema sync or an import, while other processes keep writing. This was a known bug of1.0.0-preview.1; what is left of it is under "Limits" (#3186). - Any change that gives an admin user a new security stamp revokes every session of the user with its tokens, in the same save, so an access token issued before it is refused at its next request: a password change or reset, a new name or address, deactivation, a removed external login, and two-factor turned on or off. A third-party client's consent ends too, so the client asks again. Before, those access tokens worked until they expired, a known bug of
1.0.0-preview.1(#3202). - In both pools the authorize endpoint keeps the cookie of the hosted pages when it asks for a new sign-in, for
prompt=login, amax_agethe sign-in is older than, a sign-in pastAbsoluteSessionLifetimeand a second factor the role now requires, and sends the user to the login page over it. The request comes back with a protectedfcms_reauthmark, bound to itsclient_idandcode_challengeand good for 15 minutes, which only a newer sign-in answers. So another site can no longer end a sign-in with one link, a known bug of1.0.0-preview.1. A cookie pastAbsoluteSessionLifetimeno longer opens the hosted pages that need a signed-in user, and the user signs in again over it (#3203). - The remote sign-out path of an SSO provider,
/account/sso/{name}/signout, ends a sign-in only when the request carriessidandiss, each once, equal to those of the id token the sign-in was made with through that provider, and then ends the server session's authorizations and their tokens with the cookie. A provider whose id token carries nosidcan therefore no longer end a sign-in this way. Anything else ends nothing and gets the same empty 200, withCache-Control: no-cache, no-store. A sign-out logs event 9046 and an ignored request 9047. Before, any request ended the cookie of any user who had signed in through that provider, a known bug of1.0.0-preview.1; what is left of it is under "Limits" (#3204). - When
AbsoluteSessionLifetimeis set, the tokens of a code flow end that long after the sign-in on the hosted pages they came from, in both pools. They counted from the authorize request, so they could live up to twice the lifetime after the sign-in, a known bug of1.0.0-preview.1. A member's direct login still counts from its grant (#3205). - On Windows the signing and key-ring certificates loaded from PFX files load with
EphemeralKeySet, so no private key file is left in%APPDATA%\Microsoft\Crypto\Keyswhen the process is killed, a known bug of1.0.0-preview.1(#3212). - A sign-in with the second factor revokes the tokens its server session was issued without it, those of a client with
RequireConsentincluded, and keeps the consent; the user's other sessions stay. Before, those access tokens lived until they expired (#3228). - The daily purge of deleted media assets, its cleanup of their variants and the deletion of a site delete an asset's file only when the asset owns it and no other asset of the library names it. They deleted the file whatever owned it, so purging one of two assets on one key took the file the other still served (#3264).
- The attempts to one webhook wait in its queue, as rows of
GET /webhooks/{id}/deliverieswith the newstatequeued, and go one after another in the order of their events, each as soon as the one before ends, holding no worker. While an attempt was in flight, every other attempt rescheduled itself for that attempt's timeout plus a random delay, so a burst went at about one attempt a timeout and out of order. The new recurring jobwebhooks.queue, every minute, wakes a queue whose head and last claim are at least 10 minutes old with nothing in flight, and logs warning 9252 (#3268). - The HTTPS redirect skips
/health, and the--probeof the reference host follows no redirect and readsurls,http_portsand the path base from the configuration files too (#3275). - The URLs of a media asset that a Delivery read or a media reference answers, its original, its preset URLs and its template, and those of
IMediaService.GetImageUrlAsynccarryvfrom the asset's checksum, as the Management API's do, so a replace gives them new URLs. They had none, so a browser or a CDN kept serving the old file under the same URL for up to the mediaCacheControl,public, max-age=86400by default (#3278). /media/{id}/original/{fileName}answersHEADand aRangeon the local disk, S3 and Azure Blob: 206 withContent-Rangefor a range and 416 past the end, so a player seeks and a download resumes. It sent the whole file to every request (#3279).- A webhook receiver's answer excerpt or an error text is stored without control characters other than tab and line breaks, and never cut inside a surrogate pair, so a 2xx whose answer held a NUL is recorded once; on PostgreSQL the write failed after the 2xx and the attempt was sent again (#3299).
- A write's events are delivered at once while a failed drain job of the outbox waits for its retry, which the kick took for a drain already queued (#3303).
- The multi-site plugin removes a deleted site's host names in the outbox handler
multi-site.cleanup.site.deleted, so a removal that fails or is cut off is tried again. It ran once in process and was cut off afterFluentCms:Events:Handlers:Timeout(5 seconds), which could leave the gone site's rows ofcms_multi_site_hostfor good (#3329). - Writes of one media asset at once without
If-Matchare each applied to the asset as the other left it, so saves of its alt text in two locales keep both; a write that loses five times running is refused withFCMS3105(412) (#3343). - Wrong current passwords or codes a session sends at once are checked no more than the lockout's limit, however many they are. They all read the user before any of them saved, so only one was counted, and a right password among them was checked without being counted and answered either way: a concurrency failure when its save lost, which told the sender it was right. A guess now takes its place in its count, in a save that goes through and is made again on what is stored when it loses, before it is checked. One that finds the sessions kept out is refused unchecked, and one whose tries at a place run out, twice the lockout's limit, ends with the concurrency failure, unchecked too. A wrong one keeps its place and counts towards the lockout; a right password takes the new one in a save that gives its place back, made again when it loses, and is answered as a wrong one if its tries run out; a right code is taken in the save of its step, and one that loses it is refused like a wrong one, since a code is taken once (#3447).
- A call of
CmsUserManagerwhose save fails puts back the flag of the forced password change, or the deactivation, only when that save did not reload the user with what is stored, which another request may have changed. Put back over a reload, the stale value would have been stored by a later save in the same scope, which could have reactivated a user another request deactivated; no caller of core saves again after such a failure, so this was latent (#3447). docs/host-configuration.mdno longer says that the token endpoint refuses a code or refresh token of a user who is locked out, which #3271 ended (#3447).- The
Packjob of thePublishworkflow fails, a dry run too, when a package it would push depends on a FluentCMS package that it would not, and names both;eng/check-dependencies.csmakes the check (#3453). This preview pushes every package, the admin's included (#3464). - An SVG uploaded with
Svgset tosanitizecould run script in a page that inlines it: a CDATA section in a text element, under a root with a namespace prefix such as<s:svg>, was stored as it was, and a page that parses the file as HTML reads such a section as a comment that ends at its first>, so what follows became markup of the page, an<img onerror=…>for one. A sanitised SVG is now written with SVG as the default namespace and no prefix on any element, with no XML declaration, CDATA section, comment or processing instruction, and with text and values escaped, so that an HTML parser reads it as an XML parser does. The hole existed before this preview. SVGs already stored are not changed, as the item on sanitising SVGs above says (#3484). - A sanitised SVG is written with
\nfor a new line on every platform, so that sanitising it again on another one gives the same bytes and an import line can take its key (#3484). - A request with an
Idempotency-Keywhose work answered before its client went away keeps that answer although the client went away while it was being written, so a retry with the key is answered it, withIdempotent-Replayed: true, and runs nothing. The key was held without an answer until its lease ran out, and a retry then ran the request again. A client that goes away while the work still runs leaves the key held without an answer, as before, so a bulk cut short, which answers 200 with its remaining items not run, keeps nothing, and a retry after the lease runs it again. That window stays open: a create whose commit is done but whose client went away before the service returned, as while the entry is read back, where a client's timeout most often lands, and a bulk whose first items committed, still run again on a retry after the lease. Writing an answer after the client left takesInProgressTimeoutat most; one that takes longer is not kept, logged with the new event 9147, and the key can then be held for up to twiceInProgressTimeout(#3485). - A host's own events on a Google, Microsoft, GitHub or Apple provider of
FluentCms:Members:Providers(member-{name}), set asEvents, asEventsTypeor as a delegate ofOnRemoteFailureorOnTicketReceived, in aConfigureor aPostConfigure, keep FluentCMS's part of those two events: an error at the provider goes back to the member login page with amember.login_failedrow, and the sign-in names the provider, so the external login page accepts it. FluentCMS's part runs first, then the host's. Before, a host's events could replace that part: anEventsTypewherever it was set,Eventsor either delegate set in aConfigureregistered afterAddFluentCmsor in aPostConfigure, andEventswhose methods did not call their delegates. Only the event that lost FluentCMS's part changed: withoutTicketReceived, the external login page refused the provider's sign-ins; withoutRemoteFailure, an error at the provider went to the error page with no row (#3564). - A read that falls back, a list with or without
qor an entry read by id that has a row in the requested locale, answers when a field limit of the caller's grant in a fallback locale leaves out some of the fields the entry lacks: that locale fills only the fields the caller may read in it, and a field it may not read there falls back further along the chain or stays empty. It refused the whole read with 400FCMS2202onfields, also when the caller's ownfieldsselection was valid in the requested locale; such a selection now answers. Afieldsselection that names a field the caller may not read in the requested locale is still refused withFCMS2202(#3566). - Wrong current passwords a member's token sends at once to
POST /api/members/v1/me/change-passwordare each counted towards the lockout, and no more of them are checked than its limit, however many they are. They all read the member before any of them saved, so only one was counted, and a right one among them was answered withFCMS3174(MemberChanged) when its save lost, which no wrong one gets. A current password is now counted, in a save that is made again on what is stored when it loses, before it is checked; one that finds the member locked out is refused unchecked withFCMS3167, as before, and one whose count keeps losing getsFCMS3174unchecked, whether it was right or wrong. A right one gives its count back in the save of the new password, lifts the lockout its own count set, is made again when that save loses, and is answered as a wrong one if its tries, twice the lockout's limit, run out (#3597). - Wrong passwords the member login page and the direct login grant check at once are each counted towards the lockout. Each count that lost its save to another was dropped; it is now made again on what is stored, unless the member is locked out by then (#3597).
fluentcms user create --password-stdinanduser reset-password --password-stdinno longer keep a byte order mark as part of the password. PowerShell on Windows can write one before what it pipes, and the user could then not sign in with the password that was piped. A user made that way gets a working password withuser reset-password --password-stdin(#3621).- The save of new recovery codes, by
POST /me/two-factor/recovery-codesand by turning two-factor on throughPOST /me/two-factor/verifyor/account/enable-two-factor, is made again on what is stored when it loses to another save of the user, as the other saves ofCmsUserManagerare, without checking the code again, and the codes answered are those stored. It was made once, so a right code, already taken, was answered with a 500 when that save lost. A save whose tries run out is refused withFCMS3049, and so is one for a user another request deactivated meanwhile; one for a user whose two-factor another request turned off is refused withFCMS3061; none of them stores codes (#3666).