If you Add Content Link->Add a URL that is longer than 255 characters it results in an error to the user. A quick example is a google search URL like below.
The error is: Unable to add resource: org.sakaiproject.exception.IdLengthException id:
It looks like this is in SimplePageBean in a few places where it tries to add the item to content hosting without shortening or altering the name. This was fixed in
SAK-11816, but it doesn't look like any method was made public for handling this.
I think the best place to fix this might not be Lessons, but rather some new method for kernel CHS for adding Urls, but it's currently doing it in Lessons now, and any kernel change would make it harder to backport.