ibhoomi16 opened a new pull request, #5532:
URL: https://github.com/apache/fineract/pull/5532

   ## Description
   This PR resolves the issue where a "403 Forbidden" error alert appears on 
the UI when a client is missing a profile image (WEB-758). 
   
   **Changes:**
   - Updated 
[DocumentNotFoundException](cci:2://file:///c:/Users/bhoomi/fineract/fineract-document/src/main/java/org/apache/fineract/infrastructure/documentmanagement/exception/DocumentNotFoundException.java:22:0-32:1)
 to return 404.
   - Fixed 
[ImageReadPlatformServiceImpl](cci:2://file:///c:/Users/bhoomi/fineract/fineract-document/src/main/java/org/apache/fineract/infrastructure/documentmanagement/service/ImageReadPlatformServiceImpl.java:34:0-64:1)
 to stop hiding the "Not Found" error.
   
   **Verification:**
   - Verified with Postman that missing images now return 404 Not Found 
(Previously 403 Forbidden).
   
   
   ## Checklist
   - [x] Write the commit message as per [our 
guidelines](https://github.com/apache/fineract/blob/develop/CONTRIBUTING.md#pull-requests)
   - [x] Acknowledge that we will not review PRs that are not passing the build 
("green")
   - [x] Create/update [unit or integration 
tests](https://fineract.apache.org/docs/current/#_testing) for verifying the 
changes made.
   - [x] Follow our [coding 
conventions](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] [This PR must not be a "code 
dump"](https://cwiki.apache.org/confluence/display/FINERACT/Pull+Request+Size+Limit).
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to