Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-17439

IE object doesn't support property or method startsWith

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.9.0, 3.12.1
    • Fix Version/s: 3.13.0
    • Component/s: UI
    • Labels:
      None

      Description

      As already discovered in NEXUS-16454, IE 11 does not support startsWith in javascript.

      There is another spot in our codebase that uses startsWith

      https://github.com/sonatype/nexus-internal/blob/f5448f8748a118451447f8e74dc7159daaa4688a/components/nexus-rapture/src/main/resources/static/rapture/NX/controller/State.js#L443

      Customers are seeing this in the UI as : 

       
      The code in the 3.9.0-01 version is

       

          reloadWhenServerIdChanged: function(a, b) {
              if (b && (a !== b) && !a.startsWith("ignore")) {
                  NX.Dialogs.showInfo("Server restarted", "Application will be reloaded as server has been restarted", {
                      fn: function() {
                          NX.global.location.reload()
                      }
                  });
                  return true
              }
              return false
          }
      

       

       

        Attachments

          Activity

            People

            Assignee:
            mpiggott Matthew Piggott
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Team:
            Nexus - UX
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title