ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
35 stars 3 forks source link

The supplied URL is not local #3448

Closed DataTraveler1 closed 2 months ago

DataTraveler1 commented 3 months ago

Version

5.0.0-betaX

Severity

Medium

Environment

msi

Steps to Reproduce

The navigation can fail sometimes when repeatedly clicking around the notifications area as seen in the attached video. PSU log also attached.

Issue3448.log

The end-user will be presented with the below error message and unable to proceed with navigating.

The supplied URL is not local. A URL with an absolute path is considered local if it does not have a host/authority part. URLs using virtual paths ('~/') are also local.

The PSU log includes the below message

[ERR] Navigation failed when changing the location to /login?returnUrl=admin/platform/notifications System.Threading.Tasks.TaskCanceledException: A task was canceled.

Expected behavior

Navigation requests should queue if the server is busy

Actual behavior

Navigation requests can be rejected if the server is busy

Additional Environment data

Not sure if this is relevant, the PSU environment in the video uses Windows Authentication successfully, however the workstation shown in the video is not domain joined but successfully negotiates when challenged for domain logon.

Screenshots/Animations

Issue3448a

DataTraveler1 commented 3 months ago

I have determined that this issue can occur whether the audience workstation is domain joined or not. The issue seems to be reproducible by having Windows Authentication enabled. If Windows Authentication is disabled, the problem goes away.

DataTraveler1 commented 3 months ago

@adamdriscoll - The problem in this scenario is worse then I understood. Once this scenario occurs, the PSU server will fail to deliver navigation requests to all clients not just the one shown in the video but other fully domain-joined workstations will also fail when browsing the PSU node. Restarting the PSU service on the node restores service.

adamdriscoll commented 2 months ago

Thanks for all the details. I'll dig into it.

adamdriscoll commented 2 months ago

@DataTraveler1 - I can reproduce this.