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-7116] Remove ModuleIdentifier from Extension handling #6304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bstansberry
Copy link
Contributor

@wildfly wildfly deleted a comment from wildfly-ci Jan 14, 2025
@wildfly wildfly deleted a comment from wildfly-ci Jan 14, 2025
@wildfly wildfly deleted a comment from wildfly-ci Jan 14, 2025
@wildfly wildfly deleted a comment from wildfly-ci Jan 14, 2025
@wildfly wildfly deleted a comment from wildfly-ci Jan 14, 2025
@wildfly wildfly deleted a comment from wildfly-ci Jan 14, 2025
@wildfly wildfly deleted a comment from wildfly-ci Jan 14, 2025
@bstansberry bstansberry removed the 28.x label Jan 17, 2025
@@ -3809,4 +3809,7 @@ OperationFailedRuntimeException capabilityAlreadyRegisteredInContext(String capa
@LogMessage(level = WARN)
@Message(id = 517, value = "There are multiple Parallel Boot Operations.")
void multipleParallelBootOperation();

@Message(id = 518, value = "Resource /extension=%s uses a non-canonical module name; use the canonical form %s")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, I would add in the message a short hint about what a canonical form is. Something like:

"Resource /extension=%s uses a non-canonical module name; use the canonical form %s. The canonical representation includes slot information in the module name if the slot is not 'main'"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment on lines 214 to 215
// This isn't a full canonicalization, but extension module names are unlikely to be non-canonical
// in any way beyond maybe a trailing ":main". So just check for and strip any trailing ":main"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Did you consider adding a ModuleIdentifierUtil version to the wildfly-controller-client module so we can have the utility available on the client code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hadn't no, but I updated this to move the main code to controller-client and have the controller module class just delegate to the client class.

I wouldn't want to do too much of this kind of thing, as its kind of an edge case for controller-client. But after almost 15 years we have hardly any of these, so I think it's ok. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants