Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8887

Syntax of datasource name is not validated in VA Publisher

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: EJBCA 7.4.0
    • Fix Version/s: None
    • Component/s: CA GUI
    • Labels:
    • Issue discovered during:
      Jenkins

      Description

      The syntax of the datasource name is not validated in Validation Authority Publisher.

      This causes a test failure in EcaQa33_PublishersManagement.stepF_invalidVaPublisherDataSource

      org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //*[@id='messages']//li[@class='errorMessage'] (tried for 10 second(s) with 500 MILLISECONDS interval)
      	at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:82)
      	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
      	at org.ejbca.webtest.helper.BaseHelper.waitForElementBecomeVisibleByLocator(BaseHelper.java:871)
      	at org.ejbca.webtest.helper.BaseHelper.findElement(BaseHelper.java:101)
      	at org.ejbca.webtest.helper.BaseHelper.assertErrorMessageAppears(BaseHelper.java:910)
      	at org.ejbca.webtest.helper.PublisherHelper.assertHasErrorMessage(PublisherHelper.java:193)
      	at org.ejbca.webtest.scenario.EcaQa33_PublishersManagement.stepF_invalidVaPublisherDataSource(EcaQa33_PublishersManagement.java:124)
      Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.xpath: //*[@id='messages']//li[@class='errorMessage']
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z'
      System info: host: '403abdcc9273', ip: '172.24.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.0-7-amd64', java.version: '1.8.0_232'
      Driver info: driver.version: unknown
      	at org.openqa.selenium.support.ui.ExpectedConditions.lambda$findElement$0(ExpectedConditions.java:882)
      	[...]
      	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:208)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              samuel Samuel Lidén Borell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified