Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-37962

Creating a URL with a long name results in an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.3, 11.0
    • Fix Version/s: 10.3, 11.0
    • Component/s: Lessons
    • Labels:
      None
    • 10 status:
      Resolved
    • Previous Issue Keys:
      LSNBLDR-437

      Description

      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.

      https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=Lorem+ipsum+dolor+sit+amet%2C+consectetur+adipiscing+elit.+Ut+feugiat+eros+non+ligula+vehicula%2C+pretium+consequat+turpis+ornare.+Integer+mollis+tellus+sit+amet+ullamcorper+volutpat.+Nunc+est+nulla%2C+convallis+sed+nisi+vel%2C+hendrerit+scelerisque+justo+nullam.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hedrick Charles Hedrick
                  Reporter:
                  jonespm Matthew Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code