Skip to content

displayName (and other config fields) not included in uploadToFileSearchStore request #821

Closed

Description

@kopher1601

Environment details

  • Programming language: Java
  • OS: macOS
  • Language runtime version: Java 11+
  • Package version: 1.38.0

Steps to reproduce

  1. Create an UploadToFileSearchStoreConfig with displayName set:
UploadToFileSearchStoreConfig config = UploadToFileSearchStoreConfig.builder()
  .displayName("my-document")
  .build();

client.fileSearchStores.uploadToFileSearchStore(storeName, file, config);
  1. The displayName is silently dropped from the actual API request.

Root Cause

In FileSearchStores.java, the getUploadUrl() method (line 910-915) creates a new UploadToFileSearchStoreConfig with only httpOptions and shouldReturnHttpResponse, discarding the original config's fields:

UploadToFileSearchStoreResumableResponse response =
  privateUploadToFileSearchStore(
      fileSearchStoreName,
      UploadToFileSearchStoreConfig.builder()
          .httpOptions(httpOptions)
          .shouldReturnHttpResponse(true)
          .build());

This also affects customMetadata and chunkingConfig.

Expected Behavior

The original config fields (displayName, customMetadata, chunkingConfig) should be preserved and included in the request to the API.

Activity

  1. added
    type: bug
    priority: p2
    on Feb 10, 2026
  2. self-assigned this
    on Feb 11, 2026
  3. hemasekhar-p commented on Feb 17, 2026

    @hemasekhar-p

    Hi @kopher1601, Thank you for bringing this to our attention. We appreciate you flagging this issue, and we will file a bug internally to track it.

  4. added a commit that references this issue on Oct 28, 2026
    a7f17e8
  5. added 2 commits that reference this issue on Nov 5, 2026
    995637a
    0dd33fe
  6. added 4 commits that reference this issue on Nov 14, 2026
    a0a5212
    20cd976
    3339623
    ab9b8bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2type: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions