Repository navigation
Conversation
…IntegrationEngine#610) CHANNEL.NAME is VARCHAR(40) in every supported database, but the server never checked the length, so a longer name (easy to get by cloning a channel with a long name) failed in the INSERT. That SQLException then could not be serialized into the response either, so clients only saw "Request failed". updateChannel now rejects such a name up front with "Channel name must be at most 40 characters", the same way it already rejects a duplicate name. The limit lives in Channel.MAX_NAME_LENGTH, which the Swing channel editor now uses instead of its own literal 40. Signed-off-by: iacsha <122627209+iacsha@users.noreply.github.com>
iacsha
requested review from
a team,
gibson9583,
jonbartels,
kayyagari,
kpalang,
mgaffigan,
ssrowe and
tonygermano
December 3, 2026 13:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #610.
CHANNEL.NAMEisVARCHAR(40)in every supported database (Derby, MySQL, Oracle, PostgreSQL;NVARCHAR(40)on SQL Server), but the server never checked the length. A longer name, which is easy to get by cloning a channel that already has a long name, failed in theINSERT. ThatSQLExceptionthen couldn't be serialized into the response either, so clients only saw "Request failed".Change
DefaultChannelController.updateChannelrejects a name over 40 characters before anything is written, withChannel name must be at most 40 characters. It's aControllerException, the same way the method already rejects a duplicate name ("A channel with that name already exists"), so every client gets the message through the existing error path.Channel.MAX_NAME_LENGTH, next to the existingChannelTag.MAX_NAME_LENGTH, and the Swing channel editor now uses it instead of its own literal40.Not in this PR
SQLExceptioncan be serialized on Java 9+ without--add-opens=java.sql/java.sql=ALL-UNNAMED(the reporter verified that it lets the real database error through), affects every database error returned by the API. Changingdefault_modules.vmoptionsfelt like your call rather than part of this fix.Testing
DefaultChannelControllerNameTest(a name at the limit, the 46-character clone name from the issue, a missing name).:server:testand:client:compileJavapass.main(Derby): creating a channel namedCopy of TEST credentials via Configuration MapthroughPOST /api/channelsreturns an HTMLHTTP ERROR 500 Request failed., and the log shows theInaccessibleObjectExceptionfrom serializing theSQLException.Nothing is written to the database and nothing is logged as an error.