Skip to content

Revert "Fix the startup error log with FileUploadExecutorManager"#4502

Closed
madurangasiriwardena wants to merge 1 commit into4.12.xfrom
revert-4495-error-log
Closed

Revert "Fix the startup error log with FileUploadExecutorManager"#4502
madurangasiriwardena wants to merge 1 commit into4.12.xfrom
revert-4495-error-log

Conversation

@madurangasiriwardena
Copy link
Member

Reverts #4495

@coderabbitai
Copy link

coderabbitai bot commented Feb 20, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch revert-4495-error-log

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment on lines +254 to +259
Servlet fileUploadServlet;
if (isLocalTransportMode) {
fileUploadServlet = new FileUploadServlet(context, serverConfigContext, webContext);
} else {
fileUploadServlet = new FileUploadServlet(context, clientConfigContext, webContext);
}

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 1

Suggested change
Servlet fileUploadServlet;
if (isLocalTransportMode) {
fileUploadServlet = new FileUploadServlet(context, serverConfigContext, webContext);
} else {
fileUploadServlet = new FileUploadServlet(context, clientConfigContext, webContext);
}
Servlet fileUploadServlet;
if (isLocalTransportMode) {
log.debug("Creating FileUploadServlet with server configuration context for local transport mode");
fileUploadServlet = new FileUploadServlet(context, serverConfigContext, webContext);
} else {
log.debug("Creating FileUploadServlet with client configuration context");
fileUploadServlet = new FileUploadServlet(context, clientConfigContext, webContext);
}

Comment on lines 260 to 262
Dictionary<String, String> fileUploadServletProperties = new Hashtable<>();
fileUploadServletProperties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN,
"/carbon/fileupload/*");

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 2

Suggested change
Dictionary<String, String> fileUploadServletProperties = new Hashtable<>();
fileUploadServletProperties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN,
"/carbon/fileupload/*");
Dictionary<String, String> fileUploadServletProperties = new Hashtable<>();
fileUploadServletProperties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN,
"/carbon/fileupload/*");
log.info("Registering FileUploadServlet with pattern: /carbon/fileupload/*");

Comment on lines 71 to 73
public void init(ServletConfig servletConfig) throws ServletException {
this.servletConfig = servletConfig;
try {

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 3

Suggested change
public void init(ServletConfig servletConfig) throws ServletException {
this.servletConfig = servletConfig;
try {
this.servletConfig = servletConfig;
try {
log.info("Initializing FileUploadServlet for web context: " + webContext);

Comment on lines +75 to +76
//Registering FileUploadExecutor Manager as an OSGi service
bundleContext.registerService(FileUploadExecutorManager.class.getName(), fileUploadExecutorManager, null);

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 4

Suggested change
//Registering FileUploadExecutor Manager as an OSGi service
bundleContext.registerService(FileUploadExecutorManager.class.getName(), fileUploadExecutorManager, null);
//Registering FileUploadExecutor Manager as an OSGi service
bundleContext.registerService(FileUploadExecutorManager.class.getName(), fileUploadExecutorManager, null);
log.debug("FileUploadExecutorManager registered as OSGi service successfully");

Copy link

@wso2-engineering wso2-engineering bot left a comment

Choose a reason for hiding this comment

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

AI Agent Log Improvement Checklist

⚠️ Warning: AI-Generated Review Comments

  • The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
  • Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.

✅ Before merging this pull request:

  • Review all AI-generated comments for accuracy and relevance.
  • Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
Comment Accepted (Y/N) Reason
#### Log Improvement Suggestion No: 1
#### Log Improvement Suggestion No: 2
#### Log Improvement Suggestion No: 3
#### Log Improvement Suggestion No: 4

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.

1 participant