vanderby / SonarQube-AzureAppService

Instructions and files to host SonarQube on an Azure App Service without a container.
MIT License
90 stars 165 forks source link

How to increase max request length ? #53

Closed LvffY closed 3 years ago

LvffY commented 3 years ago

Hi,

We're using your (great) code to deploy our Sonarqube in Azure Webapp.

It works like a charm, except for one feature. When we analysed a project, we'd like to go to the window "measures" but when we get here, we only get some The request cannot be processed. Try again later.

sonar_issue

Actually, after some digging, it turns out this seems to be some kind of badly configuration set up.

But because I'm (really) not an expert in Azure web app, I don't know where to "increase this request size".

Could you help me on this ? May be you already have this kind of issue and I'm totally misunderstanding the problem

Best regards,

LvffY

vanderby commented 3 years ago

I am glad you find it useful @LvffY!

I have not ran into query length issues myself, but doing some internet research it appears a web.config in the wwwroot folder should help you out.

LvffY commented 3 years ago

Hello @vanderby

That perfectly solved my issue :)

For anyone who's falling in here, I made the changes explained in first link pointed by @vanderby.

Concretely, I changed my file C:\home\site\wwwroot\web.config (because of my windows setup, probably /home/site/wwwroot/web.config in Linux setup) and add the following lines in the security.webServer section :

<security>
  <requestFiltering>
     <!-- 5000 is an arbitrary choice based on the request that failed for me -->
    <requestLimits maxQueryString="5000" />
  </requestFiltering>
</security>

@vanderby May be you could pin this issue to avoid you to answer another issue on this point ?

Anyway, thanks a lot for your help !

Best regards,

LvffY