apache / apache/netbeans

Bitbucket 504 errors due to improper data encoding

Open
#7,282 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the large commit from a PHP project against Bitbucket on NetBeans 21, using the reported multi-folder AWS SDK setup and HTTP connection. Inspect the Git command stream and request encoding around the failing POST, then compare with NetBeans 20. Done means the large commit completes without the nginx 504 while smaller commits continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, java
Domain
devtools, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.