Select to view content in your preferred language

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

1303
8
12-20-2023 06:26 PM
JoshGore
Occasional Contributor

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)
ArcGIS Experience Builder enables you to create web apps and pages without coding. This video introduces ArcGIS Experience Builder and how you can maximize its wide array of capabilities. Learn more: http://ow.ly/CK8R50FUTaP ...
0 Kudos
8 Replies
JeffreyThompson2
MVP Frequent 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
Occasional Contributor

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
Occasional Contributor

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
Frequent Contributor

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

0 Kudos
JoshGore
Occasional Contributor

perfect thanks!

0 Kudos
Junshan_Liu
Frequent Contributor
0 Kudos
JoshGore
Occasional Contributor

this works!

0 Kudos
rcGIS
by
Frequent Contributor

If you are also finding this post some months later, an alternative to the mentioned patch in v1.13 is to upgrade to v1.14; I tested and it is resolved in v1.14.

0 Kudos