Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Can't access to a device out of the 1st page #601

Closed
adcoly opened this issue Apr 15, 2022 · 1 comment · Fixed by #664
Closed

Bug: Can't access to a device out of the 1st page #601

adcoly opened this issue Apr 15, 2022 · 1 comment · Fixed by #664
Assignees
Labels
bug Something isn't working
Milestone

Comments

@adcoly
Copy link

adcoly commented Apr 15, 2022

Expected Behavior

I click on the button to access to the 2nd page of the device list and I should see the devices listed in there.

Current Behavior

The blue loading bar load endlessly and I can't access to my 11th sensor.

Context (Environment)

Portal version: 1.0.8.50
LoRaWAN Stack version: 2.0.0

Logs

image

@adcoly adcoly added the bug Something isn't working label Apr 15, 2022
@hocinehacherouf hocinehacherouf added this to the S20 milestone Apr 19, 2022
@Sben65 Sben65 moved this to :pencil: Todo in IoT Hub Portal Apr 19, 2022
@Sben65 Sben65 modified the milestones: S20, S21 Apr 22, 2022
@hocinehacherouf
Copy link
Contributor

The next page uri (returned by api) is always null, due to the call to Url.RouteUrl():

nextPage = Url.RouteUrl(new UrlRouteContext
{
RouteName = nameof(GetItems),
Values = new
{
continuationToken = result.NextPage,
searchText,
searchState,
searchStatus,
pageSize
}
});

This issue is simillar to dotnet/aspnetcore#14877

A workaround solution is to return directly the continuation token as a replacement of the generated uri.

@hocinehacherouf hocinehacherouf moved this from :pencil: Todo to :construction: In Progress in IoT Hub Portal Apr 25, 2022
@hocinehacherouf hocinehacherouf modified the milestones: S21, S22 Apr 29, 2022
@Sben65 Sben65 linked a pull request May 4, 2022 that will close this issue
9 tasks
Sben65 added a commit that referenced this issue May 5, 2022
Sben65 added a commit that referenced this issue May 5, 2022
Sben65 added a commit that referenced this issue May 5, 2022
* fix #601

* fix unit test

* update deviceControllerTest

* update iotEdgeDeviceList

* update test

* fix #601

* update test

* litle fix
@Sben65 Sben65 moved this from :construction: In Progress to :rocket: Ready in IoT Hub Portal May 5, 2022
@kbeaugrand kbeaugrand reopened this May 5, 2022
@kbeaugrand kbeaugrand mentioned this issue May 5, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🚀 Ready
Development

Successfully merging a pull request may close this issue.

4 participants