GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — HttpContent is encoded two times when posting data · Issue #648 · googleapis/google-http-java-client

HttpContent is encoded two times when posting data #648

New issue
Copy link
New issue
Copy link
Closed
#910
Closed
HttpContent is encoded two times when posting data#648
#910
Copy link
Assignees
codyoss
Labels
🚨This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@chingor13
chingor13
opened on May 24, 2019
Issue body actions

The resulting request is correctly encoded once, but we are encoding an extra time when we calculate the content length.

Activity

  1. chingor13
    added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on May 24, 2019
  2. chingor13
    self-assigned this
    on May 24, 2019
  3. sduskis commented on May 29, 2019

    @sduskis
    sduskis
    on May 29, 2019
    Contributor
    More actions

    This is a duplicate of #283.

  4. chingor13 commented on Jun 3, 2019

    @chingor13
    chingor13
    on Jun 3, 2019
    ContributorAuthor
    More actions

    It turns out this is non-trivial to fix. The issue is that for some transport adapters, we have to set the Content-Length header before we start streaming the content. This means that we must count the bytes before we send them. We don't want to cache the encoded content in memory as it defeats the purpose of streaming the content and could cause memory spikes in the application. We don't want to write to a temporary file as there may be file system issues/restrictions (like on GAE) that we cannot necessarily plan for.

  5. yoshi-automation
    added
    🚨This issue needs some love.
    and removed
    🚨This issue needs some love.
    on Jun 8, 2019
  6. codyoss commented on Oct 15, 2019

    @codyoss
    codyoss
    on Oct 15, 2019
    Member
    More actions

    @chingor13 do we have more details on this one? Such as what is being affected? Or is there a finite list of Transport Adapters that need the Content-Length set?

  7. codyoss
    assigned
    codyoss
    and unassigned
    chingor13
    on Dec 9, 2019
  8. codyoss commented on Dec 9, 2019

    @codyoss
    codyoss
    on Dec 9, 2019
    Member
    More actions

    I will take a stab at this.

  9. codyoss
    added a commit that references this issue on Dec 10, 2019

    feat: support chunked transfer encoding

    This issue will close once commit 74556be is merged into the 'master' branch.
    74556be
  10. codyoss
    closed this as completedin #910on Dec 17, 2019
  11. codyoss
    added a commit that references this issue on Dec 17, 2019

    feat: support chunked transfer encoding (#910)

    This issue will close once commit b8d6abe is merged into the 'main' branch.
    b8d6abe
  12. clundin25
    added a commit that references this issue on Aug 11, 2022

    chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8…

    5ef4514
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @codyoss
    codyoss

Labels

🚨This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.