Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFCORE-6891] Remove support for parsing domain management schemas prior to urn:jboss:domain:1.7 #6069

Merged
merged 3 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ transaction.log
*.swp
/.gitk-tmp.*
atlassian-ide-plugin.xml
# VSCode Files
.vscode
# temp files
*~
# maven versions plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3782,4 +3782,16 @@ OperationFailedRuntimeException capabilityAlreadyRegisteredInContext(String capa
@LogMessage(level = WARN)
@Message(id = 512, value = "No resource exists at address '%s'. Ignoring the remove opreation.")
void removingUnexistingResource(String address);

/**
* Creates an exception indicating a namespace which is no longer supported has been encountered.
*
* @param name the fully qualified unexpected element name.
* @param location the location of the error.
*
* @return a {@link XMLStreamException} for the error.
*/
@Message(id = 513, value = "The XML namespace of %s is no longer supported.")
XMLStreamException unsupportedNamespace(QName name, @Param Location location);

}
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ public static XMLStreamException unexpectedElement(final XMLExtendedStreamReader
ex);
}

/**
* Get an exception reporting an element using an unsupported namespace.
* @param reader the stream reader
* @return the exception
*/
public static XMLStreamException unsupportedNamespace(final XMLExtendedStreamReader reader) {
final XMLStreamException ex = ControllerLogger.ROOT_LOGGER.unsupportedNamespace(reader.getName(), reader.getLocation());

return new XMLStreamValidationException(ex.getMessage(),
ValidationError.from(ex, ErrorType.UNSUPPORTED_ELEMENT)
.element(reader.getName()),
ex);
}

/**
* Get an exception reporting an unexpected end tag for an XML element.
* @param reader the stream reader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public interface DomainControllerLogger extends BasicLogger {
@Message(id = 1, value = "Ignoring 'include' child of 'socket-binding-group' %s")
void warnIgnoringSocketBindingGroupInclude(Location location);

@LogMessage(level = Level.WARN)
@Message(id = 2, value = "Ignoring 'include' child of 'profile' %s")
void warnIgnoringProfileInclude(Location location);
//@LogMessage(level = Level.WARN)
//@Message(id = 2, value = "Ignoring 'include' child of 'profile' %s")
//void warnIgnoringProfileInclude(Location location);

/**
* Logs a warning message indicating an interruption awaiting the final response from the server, represented by the
Expand Down

Large diffs are not rendered by default.

Loading