Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-25680

Forced refreshing of browser prevents login using different account providers

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 4.5.3.AM2
    • 4.5.3.AM1
    • openshift
    • None
    • merged

    Description

      Condition test BrowserContainsText is not stable for pages where JS is loading data after page is loaded. G.e. redirecting OSIO login page using different account provider (jboss developer) results in refreshing already loaded page (Red Hat login page) instead of refreshing page for which there was a redirection attempt (jboss developer). In case of trying to set URL in code validity of page is lost (most likely because CSFR token is originally sent with redirecting using JS .click() ).
      Solution imo can be by override method arguments to add
      private boolean refresh; with
      public BrowserContainsText(String url, String text, boolean refresh)

      { ... }

      where page refresh will happen only when by default refresh=true .
      PR in progress..

      Attachments

        Issue Links

          Activity

            People

              vprusa Vojtech Prusa (Inactive)
              vprusa Vojtech Prusa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: