netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Bitbucket 504 errors due to improper data encoding

Open des2013 opened this issue 1 year ago • 0 comments

Apache NetBeans version

Apache NetBeans 21

What happened

Posting a large batch of changes to a Bitbucket repo via http connection, the IDE receives an nginx 504 error. Smaller posts to other repos are successful. Other users making smaller posts to all repos are successful. BB support quotes this from git info: "Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests." Implying that Netbeans may have incorrectly implemented the git command stream to Bitbucket, thus causing the timeout error.

Language / Project Type / NetBeans Component

PHP project

How to reproduce

Create three test folders within a project. Each folder contains 1486 folders and 2829 files. Each folder is a different version of a commonly available AWS SDK. Start a commit to your remote repo on Bitbucket. Process runs for 60? seconds then reports failure. Output text reveals a 504 nginx error in html markup.

Did this work correctly in an earlier version?

Apache NetBeans 20

Operating System

Windows 11

JDK

Java: 20.0.2; Java HotSpot(TM) 64-Bit Server VM 20.0.2+9-78

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

Important to realize 1) this is an existing setup that has been working for many months without any problems, 2) other smaller commits are successful for all users, 3) the failing commit is the only one with multiple copies of the huge folder being moved/added/renamed resulting in thousands of Add and Delete commands to BB git server.

Are you willing to submit a pull request?

No

des2013 avatar Apr 19 '24 21:04 des2013