Developer forum

Forum » Development » Problem with generating passwords

Problem with generating passwords

Anders Ebdrup
Reply

Hi DW,

 

I experience some random problem with generating passwords when importing user. I get this error:

 

Job Failed with the following message: Index was outside the bounds of the array.

 

I have located the error to this code from Base.vb:

 

            For Each ch As Char In newPwd.ToCharArray()
                If punctuations.Contains(ch) Then
                    Dim rndIndex = CInt(Int((alphabet.Length * Rnd()) + 1))
                    newPwd = newPwd.Replace(ch, alphabet(rndIndex))
                End If
            Next

 

Best regards, Anders


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Good find; I witnessed the same behavior where sometimes the user import fails and sometimes it works, without making changes to the job, the source data or XSLT files. This surely would explain it...

Imar

 
Jonas Krarup Dam
Reply

Hi Anders,

Well spotted - It is already registed as a bug, and will be fixed in the current sprint, and included in an upcomming hotfix.

I have added a reference to this thread, so you will be notified here when the hotfix is released.

/Jonas

 
Andrey Kozachuk
Reply

Hello,

I am using version 8.6.1.16 and have exactly the same issue.

Which version should I use to get it fixed?

 
Nicolai Høeg Pedersen
Reply

It should be in 8.6.1.19

BR Nicolai

 
Andrey Kozachuk
Reply

Thanks, Nicolai, I have updated to 8.6.1.30, now it works fine.

 

You must be logged in to post in the forum