Skip to content

FOUR-32246 Ethos user sync failure caused by insufficient lastname field length - #9096

Open
devmiguelangel wants to merge 4 commits into
developfrom
FOUR-32246
Open

devmiguelangel wants to merge 4 commits into
developfrom
FOUR-32246

Conversation

@devmiguelangel

@devmiguelangel devmiguelangel commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Issue & Reproduction Steps

Ethos user sync fails when a person's first or last name exceeds 50 characters (SQLSTATE[22001]: Data too long for column 'lastname'). Example: Mohamed Abdelmoneim Ramadan Mohamed Abdallah Elrefai (51 characters).

  1. Configure Ethos integration.
  2. Sync a user with a last name longer than 50 characters.
  3. Run the overnight Ethos sync (or import users).
  4. Observe failed insert into users.

Solution

  • Add upgrade-safe migration widening users.firstname and users.lastname from VARCHAR(50) to VARCHAR(255) (down() is intentionally empty).
  • Raise max:50 to max:255 in User::rules() and in installer admin name prompts.
  • Add API feature tests for 255-character acceptance and 256-character rejection.

How to Test

  • Run php artisan migrate and confirm SHOW COLUMNS FROM users shows varchar(255) for firstname and lastname.
  • Run tests/Feature/Api/UsersTest.php methods testCreateUserAcceptsNamesUpTo255Characters and testCreateUserRejectsLastnameLongerThan255Characters.
  • With package-ellucian-ethos PR merged/deployed, re-run Ethos sync for a user with the example long name above.

Related Tickets & Packages

FOUR-32246
https://github.com/ProcessMaker/package-ellucian-ethos/pull/145

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

ci:package-ellucian-ethos:FOUR-32246

@decisions-sonarqube

Copy link
Copy Markdown

@devmiguelangel devmiguelangel changed the title FOUR-32246: Allow user first and last names up to 255 characters FOUR-32246 Ethos user sync failure caused by insufficient lastname field length Oct 9, 2026
@devmiguelangel devmiguelangel self-assigned this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant