You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by "Zeyad2003 (via GitHub)" <gi...@apache.org> on 2024/06/05 20:27:30 UTC
[PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Zeyad2003 opened a new pull request, #3915:
URL: https://github.com/apache/fineract/pull/3915
- Accept fields as a query parameter to filter the response based on its content.
- Use Jackson dynamic filter with `@JsonFilter` to filter the response data within `fields` query parameter.
- Implemented JacksonHelper class to get the suitable filter for the DTO we serialize.
- Modified the GET methods signature to return MappingJacksonValue to present the filtered response.
## Description
Describe the changes made and why they were made.
Ignore if these details are present on the associated [Apache Fineract JIRA ticket](https://github.com/apache/fineract/pull/1284).
## Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
- [x] Write the commit message as per https://github.com/apache/fineract/#pull-requests
- [x] 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.
- [x] Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.
- [x] 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
- [x] 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "vidakovic (via GitHub)" <gi...@apache.org>.
vidakovic commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1666770123
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
... and we need to move that property to the default application.properties file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "Zeyad2003 (via GitHub)" <gi...@apache.org>.
Zeyad2003 commented on PR #3915:
URL: https://github.com/apache/fineract/pull/3915#issuecomment-2332924178
@vidakovic
What should be done with this PR?
It contains the read requests work and the setup for the project (e.g. `docker-compose-api-v3.yml`).
Also, the other PR for write requests (#3994) depends on it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "jdailey (via GitHub)" <gi...@apache.org>.
jdailey commented on PR #3915:
URL: https://github.com/apache/fineract/pull/3915#issuecomment-2211143301
Has this been seen and reviewed enough? Does it change API behavior?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "Zeyad2003 (via GitHub)" <gi...@apache.org>.
Zeyad2003 commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1694150473
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
How to use spring built-in vars?
I tried this but didn't work:
```properties
# FINERACT-914
server.forward-headers-strategy=framework
server.port=${FINERACT_SERVER_PORT:8443}
server.address=${FINERACT_SERVER_ADDRESS:localhost}
server.servlet.context-path=${FINERACT_SERVER_SERVLET_CONTEXT_PATH:/fineract-provider}
server.compression.enabled=${FINERACT_SERVER_COMPRESSION_ENABLED:true}
# backwards compatibility for 'org.apache.fineract.infrastructure.security.filter.TenantAwareBasicAuthenticationFilter
baseUrl=https://${server.address}:${server.port}${server.servlet.context-path}
```
and the checks failed as following:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "vidakovic (via GitHub)" <gi...@apache.org>.
vidakovic commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1666766486
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
@adamsaghy ... we can improve that setting; I think there are spring built-in vars/properties for the host and the port... that way it won't be hardcoded.
Note: there are 2 reasons to replace that piece of code. First it just plain doesn't work when we introduce Spring Web MVC. Second, application.properties should be the only source of truth (there might be more examples like this and should be treated the same, for another day).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "Zeyad2003 (via GitHub)" <gi...@apache.org>.
Zeyad2003 commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1665341397
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
I replaced it with that [line](https://github.com/apache/fineract/pull/3915/files#diff-7f872659757b85d5fcd50938abc4f805e15499f5e22026161dff8740fa4c4433R22).
The change is related to backward compatibility and should be covered by the configuration.
I didn't fully understand all the reasons, I think it also relates to changing the domain name.
@vidakovic told me to leave it this way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1665331093
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
Why do we remove this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "Zeyad2003 (via GitHub)" <gi...@apache.org>.
Zeyad2003 commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1694174427
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
How to use spring built-in vars?
I tried this but didn't work:
```properties
# FINERACT-914
server.forward-headers-strategy=framework
server.port=${FINERACT_SERVER_PORT:8443}
server.address=${FINERACT_SERVER_ADDRESS:localhost}
server.servlet.context-path=${FINERACT_SERVER_SERVLET_CONTEXT_PATH:/fineract-provider}
server.compression.enabled=${FINERACT_SERVER_COMPRESSION_ENABLED:true}
# backwards compatibility for 'org.apache.fineract.infrastructure.security.filter.TenantAwareBasicAuthenticationFilter
baseUrl=https://${server.address}:${server.port}${server.servlet.context-path}
```
and the checks failed as following:
```
Run curl -f -k --retry 10 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8443/fineract-provider/actuator/health
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) error:0A000[12](https://github.com/Zeyad2003/fineract/actions/runs/10129914159/job/28010527803#step:8:13)6:SSL routines::unexpected eof while reading
Error: Process completed with exit code 35.
```
any thoughts?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "vidakovic (via GitHub)" <gi...@apache.org>.
vidakovic commented on PR #3915:
URL: https://github.com/apache/fineract/pull/3915#issuecomment-2211159086
This is being reviewed. The goal is 100% backwards compatibility... and the
appropriate integration tests will also be run against this to prove that
all this is true.
Note: the goal is not to refactor 100% of the codebase, but to give a
template how this can be attacked (hence custom modules).
On Fri, Jul 5, 2024 at 6:27 PM James D ***@***.***> wrote:
> Has this been seen and reviewed enough? Does it change API behavior?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/fineract/pull/3915#issuecomment-2211143301>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAC4ZL4KA327OJ4W5M2TIZTZK3CQRAVCNFSM6AAAAABI3NWF2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRGE2DGMZQGE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "Zeyad2003 (via GitHub)" <gi...@apache.org>.
Zeyad2003 commented on PR #3915:
URL: https://github.com/apache/fineract/pull/3915#issuecomment-2211160221
> Has this been seen and reviewed enough? Does it change API behavior?
No, the original API layer didn't change, this is just a mirror layer. The new version (v3) should introduce type safety.
like avoiding using string blobs and serializing manually (Jackson instead of GSON), and utilizing the DTOs instead of string blobs.
> [!NOTE]
> You can refer to the commit description and have a look to this [proposal](https://lists.apache.org/thread/n2fp9z9w8qhlszfpn00q903qdhshyj2j)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "Zeyad2003 (via GitHub)" <gi...@apache.org>.
Zeyad2003 commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1666487715
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
> Adding only one place will not be enought. If someone is not using your custom module, they are loosing the baseUrl settings...
I couldn't understand the full logic of any of them yet.
but, if we need to configure the URL inside the `application-v3.properties` file when using the custom module, and the other settings when not using it, then could the following implementation solve the problem?
- application-v3.properties line
``` properties
configuredBaseUrl=https://localhost:8443${FINERACT_SERVER_SERVLET_CONTEXT_PATH:/fineract-provider}
```
- add the following implementation to the condition block in `TenantAwareBasicAuthenticationFilter`:
``` java
String configuredBaseUrl = System.getProperty("configuredBaseUrl");
if (configuredBaseUrl != null && !configuredBaseUrl.isEmpty()) {
baseUrl = configuredBaseUrl;
}
```
What do you think?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1666520520
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
Not really a fan of having hardcoded URL anywhere `https://localhost:8443${FINERACT_SERVER_SERVLET_CONTEXT_PATH:/fineract-provider}` but i am leaving to Aleks to decide on this one. I dont think leaving the `final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");` would cause any harm, but i might be missing something,
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "vidakovic (via GitHub)" <gi...@apache.org>.
vidakovic commented on PR #3915:
URL: https://github.com/apache/fineract/pull/3915#issuecomment-2213566671
@galovics ... ignore my last comment... my message was too long for the mailing list (arrrrrgh)... so, let's try here:
... counter argument: while we are at it we might as well tackle existing tech debt instead of moving it just in front of us and postponing the handling of it. My impression is that the current emphasis is still on adding new features and less on tackling improving the code (and runtime) quality of Fineract. It's going to be hard (very) to ever catch up if we continue like that.
Let's take your client search (v2) example:
- fair enough, introduces types
- gets rid of all those (manually maintainable) dummy Java classes to reintroduce type information for OpenApi
- finally IDE refactoring tools will work
... but...
- does not follow the architecture "rules" of current Fineract
- uses "domain" (which everywhere else is used for database table mapping), but means "data"
- these new data structures are created in the service package... why not in the existing "domain" (to stay with current reasoning here) or better in the "data" package?
- if we have these new JAR "modules": why not put these new data structures/classes in the fineract-core module, but instead they are buried in fineract-provider?
- not sure where the permissions are enforced? maybe in web security config, I personally prefer that, because then you have one place to audit/check if necessary... and it gets rid of these explicit security service checks (which in turn call all those "utility" functions on AppUser... where they are really misplaced)
- not sure if I understand why the "delegate" is needed... ok, just a detail
- the example that you give is an easy one: read requests... Zeyad started also tackling a read request for a very small service (note), because those are simple and don't go through that complex execution path for write requests; but those write requests are actually the main drivers for losing the type information, manual JSON parsing etc.
Having said that, please also note that:
- Spring Web MVC is (obviously) a first class citizen in the current tech stack we are using (testability...); JAX-RS on the other not so much and it's usage is (I'd argue) responsible for a big chunk of our technical debt ("integration" tests)
- all these changes are a proposal and intentionally done in the custom module folder so that no one currently working on projects needs to be bothered, but at the same time we generate fully working (custom) Docker images that can actually be used/tested
- everything that is created in this context can be (and is by default) turned off, even in the custom Docker build
- the goal is not to migrate 100% of the REST layer, but to create a proof of concept to show how things could look like... of course this needs to be discussed in the community
- surprisingly we seem to mimic (in general) the coding style from 1-2 decades ago (including e. g. tying the business logic to the transport protocol/format of the REST API layer)... even for new features
Read reqeuests, Spring Web MVC or not, are not really that relevant here (although I would still do it and as said it's a lower entry level to tackle the issue of type safety)... the bigger questions start with the write requests and how we can improve on those.
That's why Zeyad started to map out that (write request) execution flow:

From the top of my head I can remember a couple of things that popped out while investigating all this:
- also not clear why we need that many command related "wrapper" data structures... when in all of them serialized JSON in a string variable is the common denominator for the request parameters... THE main reason for the whole type safety discussion
- it's not really clear why we need 3 components/services (blue boxes) to process write requests; in most cases the blue boxes are only used in one place...
- validation (aka enforcement of permissions) is done in a couple of places/services/components and is mixed with business logic which makes it very hard to reason what rules actually apply; the enforcement also happens quite "late", in other words: this should happen in the REST API layer as soon as possible (either with web security config and/or with Spring Security AccessDecisionVoters)
- for some reason it seems that we do "manual" (?) transaction management somewhere in that execution pipeline (blue boxes in the diagram), don't remember exactly where that was... really not sure why we have to do this ourselves and why Spring/Data seems somehow not enough here?
If we'll actually see PoC code for improving write requests (in the custom modules... again, not in the way of any current development efforts) that is still open; documenting the current state of affairs properly would already be a great win. If we get some sort of proof of concept out of this then even better... because then we really have something that we can discuss vs. Wiki pages where ideas usually go to die (I'm exaggerating to make a point).
My 2 cents.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "vidakovic (via GitHub)" <gi...@apache.org>.
vidakovic commented on PR #3915:
URL: https://github.com/apache/fineract/pull/3915#issuecomment-2213554986
@galovics please see my reply on the mailing list with a little more context
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "vidakovic (via GitHub)" <gi...@apache.org>.
vidakovic commented on PR #3915:
URL: https://github.com/apache/fineract/pull/3915#issuecomment-2151720891
@Zeyad2003 let's organize a call... I have some more information for you. Let's leave this PR for the moment as it is, please do not merge.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "Zeyad2003 (via GitHub)" <gi...@apache.org>.
Zeyad2003 commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1694150473
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
How to use spring built-in vars?
I tried this but didn't work:
```properties
# FINERACT-914
server.forward-headers-strategy=framework
server.port=${FINERACT_SERVER_PORT:8443}
server.address=${FINERACT_SERVER_ADDRESS:localhost}
server.servlet.context-path=${FINERACT_SERVER_SERVLET_CONTEXT_PATH:/fineract-provider}
server.compression.enabled=${FINERACT_SERVER_COMPRESSION_ENABLED:true}
# backwards compatibility for 'org.apache.fineract.infrastructure.security.filter.TenantAwareBasicAuthenticationFilter
baseUrl=https://${server.address}:${server.port}${server.servlet.context-path}
```
and the checks failed as following:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #3915: FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON.
URL: https://github.com/apache/fineract/pull/3915
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "galovics (via GitHub)" <gi...@apache.org>.
galovics commented on PR #3915:
URL: https://github.com/apache/fineract/pull/3915#issuecomment-2213336664
As I said on the mailing list, please take a look at https://github.com/apache/fineract/blob/f5add87f2ab040787da1738ff8404163ab4dc8d7/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/api/v2/search/ClientSearchV2ApiResource.java#L40 to make an API type-safe instead of introducing Spring MVC and extra refactorings that don't belong to this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1665571474
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
Adding only one place will not be enought. If someone is not using your custom module, they are loosing the baseUrl settings... :/ @vidakovic Am i missing something here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2021: refactor the note GET end-points to use Jackson instead of GSON. [fineract]
Posted by "Zeyad2003 (via GitHub)" <gi...@apache.org>.
Zeyad2003 commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1665341397
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}
if (!FIRST_REQUEST_PROCESSED) {
- final String baseUrl = request.getRequestURL().toString().replace(request.getPathInfo(), "/");
Review Comment:
I replaced it with that [line](https://github.com/apache/fineract/pull/3915/files#diff-7f872659757b85d5fcd50938abc4f805e15499f5e22026161dff8740fa4c4433R22).
I didn't fully understand why, but it's for backward compatibility and it should be covered with configuration.
@vidakovic told me to leave it this way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org