manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CONNECTORS-1504) New UI does not allow to specify login sequence for session based access credentials in web connector
Date Wed, 25 Apr 2018 04:59:00 GMT

    [ https://issues.apache.org/jira/browse/CONNECTORS-1504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16451659#comment-16451659
] 

Karl Wright edited comment on CONNECTORS-1504 at 4/25/18 4:58 AM:
------------------------------------------------------------------

[~kishorekumar], I've verified that we've lost major functionality here.  The session-based
part of the form is completely missing in the display, although it appears that the code is
there:

{code}
<h5><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.SessionBasedAccessCredentials'))</strong></h5>
<div class="panel-group" id="accordion-session-access" role="tablist" aria-multiselectable="true">
  #set( $COUNTER = 0)
  #foreach($sessionAccessMap in $SESSIONACCESSMAPLIST)
    #set( $PREFIX = "scredential_" + $COUNTER )
  <div class="panel panel-default">
    <div class="panel-heading clearfix" role="tab" id="heading_$PREFIX">
      <h4 class="panel-title pull-left">
        <a role="button" data-toggle="collapse" data-parent="#accordion-session-access"
href="#collapse_$PREFIX" aria-expanded="true" aria-controls="collapse_$PREFIX">
          $Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.URLRegularExpression')):&nbsp;$Encoder.bodyEscape($sessionAccessMap["regexp"])
        </a>
      </h4>
      <div class="pull-right">
        <button class="btn btn-danger btn-xs" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.DeleteSessionAuthenticationUrlRegularExpression'))$foreach.count"
onclick='javascript:deleteSRegexp($COUNTER);'><i class="fa fa-minus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Delete'))</button>
        <input type="hidden" name="${PREFIX}_op" value="Continue"/>
        <input type="hidden" name="${PREFIX}_regexp" value="$Encoder.attributeEscape($sessionAccessMap["regexp"])"/>
      </div>
    </div>
    <div id="collapse_$PREFIX" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading_$PREFIX">
      <div class="panel-body">
        <h5><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.LoginPages'))</strong></h5>
    #set( $AUTHPAGECOUNTER = 0 )
    #set( $AUTHPAGEMAPLIST = $sessionAccessMap["authPageMapList"])
    #foreach($authPageMap in $AUTHPAGEMAPLIST)
      #set( $AUTHPAGEPREFIX = $PREFIX + "_" + $AUTHPAGECOUNTER)
        <div class="panel panel-default">
          <div class="panel-body">
            <div class="form-group">
              <button class="btn btn-danger btn-xs pull-right" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.DeleteLoginPage'))$foreach.count
for url regular expression #$AUTHPAGECOUNTER" onclick='javascript:deleteLoginPage($COUNTER,$AUTHPAGECOUNTER);'><i
class="fa fa-minus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Delete'))</button>
              <input type="hidden" name="${AUTHPAGEPREFIX}_op" value="Continue"/>
              <input type="hidden" name="${AUTHPAGEPREFIX}_regexp" value="$Encoder.attributeEscape($authPageMap["pageRegexp"])"/>
              <input type="hidden" name="${AUTHPAGEPREFIX}_type" value="$Encoder.attributeEscape($authPageMap["pageType"])"/>
            </div>
            <div class="form-group">
              <div class="row">
                <div class="col-md-6">
                  <label class="control-label">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.LoginURLRegularExpression'))</label>
                  <p class="form-control-static">$Encoder.bodyEscape($authPageMap["pageRegexp"])</p>
                </div>
                <div class="col-md-6">
                  <label class="control-label">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.PageType'))</label>
                  <p class="form-control-static">$authPageMap["pageType"]</p>
                </div>
              </div>
            </div>
            <div class="form-group">
              <div class="row">
                <div class="col-md-6">
                  <label class="control-label" for="${AUTHPAGEPREFIX}_matchregexp">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.FormNamelinkTargetRegularExpression'))</label>
                  <input class="form-control" type="text" size="30" name="${AUTHPAGEPREFIX}_matchregexp"
id="${AUTHPAGEPREFIX}_matchregexp" value="$Encoder.attributeEscape($authPageMap["matchRegexp"])"/>
                </div>
                <div class="col-md-6">
                  <label class="control-label" for="${AUTHPAGEPREFIX}_overridetargeturl">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.OverrideTargetURL'))</label>
                  <input class="form-control" type="text" size="30" name="${AUTHPAGEPREFIX}_overridetargeturl"
id="${AUTHPAGEPREFIX}_overridetargeturl" value="$Encoder.attributeEscape($authPageMap["overrideTargetURL"])"/>
                </div>
              </div>
            </div>
          </div>
      #if($authPageMap["pageType"] == "form")
          <h5 style="padding-left:15px;"><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.OverrideFormParameters'))</strong></h5>
          <ul class="list-group webcrawler-access-credentials">
            <li class="list-group-item">
              <div class="row">
                <div class="col-md-2"></div>
                <div class="col-md-4"><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.ParameterRegularExpression'))</strong></div>
                <div class="col-md-3"><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Value'))</strong></div>
                <div class="col-md-3"><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Password'))</strong></div>
              </div>
            </li>
        #set( $AUTHPARAMCOUNTER = 0)
        #set( $AUTHPAGEPARAMMAPLIST = $authPageMap["authPageParamMapList"] )
        #foreach($authPageParamMap in $AUTHPAGEPARAMMAPLIST)
          #set( $AUTHPARAMPREFIX = $AUTHPAGEPREFIX + "_" + $AUTHPARAMCOUNTER)
            <li class="list-group-item">
              <div class="row form-inline">
                <div class="col-md-2">
                  <button class="btn btn-danger btn-xs" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.DeleteParameter'))$foreach.count$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.ForLoginPage'))$AUTHPAGECOUNTER$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.ForCredential'))$COUNTER"
onclick='javascript:deleteLoginPageParameter($COUNTER,$AUTHPAGECOUNTER,$AUTHPARAMCOUNTER);'><i
class="fa fa-minus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Delete'))</button>
                  <input type="hidden" name="${AUTHPARAMPREFIX}_op" value="Continue"/>
                </div>
                <div class="col-md-4">
                  <div class="form-group">
                    <input class="form-control" type="text" size="30" name="${AUTHPARAMPREFIX}_param"
value="$Encoder.attributeEscape($authPageParamMap["param"])"/>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <input class="form-control" type="text" size="15" name="${AUTHPARAMPREFIX}_value"
value="$Encoder.attributeEscape($authPageParamMap["value"])"/>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <input class="form-control" type="password" size="15" name="${AUTHPARAMPREFIX}_password"
value="$Encoder.attributeEscape($authPageParamMap["password"])"/>
                  </div>
                </div>
              </div>
            </li>
          #set( $AUTHPARAMCOUNTER = $AUTHPARAMCOUNTER + 1)
        #end
        #if($AUTHPAGEPARAMMAPLIST.size() == 0)
            <li class="list-group-item list-group-item-warning">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.NoFormParametersSpecified'))</li>
        #end
            <li class="list-group-item">
              <div class="row">
                <div class="col-md-2">
                  <button class="btn btn-success btn-xs" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.AddParameterToLoginPage'))$AUTHPAGECOUNTER$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.ForCredential'))$COUNTER"
onclick='javascript:addLoginPageParameter($COUNTER,$AUTHPAGECOUNTER);'><i class="fa
fa-plus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Add'))</button>
                  <input type="hidden" name="${AUTHPAGEPREFIX}_loginparamcount" value="$AUTHPARAMCOUNTER"/>
                  <input type="hidden" name="${AUTHPAGEPREFIX}_loginparamop" value="Continue"/>
                </div>
                <div class="col-md-4">
                  <div class="form-group">
                    <input class="form-control" type="text" size="30" name="${AUTHPAGEPREFIX}_loginparamname"
value=""/>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <input class="form-control" type="text" size="15" name="${AUTHPAGEPREFIX}_loginparamvalue"
value=""/>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <input class="form-control" type="password" size="15" name="${AUTHPAGEPREFIX}_loginparampassword"
value=""/>
                  </div>
                </div>
              </div>
            </li>
          </ul>
      #end
        </div>
      #set( $AUTHPAGECOUNTER = $AUTHPAGECOUNTER + 1 )
    #end
        <div class="panel panel-default">
        <div class="panel-body">
          <div class="row">
            <div class="col-md-12">
              <div class="form-group">
                <div class="row">
                  <div class="col-md-4">
                    <label class="control-label" for="${PREFIX}_loginpageregexp">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.LoginURLRegularExpression'))</label>
                    <input class="form-control" type="text" size="30" name="${PREFIX}_loginpageregexp"
id="${PREFIX}_loginpageregexp" value=""/>
                  </div>
                  <div class="col-md-8">
                    <label class="control-label">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.PageType'))</label>
                    <div class="checkbox">
                      <label class="checkbox-inline"><input type="radio" name="${PREFIX}_loginpagetype"
value="form" checked=""/>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.FormName'))</label>
                      <label class="checkbox-inline"><input type="radio" name="${PREFIX}_loginpagetype"
value="link"/>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.LinkTarget'))</label>
                      <label class="checkbox-inline"><input type="radio" name="${PREFIX}_loginpagetype"
value="redirection"/>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.RedirectionTo'))</label>
                      <label class="checkbox-inline"><input type="radio" name="${PREFIX}_loginpagetype"
value="content"/>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.PageContent'))</label>
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group">
                <div class="row">
                  <div class="col-md-6">
                    <label for="${PREFIX}_loginpagematchregexp">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.FormNamelinkTargetRegularExpression'))</label>
                    <input class="form-control" type="text" size="30" name="${PREFIX}_loginpagematchregexp"
id="${PREFIX}_loginpagematchregexp" value=""/>
                  </div>
                  <div class="col-md-6">
                    <label for="${PREFIX}_loginpageoverridetargeturl">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.OverrideTargetURL'))</label>
                    <input class="form-control" type="text" size="30" name="${PREFIX}_loginpageoverridetargeturl"
id="${PREFIX}_loginpageoverridetargeturl" value=""/>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <button class="btn btn-success pull-right" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.AddLoginPageToCredential'))$foreach.count"
onclick='javascript:addLoginPage($COUNTER);'><i class="fa fa-plus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Add'))</button>
              <input type="hidden" name="${PREFIX}_loginpagecount" value="$AUTHPAGECOUNTER"/>
              <input type="hidden" name="${PREFIX}_loginpageop" value="Continue"/>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>
  </div>
    #set( $COUNTER = $COUNTER + 1)
  #end
</div>
{code}



was (Author: kwright@metacarta.com):
[~kishorekumar], I've verified that we've lost major functionality here.  The session-based
part of the form is completely in the display, although it appears that the code is there:

{code}
<h5><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.SessionBasedAccessCredentials'))</strong></h5>
<div class="panel-group" id="accordion-session-access" role="tablist" aria-multiselectable="true">
  #set( $COUNTER = 0)
  #foreach($sessionAccessMap in $SESSIONACCESSMAPLIST)
    #set( $PREFIX = "scredential_" + $COUNTER )
  <div class="panel panel-default">
    <div class="panel-heading clearfix" role="tab" id="heading_$PREFIX">
      <h4 class="panel-title pull-left">
        <a role="button" data-toggle="collapse" data-parent="#accordion-session-access"
href="#collapse_$PREFIX" aria-expanded="true" aria-controls="collapse_$PREFIX">
          $Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.URLRegularExpression')):&nbsp;$Encoder.bodyEscape($sessionAccessMap["regexp"])
        </a>
      </h4>
      <div class="pull-right">
        <button class="btn btn-danger btn-xs" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.DeleteSessionAuthenticationUrlRegularExpression'))$foreach.count"
onclick='javascript:deleteSRegexp($COUNTER);'><i class="fa fa-minus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Delete'))</button>
        <input type="hidden" name="${PREFIX}_op" value="Continue"/>
        <input type="hidden" name="${PREFIX}_regexp" value="$Encoder.attributeEscape($sessionAccessMap["regexp"])"/>
      </div>
    </div>
    <div id="collapse_$PREFIX" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading_$PREFIX">
      <div class="panel-body">
        <h5><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.LoginPages'))</strong></h5>
    #set( $AUTHPAGECOUNTER = 0 )
    #set( $AUTHPAGEMAPLIST = $sessionAccessMap["authPageMapList"])
    #foreach($authPageMap in $AUTHPAGEMAPLIST)
      #set( $AUTHPAGEPREFIX = $PREFIX + "_" + $AUTHPAGECOUNTER)
        <div class="panel panel-default">
          <div class="panel-body">
            <div class="form-group">
              <button class="btn btn-danger btn-xs pull-right" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.DeleteLoginPage'))$foreach.count
for url regular expression #$AUTHPAGECOUNTER" onclick='javascript:deleteLoginPage($COUNTER,$AUTHPAGECOUNTER);'><i
class="fa fa-minus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Delete'))</button>
              <input type="hidden" name="${AUTHPAGEPREFIX}_op" value="Continue"/>
              <input type="hidden" name="${AUTHPAGEPREFIX}_regexp" value="$Encoder.attributeEscape($authPageMap["pageRegexp"])"/>
              <input type="hidden" name="${AUTHPAGEPREFIX}_type" value="$Encoder.attributeEscape($authPageMap["pageType"])"/>
            </div>
            <div class="form-group">
              <div class="row">
                <div class="col-md-6">
                  <label class="control-label">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.LoginURLRegularExpression'))</label>
                  <p class="form-control-static">$Encoder.bodyEscape($authPageMap["pageRegexp"])</p>
                </div>
                <div class="col-md-6">
                  <label class="control-label">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.PageType'))</label>
                  <p class="form-control-static">$authPageMap["pageType"]</p>
                </div>
              </div>
            </div>
            <div class="form-group">
              <div class="row">
                <div class="col-md-6">
                  <label class="control-label" for="${AUTHPAGEPREFIX}_matchregexp">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.FormNamelinkTargetRegularExpression'))</label>
                  <input class="form-control" type="text" size="30" name="${AUTHPAGEPREFIX}_matchregexp"
id="${AUTHPAGEPREFIX}_matchregexp" value="$Encoder.attributeEscape($authPageMap["matchRegexp"])"/>
                </div>
                <div class="col-md-6">
                  <label class="control-label" for="${AUTHPAGEPREFIX}_overridetargeturl">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.OverrideTargetURL'))</label>
                  <input class="form-control" type="text" size="30" name="${AUTHPAGEPREFIX}_overridetargeturl"
id="${AUTHPAGEPREFIX}_overridetargeturl" value="$Encoder.attributeEscape($authPageMap["overrideTargetURL"])"/>
                </div>
              </div>
            </div>
          </div>
      #if($authPageMap["pageType"] == "form")
          <h5 style="padding-left:15px;"><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.OverrideFormParameters'))</strong></h5>
          <ul class="list-group webcrawler-access-credentials">
            <li class="list-group-item">
              <div class="row">
                <div class="col-md-2"></div>
                <div class="col-md-4"><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.ParameterRegularExpression'))</strong></div>
                <div class="col-md-3"><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Value'))</strong></div>
                <div class="col-md-3"><strong>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Password'))</strong></div>
              </div>
            </li>
        #set( $AUTHPARAMCOUNTER = 0)
        #set( $AUTHPAGEPARAMMAPLIST = $authPageMap["authPageParamMapList"] )
        #foreach($authPageParamMap in $AUTHPAGEPARAMMAPLIST)
          #set( $AUTHPARAMPREFIX = $AUTHPAGEPREFIX + "_" + $AUTHPARAMCOUNTER)
            <li class="list-group-item">
              <div class="row form-inline">
                <div class="col-md-2">
                  <button class="btn btn-danger btn-xs" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.DeleteParameter'))$foreach.count$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.ForLoginPage'))$AUTHPAGECOUNTER$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.ForCredential'))$COUNTER"
onclick='javascript:deleteLoginPageParameter($COUNTER,$AUTHPAGECOUNTER,$AUTHPARAMCOUNTER);'><i
class="fa fa-minus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Delete'))</button>
                  <input type="hidden" name="${AUTHPARAMPREFIX}_op" value="Continue"/>
                </div>
                <div class="col-md-4">
                  <div class="form-group">
                    <input class="form-control" type="text" size="30" name="${AUTHPARAMPREFIX}_param"
value="$Encoder.attributeEscape($authPageParamMap["param"])"/>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <input class="form-control" type="text" size="15" name="${AUTHPARAMPREFIX}_value"
value="$Encoder.attributeEscape($authPageParamMap["value"])"/>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <input class="form-control" type="password" size="15" name="${AUTHPARAMPREFIX}_password"
value="$Encoder.attributeEscape($authPageParamMap["password"])"/>
                  </div>
                </div>
              </div>
            </li>
          #set( $AUTHPARAMCOUNTER = $AUTHPARAMCOUNTER + 1)
        #end
        #if($AUTHPAGEPARAMMAPLIST.size() == 0)
            <li class="list-group-item list-group-item-warning">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.NoFormParametersSpecified'))</li>
        #end
            <li class="list-group-item">
              <div class="row">
                <div class="col-md-2">
                  <button class="btn btn-success btn-xs" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.AddParameterToLoginPage'))$AUTHPAGECOUNTER$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.ForCredential'))$COUNTER"
onclick='javascript:addLoginPageParameter($COUNTER,$AUTHPAGECOUNTER);'><i class="fa
fa-plus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Add'))</button>
                  <input type="hidden" name="${AUTHPAGEPREFIX}_loginparamcount" value="$AUTHPARAMCOUNTER"/>
                  <input type="hidden" name="${AUTHPAGEPREFIX}_loginparamop" value="Continue"/>
                </div>
                <div class="col-md-4">
                  <div class="form-group">
                    <input class="form-control" type="text" size="30" name="${AUTHPAGEPREFIX}_loginparamname"
value=""/>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <input class="form-control" type="text" size="15" name="${AUTHPAGEPREFIX}_loginparamvalue"
value=""/>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <input class="form-control" type="password" size="15" name="${AUTHPAGEPREFIX}_loginparampassword"
value=""/>
                  </div>
                </div>
              </div>
            </li>
          </ul>
      #end
        </div>
      #set( $AUTHPAGECOUNTER = $AUTHPAGECOUNTER + 1 )
    #end
        <div class="panel panel-default">
        <div class="panel-body">
          <div class="row">
            <div class="col-md-12">
              <div class="form-group">
                <div class="row">
                  <div class="col-md-4">
                    <label class="control-label" for="${PREFIX}_loginpageregexp">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.LoginURLRegularExpression'))</label>
                    <input class="form-control" type="text" size="30" name="${PREFIX}_loginpageregexp"
id="${PREFIX}_loginpageregexp" value=""/>
                  </div>
                  <div class="col-md-8">
                    <label class="control-label">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.PageType'))</label>
                    <div class="checkbox">
                      <label class="checkbox-inline"><input type="radio" name="${PREFIX}_loginpagetype"
value="form" checked=""/>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.FormName'))</label>
                      <label class="checkbox-inline"><input type="radio" name="${PREFIX}_loginpagetype"
value="link"/>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.LinkTarget'))</label>
                      <label class="checkbox-inline"><input type="radio" name="${PREFIX}_loginpagetype"
value="redirection"/>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.RedirectionTo'))</label>
                      <label class="checkbox-inline"><input type="radio" name="${PREFIX}_loginpagetype"
value="content"/>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.PageContent'))</label>
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group">
                <div class="row">
                  <div class="col-md-6">
                    <label for="${PREFIX}_loginpagematchregexp">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.FormNamelinkTargetRegularExpression'))</label>
                    <input class="form-control" type="text" size="30" name="${PREFIX}_loginpagematchregexp"
id="${PREFIX}_loginpagematchregexp" value=""/>
                  </div>
                  <div class="col-md-6">
                    <label for="${PREFIX}_loginpageoverridetargeturl">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.OverrideTargetURL'))</label>
                    <input class="form-control" type="text" size="30" name="${PREFIX}_loginpageoverridetargeturl"
id="${PREFIX}_loginpageoverridetargeturl" value=""/>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <button class="btn btn-success pull-right" type="button" title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.AddLoginPageToCredential'))$foreach.count"
onclick='javascript:addLoginPage($COUNTER);'><i class="fa fa-plus-circle fa-fw" aria-hidden="true"></i>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.Add'))</button>
              <input type="hidden" name="${PREFIX}_loginpagecount" value="$AUTHPAGECOUNTER"/>
              <input type="hidden" name="${PREFIX}_loginpageop" value="Continue"/>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>
  </div>
    #set( $COUNTER = $COUNTER + 1)
  #end
</div>
{code}


> New UI does not allow to specify login sequence for session based access credentials
in web connector
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CONNECTORS-1504
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1504
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Web connector
>    Affects Versions: ManifoldCF 2.7, ManifoldCF 2.8, ManifoldCF 2.9
>            Reporter: Markus Schuch
>            Assignee: Kishore Kumar
>            Priority: Major
>         Attachments: image-2018-04-24-21-38-29-476.png
>
>
> Create a web crawler repository connection and go to Access Credentials tab.
> Add a URL regular expression in the session based access credentials section.
> Expected behavior:
> It is possible to specify login page sequences in a form with a multitude of different
settings
> Actual behavior:
> The login page sequence form is missing completely
> This was introduced with the new UI and can be reproduced in every release > 2.6
> !image-2018-04-24-21-38-29-476.png|width=752,height=346!
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message