Skip to content

FINERACT-1910: Added pagination & sorting support in datatables/query#3076

Closed
shyam1s15 wants to merge 1 commit into
apache:developfrom
shyam1s15:JIRA-1910-solution
Closed

FINERACT-1910: Added pagination & sorting support in datatables/query#3076
shyam1s15 wants to merge 1 commit into
apache:developfrom
shyam1s15:JIRA-1910-solution

Conversation

@shyam1s15
Copy link
Copy Markdown

Description

Describe the changes made and why they were made.
requires some review by maintainers, please tell if there is room for improvements, thanks

Ignore if these details are present on the associated Apache Fineract JIRA ticket(#1284).

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Write the commit message as per https://github.com/apache/fineract/#pull-requests

  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

  • Create/update unit or integration tests for verifying the changes made.

  • Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes

  • Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

@shyam1s15 shyam1s15 changed the title Added pagination & sorting support in datatables/query FINERACT-1910: Added pagination & sorting support in datatables/query Mar 27, 2023
@vidakovic
Copy link
Copy Markdown
Contributor

@shyam1s15 please squash your commits into one; the PR will not be accepted with multiple commits. Thanks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

String concatenation is inherently insecure (read: very easy to inject other SQL statements). Please provide a more secure way to assemble the query.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

thanks for review working on it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

well, I am already sanitizing the inputs, it might save?
tried to implement other more secured ways but getting stucked in passing paramList as calling other method eg: callFilteredPgSql

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should not concatenate the SQL, at all.
Use a parameterized query instead with placeholders, that'll be safe from SQL injection.

@shyam1s15 shyam1s15 force-pushed the JIRA-1910-solution branch from 9b71c8d to 3c19893 Compare March 27, 2023 19:05
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should not concatenate the SQL, at all.
Use a parameterized query instead with placeholders, that'll be safe from SQL injection.

@shyam1s15 shyam1s15 force-pushed the JIRA-1910-solution branch from a4e47e2 to 9ecd73f Compare March 28, 2023 22:10
@adamsaghy
Copy link
Copy Markdown
Contributor

@shyam1s15 Please check your commit, because it is not compiling...

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2023

This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.

@github-actions github-actions Bot added the stale label May 4, 2023
@galovics galovics closed this May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants