Customer report: https://api.bitbucket.org/2.0/repositories shouldn't allow pagelen above 100

Issue #13824 open
Gideon Koh
created an issue

As per this page - https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories - it mentions that:

pagelen: integer 1..
Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.

However:

1) If I request https://api.bitbucket.org/2.0/repositories?pagelen=1000 it takes a long time but I get a working response with 1000 entries.

2) If I request https://api.bitbucket.org/2.0/repositories?pagelen=5000 I immediately get back an error saying pagelen is too high.

3) If I request https://api.bitbucket.org/2.0/repositories?pagelen=2000 I get a very long delay and then an HTTP internal server error 500.

pagelen should only allow 100 entries and not accepting any number beyond 100.