NPE during upgrade from 9.4.7 -> 10.2.0 with custom authenticator (OD-1775)
andrzej opened 2 years ago

During upgrade from version 9.4.7 to version 10.2.0 NullPointerException is being thrown in line 6220 of DataMigrator.java (method migrate156). Most likely userSearchBaseElement variable is null in our case, as our authenticator plugin is not using userSearchBase property at all. It is not possible to fix that by modification of Settings.xml as it fails to load as our authenticator class is missing that field.

Would it be possible to make this following part of the code conditional?, ie. in the following way:

var userSearchBaseElement = valueElement.element("userSearchBase");
if (userSearchBaseElement != null) {
    valueElement.addElement("userSearchBases").addElement("string").setText(userSearchBaseElement.getText().trim());
    userSearchBaseElement.detach();
}

it should make upgrade of this field executed only if this field actually exists.

  • OneDev changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 2 years ago

    State changed as code fixing the issue is committed (61528cbc)

  • OneDev changed state to 'Released' 2 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 2 years ago

    State changed as build #4767 is successful

issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
10.2.0, 10.1.1
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-1775
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover