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

web.xml error on login authentication scheme

    XMLWordPrintable

Details

    • Hide

      create web.xml w/out one of the predefined login schemes.

      Show
      create web.xml w/out one of the predefined login schemes.
    • Workaround Exists
    • Hide

      The only available workaround is modifying locally configuration file org.jboss.tools.jst.web_X.Y.Z.jar/meta/strutswebapp.meta (note: this file is packed in JAR)

      Find in it text

      <XModelAttribute PROPERTIES="save=always" default="BASIC"
      name="auth-method" xmlname="auth-method.#text">
      <Constraint loader="List">
      <value name="BASIC"/>
      <value name="DIGEST"/>
      <value name="FORM"/>
      <value name="CLIENT-CERT"/>
      </Constraint>
      <Editor name="List"/>
      </XModelAttribute>

      and change it to

      <XModelAttribute PROPERTIES="save=always" default="BASIC"
      name="auth-method" xmlname="auth-method.#text">
      <Constraint loader="ListString">
      <value name="BASIC"/>
      <value name="DIGEST"/>
      <value name="FORM"/>
      <value name="CLIENT-CERT"/>
      </Constraint>
      <Editor name="ListString"/>
      </XModelAttribute>

      that is, constraint and editor name should be "ListString" instead of "List".

      Show
      The only available workaround is modifying locally configuration file org.jboss.tools.jst.web_X.Y.Z.jar/meta/strutswebapp.meta (note: this file is packed in JAR) Find in it text <XModelAttribute PROPERTIES="save=always" default="BASIC" name="auth-method" xmlname="auth-method.#text"> <Constraint loader="List"> <value name="BASIC"/> <value name="DIGEST"/> <value name="FORM"/> <value name="CLIENT-CERT"/> </Constraint> <Editor name="List"/> </XModelAttribute> and change it to <XModelAttribute PROPERTIES="save=always" default="BASIC" name="auth-method" xmlname="auth-method.#text"> <Constraint loader="ListString"> <value name="BASIC"/> <value name="DIGEST"/> <value name="FORM"/> <value name="CLIENT-CERT"/> </Constraint> <Editor name="ListString"/> </XModelAttribute> that is, constraint and editor name should be "ListString" instead of "List".

    Description

      In problems view we get the following error: 'Value should be one of BASIC, DIGEST, FORM, CLIENT-CERT', because we have a custom login module.

      According to XSD 9http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd) it states the value of <auth-method> within element <login-config> must be : BASIC, DIGEST, FORM, CLIENT-CERT or a vendor specific authentication scheme.

      We are using a vendor specfiic authentication scheme, and still get this red-x error in the problems view, for the project, and in the editor.

      I have turned off all validations of the IDE (as I can tell), and I still get this error.

      How do I disable this error, since our web.xml appears to be valid with the XSD.

      If there is a known workaround, please let me know.

      <xsd:complexType name="auth-methodType">
      <xsd:annotation>
      <xsd:documentation>

      The auth-methodType is used to configure the authentication
      mechanism for the web application. As a prerequisite to
      gaining access to any web resources which are protected by
      an authorization constraint, a user must have authenticated
      using the configured mechanism. Legal values are "BASIC",
      "DIGEST", "FORM", "CLIENT-CERT", or a vendor-specific
      authentication scheme.

      Used in: login-config

      </xsd:documentation>
      </xsd:annotation>

      <xsd:simpleContent>
      <xsd:restriction base="javaee:string"/>
      </xsd:simpleContent>
      </xsd:complexType>

      Attachments

        Issue Links

          Activity

            People

              scabanovich Viacheslav Kabanovich (Inactive)
              buesing Neill Buesing (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: