wso2 / carbon-apimgt

Apache License 2.0
165 stars 618 forks source link

Add backend validations to check for special characters in document name #12408

Closed dulithsenanayake closed 3 months ago

dulithsenanayake commented 3 months ago

This PR adds backend validations to check for special characters in document names when creating documents.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 40.00000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 47.07%. Comparing base (d0c3921) to head (6be3cc9). Report is 22 commits behind head on master.

Files Patch % Lines
...i/publisher/v1/impl/ApiProductsApiServiceImpl.java 0.00% 4 Missing :warning:
...isher/v1/common/mappings/PublisherCommonUtils.java 50.00% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #12408 +/- ## ============================================ - Coverage 47.18% 47.07% -0.11% + Complexity 4193 4172 -21 ============================================ Files 1871 1871 Lines 138334 138412 +78 Branches 20023 20038 +15 ============================================ - Hits 65267 65160 -107 - Misses 65310 65491 +181 - Partials 7757 7761 +4 ``` | [Flag](https://app.codecov.io/gh/wso2/carbon-apimgt/pull/12408/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2) | Coverage Δ | | |---|---|---| | [integration_tests](https://app.codecov.io/gh/wso2/carbon-apimgt/pull/12408/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2) | `41.79% <40.00%> (-0.06%)` | :arrow_down: | | [unit_tests](https://app.codecov.io/gh/wso2/carbon-apimgt/pull/12408/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2) | `20.09% <0.00%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.