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

Console/js error on nightly in i18n utils

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.0
    • Fix Version/s: 12.1, 19.0
    • Component/s: Reference
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide

      Open the debug console.
      You shouldn't see this (or other) errors on every page

      Show
      Open the debug console. You shouldn't see this (or other) errors on every page

      Description

      Seeing this error on every page on nightly. Not seeing it on 12. Not sure what change in nightly is causing this but something must not be merged or disabled? This might affect Sakai 12.

      Looks like it's trying to parse plain text as json.

      This is what's returned from getI18nProperties

      connection_manager_done=Done
      connection_manager_cancel_confirm=Are you sure you want to cancel your request to ''{displayName}''?
      connection_manager_cancel=Cancel Request
      connection_manager_pending=Pending Connections
      connection_manager_title=Connections
      connection_manager_result_count={count} search result for "{criteria}"
      connection_manager_backtoconnections=Back to My Connections
      connection_manager_accept=Accept
      connection_manager_ignore_confirm=Are you sure you want to ignore ''{displayName}''?
      connection_manager_remove=Remove Connection
      connection_manager_accept_confirm=Are you sure you want to accept ''{displayName}''?
      connection_manager_no_results=No results
      connection_manager_no_pending=You have no pending connections.
      connection_manager_connect=Connect
      connection_manager_results_count={count} search results for "{criteria}"
      connection_manager_no_current=You don't have any connnections yet. Search for people above to get started.
      connection_manager_current=My Connections
      connection_manager_search_text=Search for people ...
      connection_manager_remove_confirm=Are you sure you want to remove ''{displayName}''?
      connection_manager_connect_confirm=Are you sure you want to connect with ''{displayName}''?
      connection_manager_ignore=Ignore
      

      This is the error

      SyntaxError: Unexpected token c in JSON at position 0
          at JSON.parse (<anonymous>)
          at n.parseJSON (jquery.js:9011)
          at a.parseJSON (jquery-migrate.min.js?version=DEMO:2)
          at Xb (jquery.js:9335)
          at y (jquery.js:9789)
          at XMLHttpRequest.c (jquery.js:10311)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                maintenanceteam Core Team
                Reporter:
                jonespm Matthew Jones
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code