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

Bugfix KNOWAGE-8103 #884

Closed

Conversation

BojanSovticEngIT
Copy link
Contributor

Bugfix https://production.eng.it/jira/browse/KNOWAGE-8103

Files changed:

  • knowagedao/src/main/java/it/eng/spagobi/utilities/JSError.java

Note:

  • knowage-core/src/main/java/it/eng/spagobi/api/v2/ExportersResource.java seems to be fixed 6 months ago

Fixed In knowagedao/src/main/java/it/eng/spagobi/utilities/JSError.java
knowage-core/src/main/java/it/eng/spagobi/api/v2/ExportersResource.java seems to be fixed 6 months ago
@@ -79,7 +79,7 @@ public String toString() {
private static String getMessage(String key, String... args) {
String msg = MessageBuilderFactory.getMessageBuilder().getMessage(key);
if (args.length > 0) {
msg = MessageFormat.format(msg, args);
msg = String.format(Locale.getDefault(), msg, (Object[]) args);

Choose a reason for hiding this comment

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

why using java.util.Locale.getDefault() ?
In my opinion this is a false positive, since msg is not really depending on user inputs

@BojanSovticEngIT
Copy link
Contributor Author

knowagedao/src/main/java/it/eng/spagobi/utilities/JSError.java was false positive

@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants