Skip to content

Comments

Codex-generated pull request#3

Open
matthewdavidian wants to merge 1 commit intocodex/plan-integration-for-docupipe-apifrom
codex/implement-docupipe-api-interface
Open

Codex-generated pull request#3
matthewdavidian wants to merge 1 commit intocodex/plan-integration-for-docupipe-apifrom
codex/implement-docupipe-api-interface

Conversation

@matthewdavidian
Copy link
Contributor

Codex generated this pull request, but encountered an unexpected error after generation. This is a placeholder PR message.


Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8dc3472797

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

If (cfg.sApiKey<>'') Set psApiKey to cfg.sApiKey
If (cfg.sBaseUrl<>'') Set psBaseUrl to cfg.sBaseUrl
If (cfg.iTimeoutSeconds>0) Set piTimeoutSeconds to cfg.iTimeoutSeconds
If (cfg.iRetryCount>=0) Set piRetryCount to cfg.iRetryCount

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve default retry count when config leaves it unset

Configure applies cfg.iRetryCount whenever it is >= 0, but tDocuPipeConfig integers default to 0, so callers that only populate sApiKey unintentionally override the class default of one retry with zero retries. In that common path, transient transport failures, 429s, and 5xxs stop retrying even though the object is initialized with retry support.

Useful? React with 👍 / 👎.


Send SetMemberValue of hoReq "contentBase64" jsonTypeString (UCharArrayToString(Attachment.uBase64File))
Send SetMemberValue of hoReq "mimeType" jsonTypeString Attachment.sMimeType
Send SetMemberValue of hoReq "filename" jsonTypeString sFilePath

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Send only basename in document filename field

The request payload sets "filename" to sFilePath, which commonly contains an absolute local path; this leaks local directory/user information to the external API and can break integrations that validate filename tokens without path separators. The field should be derived from the file basename, not the full path.

Useful? React with 👍 / 👎.

Comment on lines +21 to +22
Set peTransferFlags to ifSecure
Set piRemotePort to rpHttpSSL

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor base URL scheme when configuring transport security

The client strips both https:// and http:// from psBaseUrl, but transport is always forced to ifSecure/rpHttpSSL and never updated from the configured URL. If a caller provides an http:// base URL (for local/staging/proxy endpoints), requests will still attempt TLS on port 443 and fail to connect.

Useful? React with 👍 / 👎.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant