Welcome, Guest
Username: Password: Remember me

TOPIC: Null reference when changing password of webapp

Null reference when changing password of webapp 2 months 1 week ago #3085

Version: 2.8.6 f2

(Also tested on a fresh project)

When creating a web app, if you change the password that says "change_this", when clicking on Refresh or New after validating the web app, it returns "Object reference not set to an instance of an object".

Commenting out the entire "wrong password" (the following code) check of the web app makes that error to not appear:
if (LocalizationPassword!="change_this" && (action=="GetSpreadsheetList" || action=="NewSpreadsheet" || action=="SetLanguageSource") &&
     e!==undefined && e.parameters.password!=LocalizationPassword)
  {
      return ContentService.createTextOutput("Wrong Password").setMimeType(ContentService.MimeType.TEXT);
  }
Last Edit: 2 months 1 week ago by BinarySouls.
The administrator has disabled public write access.

Null reference when changing password of webapp 2 months 1 week ago #3086

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1112
  • Thank you received: 234
  • Karma: 68
Hi,
Changing the password feature requires 2.8.7b3 or higher.
inter-illusion.com/forum/i2-localization...ty?limitstart=0#3064

That version can be downloaded from the beta folder. I plan on uploading it to the AssetStore by the end of the week.
In the meantime, the password shouldn't be changed in the WebService (i.e. it should be kept as "change_this" so that it gets ignored).

I understand that's confusing, so I just placed a comment in the WebService to avoid further confusion until 2.8.7 is in the AssetStore.

Hope that helps,
Frank
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.
The following user(s) said Thank You: BinarySouls
Time to create page: 0.205 seconds
Colors