Actions
Bug #7437
closedPGError when host group title is exactly 256 characters
Description
Under PostgreSQL, SQLite ignores it:
1. create a host group with a 244 character long name
2. create a second host group with a one character name, child of the first
PGError: ERROR: value too long for type character varying(255) : UPDATE "lookup_values" SET "match" = 'hostgroup=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/b' WHERE "lookup_values"."match" = 'hostgroup='
The length calculation title_and_lookup_key_length doesn't take into account the separator character.
There doesn't appear to be any test coverage in #7038 either of taking parent titles into account.
Updated by Dominic Cleal over 10 years ago
- Related to Bug #7038: PGError when hostgroup name exceeds 245 characters added
Updated by Ori Rabin over 10 years ago
- Status changed from New to Assigned
- Assignee set to Ori Rabin
Updated by Ori Rabin over 10 years ago
- Target version set to 1.7.3
This should have been a part of a bug fix that was merged this sprint (#7038)
Updated by Ori Rabin over 10 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/1772 added
- Pull request deleted (
)
Updated by Dominic Cleal over 10 years ago
- Translation missing: en.field_release set to 21
Updated by Ori Rabin over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 2904764d9bf5f2cb3587af1373a046d3ab619cb8.
Actions