Update Caused Problem?

Since the update 7.0.15, it seems one of my page’s logic doesn’t work anymore? The page intailly displayed the current user’s information but since update, without any changes on my end, it no longer does this.

Application ID: 4EE0812B-BDCD-3B12-FFB8-AE2D10864700
Page: Retrieval

Regards,

Hello, @SomeOneBeLaggin.

Can you please describe the detailed steps to reproduce this issue?

Regards, Nikita.


For simplicity sake, I’ve attached a video recording of navigating the website to get to the page described. The video shows this process, that at the end of the navigation, the page is blank. It then shows what the page should be displaying, as it did previously using the same logic before the Backendless Update.

If you would also like to recreate, here is the same log in details I’ve created for an example user, that is also used in the video:
Email: John.Smith@email.com
Password: John123

Regards.

Hi @SomeOneBeLaggin

We recently cleaned up the app URL, now if there is no data the URL will not contain data={}
In your app logic relays to the query params and since now there is no such parameter your custom code returns null and then it tries to read a property of null.

to fix the issue you have two options:

  1. before getting the para1 property make sure you get it of non-null value
  2. get the para1 value from the PageData context block since all query params are already there

Regards,
Vlad

I think there might be an miss understanding between us and the error within the logic, so I’ll try explain further in case.

To purpose of the para1 is to be implemented into a generated URL, that is created by pressing the Generate URL Link to Page button at the bottom of the same Retrieval page. The link created is for non users, and para1’s propertry is only needed when the user isn’t logged in to display the objectid related information imbedded within the link created the user themselves.

Here is an example of the link and result of an external user using the link, without logging in, being able to see the information of the user who created the link.
https://favorednerve.backendless.app/api/files/ui-builder/containers/default/index.html?page=Retrieval&data={“para1”%3A"EE50ED06-6F37-46FA-A14E-74E497ACAF86"}

The issue I am facing, that when a currently logged in user enters the page, the logic of Get Current User's Role is meant to and used to display related information through current user’s objectid.

The logic should be being used due to the if statement of if current user's role not= null, then display current user’s information, which isn’t working, only the if=null is, as that displays the information from the link.

Regards.

because of the error I described above it can not reach the code, if you open the browser dev tool you can see such errors