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

Updated Report-name Regex (FINERACT-1156) #1344

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

thesmallstar
Copy link
Member

@thesmallstar thesmallstar commented Sep 22, 2020

Refer: https://issues.apache.org/jira/browse/FINERACT-1156

I got this issue in the email thread, no jira Ticket:
image

The report names with "(" threw SQL injection error, I identified the mistake to be incorrect Regex, I am not sure how this worked in the past.

Still testing this.

cc: @edcable @bharathc27

@vorburger vorburger self-requested a review September 22, 2020 19:45
@vorburger
Copy link
Member

I got this issue in the email thread

Which email thread? 😄

no jira Ticket:

It would be great to create a JIRA issue, describing the problem, with the error message. With text, so that it's searchable, instead of an image. It helps when we look for it again in the future, when a user reports the same error on the mailing list later.

I am not sure how this worked in the past.

It's possible that it hasn't worked in a long time and was just broken... 😅

Would it be possible to add a simple integration test for this?

@thesmallstar
Copy link
Member Author

My bad :P
Let me quickly make a jira ticket for this explaining the entire issue.

@thesmallstar
Copy link
Member Author

+1 for the integration test as well.

@thesmallstar
Copy link
Member Author

thesmallstar commented Sep 24, 2020

@edcable @bharathc27 I have tested this, not getting SQL injection errors anymore, will you like to test this locally with the community app? If that looks we can add an integration test and merge this?

@thesmallstar thesmallstar changed the title Updated Report-name Regex Updated Report-name Regex (FINERACT-1156) Sep 24, 2020
@edcable
Copy link
Contributor

edcable commented Sep 25, 2020

@bharathc27 have you had a chance to test yet?

@edcable
Copy link
Contributor

edcable commented Sep 25, 2020

@francisguchie are you able to test this locally from your side? @thesmallstar @vorburger is it possible to merge this so @bharathc27 could test against fineract.dev - he doesn't have a local build of Fineract running on his current device.

@thesmallstar
Copy link
Member Author

@edcable Let me try to setup community app locally (Somehow it is not working), I will give an update soon. It will be better if we test and merge this.

@vorburger just an idea, can we do something to host a particular branch/PR whenever required online? It will be so much handy to test the PRs that way, should I make an issue for this?

@vorburger
Copy link
Member

@thesmallstar @vorburger is it possible to merge this so @bharathc27 could test against fineract.dev

sure, let's just merge this as-is now. @thesmallstar you can add the IT in a follow-up PR.

@edcable Let me try to setup community app locally (Somehow it is not working), I will give an update soon. It will be better if we test and merge this.

@thesmallstar if you have some JS issue, just FYI you could technically use https://cui.fineract.dev with a baseApiUrl to localhost. But cui.fineract.dev is not auto updated - watch openMF/community-app#3309 about that.

@vorburger just an idea, can we do something to host a particular branch/PR whenever required online? It will be so much handy to test the PRs that way, should I make an issue for this?

That's... not that easy. I thought about it as well. But running a server instance costs. Running a server for every open PR is... non-negligeable. We sure could have some Bot, with some command, with some timeout that "tears down" per-PR servers, but.. this is a amount of work I don't have the time for to spend, unfortunately.

However, I think it's acceptable to sometimes merge PRs so that people can test things on demo.fineract.dev. If things are broken, then follow-up PRs can add further fixes. (The clean thing to do in theory would actually a PR with a git revert and then the proper fix.)

@vorburger vorburger merged commit 2086332 into apache:develop Sep 28, 2020
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.

3 participants