I'm blogging about Emacs, Drupal, php and exciting subjects

· Lars Nielsen

API Platform Returned an IRI Instead of the Object, and Saving the Form Cleared the Owner

In CaRMen, my CRM, every deal has an owner and every activity has an assignee: a user. For a while the deal list showed "-" in the Owner column for every deal, which looked like a display bug. It was worse than that. Opening a deal and saving it, without touching the owner field, removed the owner from the deal. The same happened to an activity's assignee.

Read article API Platform Returned an IRI Instead of the Object, and Saving the Form Cleared the Owner
· Lars Nielsen

sshd_config Said PasswordAuthentication no. A cloud-init Drop-in Had Already Said Yes.

On the database server of my search engine project, /etc/ssh/sshd_config said PasswordAuthentication no. The server accepted password logins anyway, and a bot on the internet was guessing the root password around the clock. Every attempt failed, but only because the password held, not because the setting did.

Read article sshd_config Said PasswordAuthentication no. A cloud-init Drop-in Had Already Said Yes.
· Lars Nielsen

The First Real End-to-End Test Found a Login Error Nobody Had Ever Seen

CaRMen, the small CRM I run for myself, had unit and controller tests from early on, but nothing that drove an actual browser against the actual frontend until October. Setting up Playwright properly — @playwright/test instead of plain playwright, a Chromium-only project, role-based locators, a shared login helper — took one evening.

Read article The First Real End-to-End Test Found a Login Error Nobody Had Ever Seen
· Lars Nielsen

LanguageTool Server Failed With "Address Already in Use", and My Script Carried On Anyway

The script that drafts and schedules articles for this site starts a self-hosted LanguageTool server for each run, so every draft gets a grammar check before it's published. On 15 October, on the LFS laptop it now runs on, I found that LanguageTool hadn't started at all, and nothing in the script's output said so.

Read article LanguageTool Server Failed With "Address Already in Use", and My Script Carried On Anyway
· Lars Nielsen

API Platform 4 Dropped the hydra: Prefix, and Every List in My CRM Went Empty

I run a small CRM for myself called CaRMen — a Symfony 7 API Platform backend with a React frontend. In August I had to bump api-platform/core from ^3.3 to ^4.0, not because I wanted the new major version, but because composer's own security-advisory audit flagged every 3.3.x and 3.4.x release in a row. There was no patched 3.x left to stay on.

Read article API Platform 4 Dropped the hydra: Prefix, and Every List in My CRM Went Empty
Subscribe to Linkhub