SSL in Web App Builder

5894
20
Jump to solution
02-09-2016 07:42 AM
Syvertson
Occasional Contributor III

Hello.

I have just created an application with web app builder (This is using portal, not AGOL, and using the "Create Application using Web App Builder" in the portal)  Immediately we had errors saying that access was forbidden.  After a day or so, I realized that the problem is that the app builder creates a URL that is not SSL, and I have my web server set to only accept SSL.  The temp solution is to just add the "https://" to the URL in the address bar after it gives one that won't work.

How do I get the app builder to give me a good address using https from the start.  I know it must be able to be changed in the settings somewhere, but where???

Thanks.

Matt Syvertson

Tags (2)
0 Kudos
20 Replies
MichaelRobb
Occasional Contributor III

That doesnt look the same as what I have running...

Ive attached my document...

This of course, is not needed... (as per our discussion below)...

0 Kudos
MichaelRobb
Occasional Contributor III

shouldnt matter, and this has nothing to do with ArcGIS Server... have you implemented use of SSL ONLY on your portal yet? 

0 Kudos
Syvertson
Occasional Contributor III

Yes.  The portal will only allow SSL.  That is the problem.  portal won't accept anything else, yet the app builder creates a URL without it.  I tried to edit the URL and it looks like it takes it, but when I go back in, it reverts back.

0 Kudos
MichaelRobb
Occasional Contributor III

Hmm.. not sure.

I tried a new sample using portals App builder... both in Chrome and I.E.   both times, would flicker, oauth and redirect to HTTPS...

(not using URL Rewrite)...

0 Kudos
Syvertson
Occasional Contributor III

I noticed that there are no ESRI tech support or developers in this conversation yet.  Any ideas on this one ESRI?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Matthew,

   Alltough Geonet is frequented by esri staff at times, it is not a support option. You will have to contact esri technical support if you want an official response/resolution from esri staff.

0 Kudos
ChrisSmith7
Frequent Contributor

Matthew,

If you end-up needing support from Esri, would you mind adding the resolution info here as well in case someone else encounters this issue?

0 Kudos
Syvertson
Occasional Contributor III

Thanks to everyone's assistance.  I ended up opening up a tech support case, and found out that this is a known bug that is to be fixed in version 10.4.  Another bug showed up when I attempted to just change the URL (Which should be able to be done) in the App editor.  This bug will not save the changes.  Both bugs are listed below:

BUG-000088682: When a Portal for ArcGIS site is configured to use Secure Sockets Layer (SSL) only, ArcGIS Web AppBuilder applications are created through HTTP automatically and the URL cannot be updated.

This bug is marked as fixed in 10.4.

BUG-000091888: In Portal for ArcGIS 10.3.1, changes made to a web map application's URL do not persist after being saved.

This bug appears to be going through the review process still.  In the meantime, you can go through the workaround like we did on the phone:

  • Browse to the item's details page through My Content.
  • Copy the item ID from the URL.
  • Navigate to the ArcGIS Portal content directories using the item id.
    • For example: C:\arcgisportal\content\items\4b3a1b1a75cb495fbcb7f983624df263\esriinfo
  • Edit the iteminfo.xml file within the esriinfo folder for that item and change the URL to include https instead of http.
  • In Portal, you can now change the application's URL; all changes will now be saved.
JoeBryant2
Occasional Contributor II

I'm having the same issues! Let me see if this fixes it.

0 Kudos
MichaelRobb
Occasional Contributor III

More than likely they would run into the same issue that I have... Unable to duplicate the issue.