Why does apigee strip extra slashes from the request

Not applicable

Extract request variable

<Pattern>/search/{date}/{uuid}/{department}</Pattern>

<Pattern>/search/{date}/{uuid}</Pattern>

<Pattern>/search/{date}</Pattern>

If I provide a path such as: -

/search/01-01-2016//trainingDepartment

Where the uuid is missing.

The url is transformed into /search/01-01-2016/trainingDepartment matching pattern 2 setting both the date and the uuid variable but missing the department variable.

Any ideas¿

Solved Solved
1 2 377
1 ACCEPTED SOLUTION

Dear @Rohan.Ellis ,

Welcome to Apigee Community.

Regarding double slashes, The double slash is most likely due to result of an error. Having said that multiple software interprets double slashes differently. For Example, Apache treats multiple slashes as a single slash. Some like, Amazon S3 static hosting will not.

Find relevant discussion here in S.O . I believe it's by design in Apigee Edge.

View solution in original post

2 REPLIES 2

Dear @Rohan.Ellis ,

Welcome to Apigee Community.

Regarding double slashes, The double slash is most likely due to result of an error. Having said that multiple software interprets double slashes differently. For Example, Apache treats multiple slashes as a single slash. Some like, Amazon S3 static hosting will not.

Find relevant discussion here in S.O . I believe it's by design in Apigee Edge.

I suspect Apache is treating them as a single slash. Time to re-define test criteria. Thanks for the reply