Isn't the main problem here the fact that whatever limit you chose, if
the original channel is at or near the limit, the cloned one will be
over limit? So the real fix is to

- match the textfield length in the WebUI to the column width,
  whatever that one is;
- if the generated name would end up longer, truncate it in such a way
  that the name is still unique;
- when handling the form, verify that the data is indeed shorter or
  equal the column width.

That's what I was getting at in my original e-mail, that the truncation is the answer (though based on the other BZ it looks like that's explicitly not the desired approach).

The question of the channel name length came up related to this since if Red Hat channels themselves are so close to the limit, customer channels might be as well. Since we give the extra space for labels, why not raise name to match that?



--
Jason Dobies
RHN Satellite / Spacewalk
RHCE# 805008743336126
Freenode: jdob @ #spacewalk #spacewalk-devel

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to