Transform full URL to lowercase

Nibbler 656 Reputation points
2023-10-26T12:11:06.35+00:00

Hi @GitaraniSharma-MSFT

I have a new issue (could be a bug in the rule-engine) when I need to transform a full URL to lowercase...

Example:

All is working when the URL is at this level: https://www.test-test.com/test1/ in this case I can change any letter to uppercase, and it will return to lowercase.

However, is I have a URL such as below, change a letter in /test1/ > /tEst1/ it will remain.

https://www.test-test.com/test1/test2

https://www.test-test.com/test1/test2/test.html

But, if I have uppercase in both /tEst1/tesT2/test.html > it will work again and lowercase the full URL > /test1/test2/test.html

You know where to reach me on teams if you need a live URL to test with ;-)

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
705 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,651 Reputation points Microsoft Employee
    2023-11-09T18:48:52.2066667+00:00

    Hello @Nibbler ,

    I understand that you are facing an issue with your Azure Front Door Rules engine where the case transformation of the request path is not happening properly for certain URLs.

    We synced offline and found that the rule you've configured right now is used to convert condition into lowercase to match condition, not transform them in action.

    The to lowercase in condition is not exactly used to convert all request URLs or paths to lower case in action. It is only used to match the condition and hence it will not work for all variants of the URL.

    However, you were trying to achieve transform to lowercase in action, which is a feature being worked on now by the PG team (ETA for Public Preview/GA not available yet).

    Since the transform to lowercase in action feature is available in a limited private preview feature, we discussed it with the Azure WAF PG team and gathered the required information needed to get access to it.

    This is a private preview feature, so it is not recommended for production at all.

    NOTE: Previews are licensed to you as part of your agreement governing use of Azure, and subject to terms applicable to "Previews". An Azure feature marked “private preview” is available to specific Azure customers for evaluation purposes. This is typically by invite only and issued directly by the product team responsible for the feature or service.

    You are now testing the feature to achieve your requirement.

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.