GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — Release UserService v2.0.8 by Hassan9215 · Pull Request #1249 · OpenResilienceInitiative/ORISO-UserService Conversation
Collaborator
Release UserService v2.0.8 into main after staging validation. Base version: v2.0.7. This PR merges the release branch Docker image: What's Changed (since v2.0.7)
Full Changelog: v2.0.7...release/userservice-2.0.8 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…mode The Admin re-sends the whole reason list it last read, so every entry still carries the `clientConsentMode` string from the previous GET — positioned after `clientConsent`, because that is the DTO's field order. Jackson applied the policy object first and the stale string second, so choosing "Opt-Out (enforced)" was stored as "Opt-Out (suggested)": the value landed, the mode silently degraded. The typed object is the caller's intent; the loose string stays a fallback for callers that do not send one, in either field order. Also pins the #1131 acceptance case that had no test: a changed maxAccessDurationMinutes reaches the TenantService write-through and comes back on the same response the card re-reads. Refs #1131 Co-Authored-By: Claude Opus 5 <[email protected]> …ation policy yet Test-first at the UserService↔TenantService wire: the Admin's raw JSON goes in through the real runtime mapper, the assertion is on the HTTP body that actually leaves this service. Only the socket, the identity provider and the cache store are stubbed. A Mockito verify on `updateEffective` cannot disagree with the code; this can — and it did. `applyPolicyUpdate` wrote the duration only when the stored reason already carried a `maxAccessDurationMinutes` policy object. TenantService's own resolver returns null for that field whenever the parent carries none, which is the state of any tenant seeded before the duration policy existed. For those tenants the admin's new duration was dropped before the request was built — no error, no log. That is the "duration always reads 180" half of #1131, and the mocked tests could not see it because they asserted on a captured argument, not on the wire. The tenant-local policy is now created at the platform default mode for this field when it is missing. Refs #1131 Co-Authored-By: Claude Opus 5 <[email protected]> …ing type The counsellor wizard could not create the Beratungsstelle its invite reserved. AgencyCreationClient sent consultingType 0, an ID no ORISO environment serves: the chart ships exactly one consulting type (ORISO-Helm consulting-type-settings/c1.json, id 1). AgencyService validates the consulting type against ConsultingTypeService before it creates anything, so it answered 400 and the registration failed. The 400 was invisible. Only 409 was translated here, so every other upstream status escaped raw and the public onboarding endpoint answered a bare 500 with the reason living only in AgencyService's log. Default the consulting type to 1 and keep the property overridable, and translate any upstream status after logging the reserved agency ID, tenant, consulting type, status and response body. The body is AgencyService's validation reason on a server-to-server admin call, not invitee content. Refs OpenResilienceInitiative/ORISO-Admin#998 Review on #1189: collapsing every non-409 into InternalServerErrorException still answers a bare 500, so an AgencyService outage is indistinguishable from a fault of this service. docs/api-error-contract.md reserves 424/502 for a failed downstream dependency. Split the two cases. A 5xx or an unreachable AgencyService is a retryable downstream failure and answers 502 with a stable reason, details in the log only. A 4xx that is not the documented 409 means this client sent something AgencyService rejected, which is its own configuration being wrong, so it stays a 500: repeating it unchanged cannot succeed. The consulting-type default was also untested. Every case constructed the client directly and set the field by reflection, so reverting the @value fallback to the 0 that broke onboarding would have stayed green. Resolve it through Spring with the property absent, and keep a case that overrides it. Refs OpenResilienceInitiative/ORISO-Admin#998 The two binding cases registered SecurityHeaderSupplier by its own class, so Spring tried to autowire that class's @value fields and the context failed before the assertion ran. No container is needed to prove the point. Resolve the annotation's own expression through a StandardEnvironment, the same placeholder mechanism @value uses: absent property yields the shipped default, a supplied one wins. The default stays pinned to the annotation rather than to the test. …ding-agency-consulting-type fix(onboarding): create the reserved agency under an existing consulting type …1 stub Found by running the branch image against the local stack: POST /users/identity-suggestions answered 501, so the whole read-before-account path is dead in the running application. UsersApi.suggestGuestIdentities is generated with its own @RequestMapping and a NOT_IMPLEMENTED default. UserController implements UsersApi and overrode nothing, while IdentitySuggestionController mapped the same path without consumes/produces — the less specific mapping, which therefore never saw a JSON request. Spring accepted both without an ambiguity error. The existing HTTP contracts passed because their web context contained only IdentitySuggestionController. Registering a bare UsersApi implementor in that context turned three of them red at once with 501, next to the new contract test. IdentitySuggestionControllerDelegate now serves the operation, UserController delegates to it, and IdentitySuggestionController is deleted. One mapping for the path, and the published contract stays the source of truth for generated clients. 28 targeted tests green, Maven exit 0 (JDK 21). Refs: #1181 Co-Authored-By: Claude Opus 5 <[email protected]> A counsellor created through the admin API receives their first password from the administrator who created them, so that password is not a secret only the counsellor holds. Until a second factor exists, the account is not theirs alone — but nothing required one: the invite path carried a gate, the direct admin-create path carried none. - new consultant.two_factor_required column, default false, so the rule applies to accounts created from here on and never retroactively - ConsultantCreationInput.isTwoFactorRequired() defaults to false; the CreateConsultantDTO adapter opts in, the bulk import keeps the default so a migrated tenant is not locked out on its first login - the invite path lets its own gate decide, WAIVED included: an administrator's deliberate waiver is no longer silently overridden - exposed as twoFactorAuth.isRequired on /users/data; an unknown value maps to "not required" Refs ORISO-Admin#955, ORISO-Frontend#1402 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu …first A second factor protects an account; it does not make the account the user's own. A counsellor created through the admin API starts with a password their administrator typed and passed on out of band — a secret shared with at least one other person, over at least one other channel. Replacing it has to come first, or the factor is enrolled against credentials someone else still knows. - new consultant.password_change_required column, default false, set on the same admin-provisioned path as two_factor_required - ConsultantCreationInput.isPasswordChangeRequired() defaults to false; the bulk import keeps the default, since imported counsellors carry a password they already had - UserAccountControllerDelegate#updatePassword clears it once the change actually succeeded: a failed change leaves it standing, an account that owed nothing is not written to, and accounts without a consultant row are not an error - exposed as passwordChangeRequired on /users/data — a field of its own, because it is a fact about the password, not about a factor Refs ORISO-Admin#955, ORISO-Frontend#1402 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu …ix account
Every step of CreateConsultantSaga rolls back on failure -- the Keycloak
account, the password, the roles, the MariaDB row, the agency relations,
the appointment service. Matrix alone did not:
} catch (Exception e) {
log.error("Matrix user creation failed for consultant, but continuing", e);
}
...
createConsultantInMariaDBOrRollback(..., matrixUserId /* may be null */, ...);
So a counsellor was persisted and 200 OK returned while matrixUserId was
null. CreateChatFacade, TeamDiscussionFacade, SessionSupervisorFacade and
DirectSessionMatrixRoomService all refuse to act on such a record, so the
account looks created and cannot be used for counselling. The administrator
sees success, the counsellor cannot work, and nothing connects the two.
Reported as "I create a counsellor and they cannot get in" and as "the
synchronisation is broken", intermittently, because it depends on whether
Synapse answered.
Matrix creation now rolls back like everything else, with its own
CREATE_ACCOUNT_IN_MATRIX step so the failure names itself. Three cases are
one case: Synapse throwing, Synapse answering without a user_id, and the
plain username being unavailable all leave the same hole.
The trade-off is deliberate: while Synapse is down, creating a counsellor
fails and the administrator retries. That is worse than today for the
administrator and better for the counsellor, who currently gets an account
that looks fine and is not.
One existing test is rewritten rather than deleted. It was named
..._Should_continueWithoutMatrixIdentity_When_plainCredentialsAreUnavailable
and asserted a null matrixUserId, but stubHappyPath populates
PlainCredentialsHolder through stubKeycloakUserCreation -- the credentials
were available, and the null it asserted came from a Matrix mock nobody had
stubbed. It described a scenario it never set up. The scenario is now real
and the assertion is the new contract.
The same gap was in the fixture: stubKeycloakUserCreation left
createUserId unstubbed, so every happy-path test in this class ran against
a null matrixUserId and passed. It now supplies one.
Verified: CreateConsultantSagaTest 36 green, and 145 green across the
adjacent suites (grant-identity, creation-input adapters, user-account
delegate, dto mapper, invite provisioning, consultant data provider).
spotless clean.
Refs ORISO-Admin#955, ORISO-Frontend#1402
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu
…nt-policy-mode-order fix(case-handover): let the typed consent policy win over the echoed mode …ibling UserAdminController normalises the address on createConsultant, updateConsultant, createTenantAdmin, updateAgencyAdmin and updateTenantAdmin. createAgencyAdmin did not, and nothing downstream compensates -- CreateAdminService passes it through untouched to the database and to Keycloak. So an agency admin created as [email protected] was stored verbatim while the same person entered on any other screen was stored lowercase. Any lookup or duplicate check comparing against the lowercase values every other path produces misses it, and the first edit of that record silently rewrites the address, because updateAgencyAdmin does lowercase. The test file already carried the same assertion for four of the five siblings; this one was simply never written. Added, and it failed on the old code with "expected: <[email protected]> but was: <[email protected]>". Found by a parity audit across the admin entry paths. Note for whoever picks this up: existing agency-admin rows may already hold mixed-case addresses. This change stops new ones; it does not migrate what is there. Verified: UserAdminControllerTest 43 green, spotless clean. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu …context My previous commit added a test-only @RestController implementing UsersApi so the shadowed suggestions endpoint could be shown over HTTP. Spring's component scan picks such a class up in every other integration context, where it collides with the real UserController: "Ambiguous mapping. Cannot map 'guestIdentityHttpTest.ContractImplementor'". That failed required integration tests, the MariaDB contracts and PreDev CI on this PR. Mine, and only visible in CI because I had run targeted tests locally. Moving the class out of the scanned package and registering it as a @bean did not help — the nested test @configuration that creates it is itself scanned. The carrier is gone. The HTTP tests now drive the delegate through a plain @PostMapping without the generated contract's consumes/produces conditions, so it stays harmless even if scanned: the generated mapping is more specific and wins. That the production controller really overrides the generated operation — the actual regression — is guarded by GeneratedContractOverrideTest. That guard is structural, and says so in its own javadoc: showing it over HTTP needs a context holding both the generated contract and the real controller, and that is exactly the construct that breaks every other context. The behaviour is proven against the running service instead, where the endpoint answered 501 before this fix. 35 targeted tests green including DeleteUserAnonymousSchedulerIT, which was red. Refs: #1181 Co-Authored-By: Claude Opus 5 <[email protected]> Reverts f2cc462. I made a Matrix provisioning failure roll back the whole creation, on the reasoning that every other step in the saga rolls back and this one only logged. The inconsistency was real; the conclusion was wrong. CI said so: 10 integration and E2E tests went red, all with "Failed step: CREATE_ACCOUNT_IN_MATRIX", and the E2E controller test started returning 424 instead of 200. The reason is not that the tests mock Matrix away by accident -- the whole integration suite and the E2E suite run without a Synapse at all, every creation there succeeds, and CreateConsultantSagaIT:228 explicitly asserts the stored matrixUserId is null. Tolerating an absent Matrix is a carried operational decision, not an oversight, and flipping it is not mine to do from a code reading. Kept: the test that documents it, renamed from ..._Should_continueWithoutMatrixIdentity_When_plainCredentialsAreUnavailable to what it actually exercises. That name described a scenario the body never set up -- stubHappyPath populates PlainCredentialsHolder, so the credentials were available, and the null it asserted came from an unstubbed mock. What remains unresolved, and is not fixed by reverting: the administrator is told the account was created while it has no chat identity, and CreateChatFacade, TeamDiscussionFacade, SessionSupervisorFacade and DirectSessionMatrixRoomService all refuse to act on such a record. The fix is to make that state visible and repairable, not fatal. Filed separately. Verified: CreateConsultantSagaTest 33 green, UserAdminControllerTest 43 green, spotless clean. The agency-admin e-mail fix in 93db3c3 is untouched. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu …nd repairable A consultant created while Synapse is unreachable is persisted with matrixUserId = null and the administrator gets 200 OK. CreateChatFacade, TeamDiscussionFacade, SessionSupervisorFacade and DirectSessionMatrixRoomService all refuse such a record, so the account looks created and cannot be used for counselling. Nothing surfaced it and nothing could repair it without a database session. f2cc462 tried making the step fatal and was reverted in 1bc27b1: the integration and E2E suites run without a Synapse, every creation there succeeds, and CreateConsultantSagaIT asserts the stored matrixUserId is null. Tolerating an absent Matrix stays as it is. What changes is that the state no longer hides. Honest: ConsultantDTO.chatIdentityStatus (PROVISIONED | MISSING), derived from matrixUserId in ConsultantResponseDTOBuilder, so the creation response, the single-consultant response and the counsellor list all say it. Creation keeps answering 200 on purpose - the account and every other step genuinely succeeded; what the administrator did not know is that it is not usable for chat yet. Added to the OpenAPI contract as an optional property; oasdiff reports no breaking change. Discoverable: MissingChatIdentityForConsultantViolationReportRule lists every affected consultant in the existing GET /useradmin/report, backed by ConsultantRepository#findWithoutChatIdentity. Repairable: POST /useradmin/consultants/{consultantId}/chat-identity provisions the missing account for an existing consultant. Idempotent by construction - a consultant that already owns a chat identity is returned untouched and Synapse is not called at all, so the call is safe to repeat. A failure leaves the record exactly as it was and answers 424, which is what makes the retry safe. The four refusing call sites now name the cause and the repair instead of "does not have Matrix credentials", which read like a misconfigured account. Written test-first. RED first: chatIdentityStatus "expected: MISSING but was: null" (3), the report rule "expected a collection with size <1> but: collection size was <0>", the repair "expected: @anna.beispiel:matrix.local but was: null" plus three "Expecting code to raise a throwable", the endpoint "expected: <200 OK> but was: <501 NOT_IMPLEMENTED>". The incomplete-then-repaired IT was verified red against a mutated implementation, twice: "expected: MISSING but was: null" with the DTO mapping removed, "expected: @chatlessusername:matrix.local but was: null" with the repair disabled. Closes #1194 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu UserController gained IdentitySuggestionControllerDelegate when it took over the generated contract operation. UserControllerIT builds the full web context and mocks every collaborator explicitly, so the missing one failed all 133 of its tests. Mine, again from running only targeted tests locally. 131 tests green. Refs: #1181 Co-Authored-By: Claude Opus 5 <[email protected]> … stop logging chat identifiers Four review findings, all verified against the code before changing anything. Transaction boundary (Major). The repair called Synapse from inside @transactional: Matrix succeeds, the commit then fails, the rollback leaves an orphaned chat account, and no later attempt can finish the job because the homeserver refuses to mint the same localpart twice. A repair tool that can manufacture unrepairable records is worse than none. The Synapse call now runs outside every database transaction. ConsultantChatIdentityWriter is a separate bean holding the only two MariaDB touches, each REQUIRES_NEW -- separate because Spring's proxy does not intercept self-invocation, so REQUIRES_NEW on a sibling method would have done nothing. Reconciliation, not deletion, is the compensation: MatrixUserClient#findUserId resolves an account a previous attempt left behind, and the next repair adopts it. Destroying a valid chat account over a transient database fault would throw away the counsellor's room membership. A failed write now answers 424 naming SAVE_CONSULTANT_IN_MARIADB, and says in the log that a retry will adopt rather than re-provision. The write itself re-reads inside its own transaction and keeps an identity that appeared meanwhile, so two repairs racing cannot overwrite each other. Privacy (Major). CreateConsultantSaga logged the plain Matrix localpart and the resulting matrixUserId. Those are user identifiers and application logs are aggregated, retained and backed up; on a counselling platform that is a regression, and the repo's own path instruction names it. The logs now carry the internal consultant id and the provisioning outcome. ConsultantChatIdentityService and ConsultantChatIdentityWriter were audited and already log only ids. A test that could not fail. createNewConsultant_..._When_matrixProvisioningDidNotHappen asserted the deliberate tolerance without provoking it. The reason is sharper than the review supposed: the saga reads PlainCredentialsHolder BEFORE createKeycloakUser populates it, so with the holder unset the Matrix branch is skipped entirely and the mock is never touched. Seeding the holder the way UserAdminController does makes the branch reachable; the client then throws, and the test asserts creation still succeeds, matrixUserId is null, the Matrix call happened, and no rollback ran. A second test covers Synapse answering without a user_id. Locale. All six e-mail normalisations in UserAdminController used a bare toLowerCase(), not just the one flagged, so fixing one would have created the divergence this package exists to remove. All six now use Locale.ROOT, as do the two other account e-mail paths, matching AccountInviteService and CaseHandoverService. RED first, and every new test proven able to fail by mutation: - interleaving: "Expecting actual throwable to be an instance of DistributedTransactionException but was: java.lang.RuntimeException: commit failed" - @transactional guard, with the annotation restored: "expected: null but was: @transactional(propagation=REQUIRED, ...)" - adoption removed: the IT and the interleaving test both fail with "Failed step: CREATE_ACCOUNT_IN_MATRIX" - catch removed from the saga: "Runtime MatrixCreateUserException: Synapse is unreachable" Verified: ./mvnw -B clean verify -- 4781 unit tests and 997 integration tests, 0 failures, 0 errors; the 35 skips are the real-MariaDB and Redis suites CI runs in their own jobs. CreateConsultantSagaIT 8 green and every E2E suite green with no Synapse present. spotless clean. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu Every log line and exception message in MatrixSynapseService carried a plain Matrix identifier. On this platform a localpart is a person's name or e-mail, and those lines go to aggregation, retention and backups. - new MatrixIdentifierRedactor: keyed HMAC-SHA256 pseudonym, 12 hex chars, following ConsultantIdentityHasher / MatrixRtcCorrelationIdHasher; the secret is optional here and falls back to a per-process random key, so redaction can never stop the service booting - normalises "@Local:server" to the localpart, so one person keeps one token across call sites and a failed provisioning stays followable - 50 sites redacted: usernames, localparts, full Matrix user ids; the display-name value is dropped rather than pseudonymised - sanitizeUrlForLog now also replaces a Matrix user id inside a path - MatrixSynapseServiceIdentifierRedactionTest reads the adapter source and fails if a raw identifier reappears at a logging or exception site, plus behavioural cover of the create path Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu Five defects from the cross-PR review of this package.
- A consultant row saying twoFactorRequired announced the requirement even
when identity.otp-allowed-for-consultants is false, which is a permanent
lockout: an undismissable gate in front of enrolment endpoints that all
answer 409. UserDtoMapper now gates isRequired on the same OTP role
policy UserAccountControllerDelegate already gates encourage2fa on. The
stored requirement is untouched, so turning the policy on makes it take
effect.
- The promotion path (POST /useradmin/admins/{id}/consultant-identity)
never set twoFactorRequired, so a promoted admin owed no second factor
while a freshly created counsellor could not log in without one. Its
Matrix-failure logs now carry the same repair guidance as the saga.
passwordChangeRequired stays false there: no new password is chosen.
- An invited counsellor was met by a non-dismissible "replace your
password" screen for a password they had just chosen themselves and
nobody else has ever seen. Cleared alongside the second-factor
requirement the invite already corrects.
- The chat-identity repair adopted on the localpart alone. It now refuses
(409) when another consultant row already holds that matrixUserId - a
soft-deleted colleague frees the username but keeps the account, so
adoption would have handed over their rooms and history and put two
rows on one id. findUserId no longer offers a deactivated account:
Synapse answers 200 for one, and attaching it manufactures the very
state the repair exists to remove.
- The wire contract for twoFactorAuth.isRequired and
passwordChangeRequired is now asserted as JSON in UserControllerE2EIT,
and the @transactional guard also refuses a transactional *caller* of
the repair, which reflection on the service alone could not see.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu
Review round one on this PR, plus one the review did not name. - sanitizeUrlForLog decoded the path with java.net.URLDecoder, which maps '+' to a space. A Matrix localpart may contain '+', so a URL path hashed "anna x" while every explicit call site hashed "anna+x" - one person, two pseudonyms, in the very place an operator looks for the correlation. UriUtils.decode leaves '+' alone and is what this class already uses to encode admin paths. - The test written for that found a second leak: a RestTemplate failure message repeats the request URL, and several Synapse endpoints carry the Matrix user id in their path. So every exception message this adapter logged handed back the identifier the pseudonym beside it withheld. The same held for the raw Synapse error body, printed one argument after the pseudonym and propagated in the exception message too. MatrixIdentifierRedactor.scrub now pseudonymises any Matrix user id in free text, and every message and body in this file goes through it. On the create and login-token paths the body is replaced outright by its closed-vocabulary errcode: a privacy guarantee resting on a third party's error wording is not a guarantee. The reactivate path no longer passes the throwable itself, because its URL names the user. - The guard test now also fails on any getMessage()/getResponseBodyAsString() reaching a log or exception site unscrubbed. - application-testing.properties shipped a hard-coded key inside the jar, which would let anyone holding those logs confirm a suspected name offline - the exact attack the keyed HMAC prevents. Removed; the per-process random fallback covers the tests. The two sibling secrets there have the same shape but are pre-existing and left alone. - Documented that a configured key needs >= 256 bits of independent entropy, and why. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0188vTdHuqNtpdz4qMLv7apu …name Three provisioning paths wrote firstName + " " + lastName into the Synapse displayname, bypassing ConsultantDisplayNameResolver and ADR-002 §2. The displayname is readable by every member of a shared room via /joined_members, the advice seeker included, so this exposed counsellors' real names. CreateConsultantSaga, ConsultantUpdateService (admin and self-service) and GrantConsultantIdentityService now all ask the resolver, which gained a raw-parts overload for callers that have no persisted Consultant yet. The rule is not copied anywhere; the resolver stays the only place that decides. Closes part of #1200. Co-Authored-By: Claude Opus 5 <[email protected]> …name CaseHandoverService.resolveConsultantName fell back to Consultant#getFullName() whenever the public display name was blank. That name is serialized into the "username" field of the CASE_HANDOVER_GRANTED m.text event, a persisted message in the advice seeker's own session room, and substituted into the client copy — so after the displayname fix a counsellor's Matrix profile showed a pseudonym while their real name sat in a chat message in the same room. The trigger was a blank displayName, i.e. precisely the population ADR-002 §2 protects. It now asks ConsultantDisplayNameResolver like every other Matrix path. The message's "username" field is unchanged; only its value stops being the real name. MatrixRealNameGuard rewritten after an adversarial review got ten near-miss spellings past its equality check: it now walks arguments recursively (so a name nested in a serialized payload or a JSON body is caught), normalises case and punctuation, matches as a substring, and matches the two name parts in either order with an inserted middle name tolerated. MatrixRealNameGuardTest pins all of that, because a guard that stops biting silently is worse than none. Also adds the display-name-only update test that covers two behaviours the previous tests left unpinned: the Matrix push happens after the database write, and it fires on a pseudonym change and not only on an identity change. Refs #1200. Co-Authored-By: Claude Opus 5 <[email protected]> …e Träger, in the footer
Decisions by Frank (2026-09-23) for the Träger legal-flow mails:
- Mail copy never says "AVV" or "Auftragsverarbeitungsvertrag", always
"Vertragsunterlagen" (en: "contract documents"). avv-unterschrift is
re-synced byte-identically from ORISO-Frontend
`feat/email-kit-avv-copy-link-and-subject`; the DPA signed notice default
subject and body follow ("Vertragsunterlagen unterzeichnet – <Träger>").
- "X ist ein Angebot von Y" names the configured platform and its operator,
never the Träger. TenantEmailBrandValues overlays platformName with the
Träger name for the header; the offered-by line of avv-unterschrift and
einladung-freitext (invite mail and signed notice) now reads
`{{offeringName}}`, which OrisoEmailBrand fills with the platform name and
no overlay touches. It used to read "Caritasverband Musterstadt e.V. ist
ein Angebot von ORISO."
- The fine print no longer prints "e.V..": OrisoEmailRenderer drops the
template's full stop when a value already ends the sentence with one.
- A reserved tenant without a name reads "zwischen ORISO und Ihrer
Organisation" in the fine print (dative, `{{tenantNameDative}}`) while the
subject keeps "für Ihre Organisation". DpaSigningMailRenderer now owns both
fallbacks; DpaForwardEmailService passes no name instead of a wording.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The ORISO mail header shows the logo and the platform name in the next
cell. With alt="{{platformName}}" a logo that failed to load put the name
a second time beside itself. The logo is decorative: alt="" (Frank's
decision, 2026-09-23). Size, border:0 and "no logo URL, no cell" are
unchanged.
LOGO_CELL stays byte-identical to the design system's emailLogoCell
(ORISO-Frontend fix/email-kit-keycloak-omit-empty-logo, 1228af31), which
the plain dialect folds into {{logoCell}}; the templates do not change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…data The footer's sender block (name, postal address, contact line) is read from what the platform owner enters under Admin -> Globale Einstellungen -> Dokument-Stammdaten (TenantService /tenant/public/dpia, operator), with a Traeger's own name and address laid over it field by field (Frank, 2026-09-23). A value nobody entered stays empty. Co-Authored-By: Claude Opus 5.5 <[email protected]> A blank organisation name, address or contact line now takes its whole
footer line with it - including "X ist ein Angebot von Y" and the
contract sentence of the signing mail - instead of leaving an empty line
or needing a sample value. A value missing from the map entirely still
stays visible as {{placeholder}}.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
OrisoEmailBrand no longer carries email.brand.org-name/org-address/ contact-line with an "ORISO" default. Every design-system mail now names the platform owner as entered under Dokument-Stammdaten -> Betreiber, and a value nobody entered stays blank so the renderer drops its line. TenantEmailBrandValues takes the sender tenant as a parameter; the DPA signing mail passes none on purpose (its fine print names the operator as contract partner). Test fixtures no longer use a Musterstrasse sample or the app.oriso.org host. Co-Authored-By: Claude Opus 5.5 <[email protected]> …platform owner's The invite mail and the "Vertragsunterlagen unterzeichnet" notice now carry the Traeger's sender block: its name and, where it entered one, its address; everything it has not entered comes from the platform owner. The DPA signing mail keeps the operator as sender on purpose - its fine print names the operator as the Traeger's contract partner. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> In the plain-text half of einladung-freitext the 64-dash rule stood in the
template, outside {{assuranceBlock}}. A mail without an action (the
contract-signed notice) lost the security line but kept the rule, while
the HTML half drops both. The rule now travels inside ASSURANCE_BLOCK_TEXT,
the same unit as the HTML emailAssurance molecule. Output with an action is
unchanged.
The ORISO-Frontend kit text builder needs the matching change (the slot
carries its own rule); see the PR comment.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both change the einladung-freitext frame. Resolution keeps #1233's conditional {{assuranceBlock}} / {{footerNote}} and this branch's {{offeringName}} in the "is a service provided by" line; catalogue.json lists all three placeholders. Without this merge the branch conflicts once #1233 lands first, which is the agreed merge order. Co-Authored-By: Claude Opus 5.5 <[email protected]> The signing-mail branch took in #1233's conditional {{assuranceBlock}}. OrisoEmailRenderer conflicted only because both sides added constants at the same spot: the resolution keeps the assurance block constants and the sender-line patterns side by side, unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> CI failed in tests/ci/test_replica_safety_contract.py: the new PlatformOperatorOrganisationClient (AtomicReference) and TraegerOrganisationClient (ConcurrentHashMap) hold process-local state that replica-safety-components.json did not list. Both are five-minute TTL caches of TenantService reads, so they are inventoried like operator-dpa-content-cache: performance risk, bounded. Co-Authored-By: Claude Opus 5.5 <[email protected]> …ator
Product decision (Frank, 2026-09-23): in "X ist ein Angebot von Y", Y is
the platform operator from Admin -> Globale Einstellungen ->
Dokument-Stammdaten -> Betreiber, never the Traeger, even when the Traeger
overrides the sender name and address above it. X stays the platform name.
The two templates where a Traeger can overlay the sender block
(einladung-freitext, avv-unterschrift) now take Y from a new
{{operatorName}} token, which OrisoEmailBrand fills from the operator's
master data and TenantEmailBrandValues never overlays. An operator without
a name drops the sentence, as a blank sender value already does; the
Traeger never stands in. The signing mail keeps the operator as sender.
Tests first: InviteFrameMailRendererTest and DpaSignedNoticeFooterTest
failed on "... ist ein Angebot von Traeger Nord e.V." before the change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
TenantService now stores an optional full legal name, contact e-mail and
phone per Träger (ORISO-TenantService feat/tenant-legal-name-and-contact).
- TraegerOrganisationClient uses the legal name as the sender name, else
the display name, and builds the Träger's contact line from its e-mail
and phone the same way as the platform owner's ("a · b").
- The contact line stays one field: a Träger that entered any contact
replaces the platform owner's whole line, so a line never names two
organisations.
- Tenant-admin onboarding accepts organisation.legalName, contactEmail and
contactPhone and creates the tenant with them. They are checked against
TenantService's limits and @Email rule before anything is created.
- services/tenantadminservice.yaml carries the three fields; the
TenantService provider pin moves to the commit that adds them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r's legal name Co-Authored-By: Claude Opus 5.5 <[email protected]> …erlin-time-and-grammar fix(dpa-mail): German local signing time and "für Ihre Organisation" …ail-neutral-without-action fix(mail): no link-security line or invitation footer in mails without an action … the dev merge dropped The merge commit 2b0a394 lost the PR's own side in five files: the SENDER_* patterns, withoutBlankSenderLines() and namesABlankSenderValue() in OrisoEmailRenderer (their call sites survived, so the build failed with 'cannot find symbol'), the offeringName/operatorName entries in catalogue.json, and the offered-by line in the three einladung-freitext.html templates. This restores exactly what a clean merge of dev into 8ca0d78 produces. The merge commit 6a43b83 lost the PR's own side in four files: the {{operatorName}} catalogue entry and the '… ist ein Angebot von {{operatorName}}' line in the three einladung-freitext.html templates, which is what footerNamesThePlatformAndItsOperator_evenWhenATraegerBrandsTheHeader asserts. This restores exactly what a clean merge of dev into 078fea4 produces. …-decorative-alt fix(email): decorative logo alt so a failed image never repeats the name …-handler-cve fix(security): upgrade Netty past CVE-2026-75595 …ng-mail-design-system feat(dpa-mail): render and send the contract signing mail from the design system …er-org-from-tenant feat(mail-footer): sender block from Admin master data, Träger overrides field by field …er-traeger-legal-name-contact feat(mail-footer): name the Träger by its legal name and contact
|
There was an error while loading. Please reload this page.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: OpenResilienceInitiative/ORISO-UserService/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.