PromucFlow_constructor/app/server/appsmith-plugins
Manish Kumar b31fcb11da
fix: for api-redirection (#27720)
## Description
> Fixes the API redirection problem where forwarding location only has
uri path

This Pr adds null pointer checks for host address, adds stack trace in
logging, and fixes the problem of erroring out when the called endpoint
redirection headers don't have full formed forwarding location


#### PR fixes following issue(s)
Fixes #25408 

#### Type of change
- Bug fix (non-breaking change which fixes an issue)

#### How Has This Been Tested?
- [x] Manual
- [ ] JUnit

#### Test Plan
1. Tried out with the endpoint of the API hosted on Manish's ngrok, GET
and POST requests fail with the java null pointer exception. However, on
this DP, both GET and POST requests work.
2. Tried out Sanity tests with other end points on Rest API
3. Did Sanity checks on GraphQL
4. Saved Rest API and GraphQL as datasource and ensured that works fine
too
5. Exported this app, imported the same and ran the API to check for
functionality

## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [x] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [x] Test plan has been peer reviewed by project stakeholders and other
QA members
- [x] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-10-11 21:54:00 +05:30
..
amazons3Plugin feat: Add isSuggested value to templates for all plugins (#26623) 2023-08-30 11:49:25 +01:00
arangoDBPlugin feat: Add isSuggested value to templates for all plugins (#26623) 2023-08-30 11:49:25 +01:00
dynamoPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
elasticSearchPlugin chore: replace wildcard imports with specific imports (#25723) 2023-07-26 16:31:29 +05:30
firestorePlugin chore(deps): Update Guava in Firestore and Google Sheets plugins (#27203) 2023-09-14 15:32:54 +05:30
googleSheetsPlugin chore(deps): Update Guava in Firestore and Google Sheets plugins (#27203) 2023-09-14 15:32:54 +05:30
graphqlPlugin chore(deps): Upgrade graphql-java version to gev fix for CVE-2023-2976 (#27400) 2023-09-19 09:09:29 +05:30
jsPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
mongoPlugin feat: only movies collection shown for mock DB A/B (#27049) 2023-09-13 15:35:19 +05:30
mssqlPlugin feat: enable generate CRUD page for MsSQL plugin (#27195) 2023-09-20 14:12:11 +05:30
mysqlPlugin fix: fix MySQL SSH tunnel default port value (#27612) 2023-09-27 18:41:46 +05:30
oraclePlugin feat: Add isSuggested value to templates for all plugins (#26623) 2023-08-30 11:49:25 +01:00
postgresPlugin feat: CE support for connection pooling (#27859) 2023-10-10 23:12:20 +07:00
redisPlugin chore: replace wildcard imports with specific imports (#25723) 2023-07-26 16:31:29 +05:30
redshiftPlugin feat: Add isSuggested value to templates for all plugins (#26623) 2023-08-30 11:49:25 +01:00
restApiPlugin fix: for api-redirection (#27720) 2023-10-11 21:54:00 +05:30
saasPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
smtpPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
snowflakePlugin feat: Add isSuggested value to templates for all plugins (#26623) 2023-08-30 11:49:25 +01:00
pom.xml chore: Remove irrelevant exclusion introduced in #27044 (#27051) 2023-09-07 11:39:08 +05:30