-
Notifications
You must be signed in to change notification settings - Fork 1.5k
foxit(-pdf)[email protected]: Fix checkver #16341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughRewrote checkver logic in both Foxit manifests to perform a single HTTP request via System.Net.HttpWebRequest, use the resolved ResponseUri as the 64-bit download URL, derive the 32-bit URL by replacing "x64" with "x86", and return both URIs joined by a comma. Removed per-architecture loops and previous redirection/Location header handling. Changes
Sequence Diagram(s)sequenceDiagram
participant S as checkver script
participant H as HTTP server
Note over S: New single-call flow using System.Net.HttpWebRequest
S->>H: GET (via HttpWebRequest)
alt Server redirects
H-->>S: 3xx -> final URL
Note right of S: HttpWebRequest.ResponseUri holds final absolute URI
else Direct OK
H-->>S: 200 OK (ResponseUri = request URI)
end
S->>S: read ResponseUri (x64 URI)
S->>S: derive x86 URI by replacing "x64" with "x86"
S-->>Caller: return "x64_uri,x86_uri"
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
bucket/foxit-pdf-reader.json(1 hunks)bucket/foxit-reader.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: PowerShell
- GitHub Check: WindowsPowerShell
- GitHub Check: PullRequestHandler
|
All changes look good. Wait for review from human collaborators. foxit-pdf-reader
foxit-reader
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
bucket/foxit-pdf-reader.json(1 hunks)bucket/foxit-reader.json(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: o-l-a-v
PR: ScoopInstaller/Extras#16341
File: bucket/foxit-pdf-reader.json:47-50
Timestamp: 2025-10-15T11:54:31.297Z
Learning: In bucket/foxit-pdf-reader.json and bucket/foxit-reader.json, the checkver script uses MaximumRedirection 1 (not 0) for Invoke-WebRequest to properly handle Foxit's backend redirect behavior when parsing the Location header for version detection.
📚 Learning: 2025-10-15T11:54:31.297Z
Learnt from: o-l-a-v
PR: ScoopInstaller/Extras#16341
File: bucket/foxit-pdf-reader.json:47-50
Timestamp: 2025-10-15T11:54:31.297Z
Learning: In bucket/foxit-pdf-reader.json and bucket/foxit-reader.json, the checkver script uses MaximumRedirection 1 (not 0) for Invoke-WebRequest to properly handle Foxit's backend redirect behavior when parsing the Location header for version detection.
Applied to files:
bucket/foxit-pdf-reader.jsonbucket/foxit-reader.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: WindowsPowerShell
|
/verify |
|
All changes look good. Wait for review from human collaborators. foxit-pdf-reader
foxit-reader
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Closes #16337
<manifest-name[@version]|chore>: <general summary of the pull request>Summary by CodeRabbit
Bug Fixes
Refactor