v1.13 ISSUE: Now Unable to Login when hosting at subdirectory

508
7
12-20-2023 06:26 PM
JoshGore
New Contributor III

Following the notes at step 9 of the install guide we have been hosting Experience Builder at a subdirectory behind our proxy. https://developers.arcgis.com/experience-builder/guide/install-guide/
In v1.13 this appears to be broken - login no longer works (stuck at the page subdirectory/page/set-portalurl with the ExB loading icon but no form).

The following error is thrown:

index.js:1 Error: Should signIn
    at QS.failedToInitSession (index.js:2:483193)
    at QS.<anonymous> (index.js:2:483026)
    at Generator.next (<anonymous>)
    at a (index.js:2:478493)
0 Kudos
7 Replies
JeffreyThompson2
MVP Regular Contributor

Are you on SSO? There is a known bug preventing SSO users from logging in to 1.13.

ExB Dev Edition - Enterprise Login - Esri Community

GIS Developer
City of Arlington, Texas
0 Kudos
JoshGore
New Contributor III

Thanks but nope - just using standard ArcGIS login. If we run ExB without the path parameter works fine. Have also tested clearing storage / using incognito.
Have also tested with signin-info.json present and not present.

0 Kudos
JoshGore
New Contributor III

The cause of this issue appears to be some regex in the "initSession" function (looking at the compiled jimu-core/index.js). 
Regex:

 

                        initSession() {
                            return XS(this, void 0, void 0, (function*() {
                                const e = window.location.pathname;
                                if (/^\/page\/set-portalurl/.test(e) || /^\/page\/landing/.test(e))
                                    return Promise.resolve();

 

Will only match /page/set-portalurl, not /[path]/page/set-portal.

@Junshan_Liu could this be considered / patched?

 


@JoshGore wrote:

Following the notes at step 9 of the install guide we have been hosting Experience Builder at a subdirectory behind our proxy. https://developers.arcgis.com/experience-builder/guide/install-guide/
In v1.13 this appears to be broken - login no longer works (stuck at the page subdirectory/page/set-portalurl with the ExB loading icon but no form).

The following error is thrown:

 

index.js:1 Error: Should signIn
    at QS.failedToInitSession (index.js:2:483193)
    at QS.<anonymous> (index.js:2:483026)
    at Generator.next (<anonymous>)
    at a (index.js:2:478493)

 




0 Kudos
Junshan_Liu
Occasional Contributor

Hi @JoshGore we'll take a look at this issue soon and check whether we can patch it.

0 Kudos
JoshGore
New Contributor III

perfect thanks!

0 Kudos
JoshGore
New Contributor III

this works!

0 Kudos