ironmansoftware / powershell-universal

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

Beta does not finish loading #2330

Closed Omzig closed 1 year ago

Omzig commented 1 year ago

Version

4.0.0-beta2 (4738132436)

Severity

Critical

Steps to Reproduce

upgrade to current version of beta 2.

it lost the /nestedName/ part of the urls

Expected behavior

200

Actual behavior

404

Additional Environment data

IIS: Nested

{
    "Kestrel": {
        "Endpoints": {
            "HTTP": {
                "Url": "http://*:5000"
            }
        },
        "RedirectToHttps": "false",
        "UseHttpSys": "false",
        "BasePath": "/Beta",
        "Hsts": {
            "MaxAgeDays": 365
        }
    },
    "ApplicationInsights": {
        "InstrumentationKey": ""
    },
    "AllowedHosts": "*",
    "CorsHosts": "",
    "Plugins": [
        "UniversalAutomation.LiteDBv5"
    ],
    "SystemLogPath": "%ProgramData%\\PowerShellUniversal\\systemLog.txt",
    "Data": {
        "RepositoryPath": "E:\\src\\psu\\Beta_data\\UniversalAutomation\\Repository",
        "ConnectionString": "filename=E:\\src\\psu\\Beta_data\\UniversalAutomation\\database.db;upgrade=true",
        "RunMigrations": true,
        "GitRemote": "",
        "GitUserName": "",
        "GitPassword": "",
        "GitBranch": "",
        "GitSyncBehavior": "TwoWay",
        "GitInitializeBehavior": "",
        "GitSyncInterval": "1",
        "ConfigurationScript": "",
        "Mode": "Manual"
    },
    "Api": {
        "OpenAPI": {
            "Name": "Endpoints",
            "Description": "Endpoints defined within the PowerShell Universal admin console.",
            "Url": "v2",
            "Version": "v2"
        },
        "Url": "/Beta",
        "GrpcPort": 0
    },
    "Authentication": {
        "Windows": {
            "Enabled": "false"
        },
        "WSFed": {
            "Enabled": "false",
            "MetadataAddress": "",
            "Wtrealm": "",
            "CallbackPath": "/auth/signin-wsfed",
            "Wreply": "",
            "UseTokenLifetime": true,
            "CorrelationCookieSameSite": ""
        },
        "OIDC": {
            "Enabled": "false",
            "CallbackPath": "/auth/signin-oidc",
            "ClientID": "",
            "ClientSecret": "",
            "Resource": "",
            "Authority": "",
            "ResponseType": "",
            "SaveTokens": "false",
            "CorrelationCookieSameSite": "",
            "UseTokenLifetime": true,
            "Scope": "openid profile groups",
            "GetUserInfo": false
        },
        "ClientCertificate": {
            "Enabled": "false"
        },
        "SessionTimeout": "25"
    },
    "Jwt": {
        "SigningKey": "PleaseUseYourOwnSigningKeyHere",
        "Issuer": "IronmanSoftware",
        "Audience": "PowerShellUniversal"
    },
    "UniversalAutomation": {
        "Queues": [],
        "JobHandshakeTimeout": 30,
        "JobDebugging": false,
        "ContinueJobOnServerStop": false
    },
    "UniversalDashboard": {
        "AssetsFolder": "E:\\src\\psu\\Beta_data\\PowerShellUniversal\\Dashboard",
        "DashboardStartupTimeout": 10
    },
    "Secrets": {
        "SecretStore": {
            "Password": "PSUSecretStore"
        },
        "Database": {
            "EncryptionKey": "=b0ywQA@VOSdr&R7an5g&XK6NVO%s4Tf"
        }
    },
    "ShowDevTools": false,
    "HideAdminConsole": false,
    "Profiling": false,
    "NodeName": ""
}

Visuals

image

adamdriscoll commented 1 year ago

Looking into this today...made some changes to routing yesterday and was going to look at nested IIS sites today anyways to see if we can avoid the whole "add a new link to the admin console and it doesn't work in nested sites unless we do that one special thing" problem.