[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-8472) web.xml error on login authentication scheme
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Tue Jul 5 14:41:23 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-8472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov updated JBIDE-8472:
----------------------------------
Workaround Description:
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".
was:
The only available workaround is modifying locally configuration file org.jboss.tools.jst.web/resources/meta/strutswebapp.meta
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".
> web.xml error on login authentication scheme
> --------------------------------------------
>
> Key: JBIDE-8472
> URL: https://issues.jboss.org/browse/JBIDE-8472
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: jsp/jsf/xml source editing
> Affects Versions: 3.2.0.Final
> Environment: Windows 32bit
> Reporter: Neil Buesing
> Assignee: Viacheslav Kabanovich
> Labels: web_xml
> Fix For: 3.2.1.M1, 3.3.0.M1
>
>
> 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>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list