Skip to content

feat: support absolute base URLs in withUploadUri and Location headers (#37) - #121

Merged
tomdesair merged 4 commits into
masterfrom
feature/absolute-upload-url
Aug 19, 2026
Merged

tomdesair merged 4 commits into
masterfrom
feature/absolute-upload-url

Conversation

@tomdesair

Copy link
Copy Markdown
Owner

Resolves #37

Summary

  • Allow withUploadUri(String) to accept absolute base URLs starting with http:// or https:// in addition to relative paths starting with /.
  • Return full/absolute URLs in Location response headers for upload creation across both Tus 1.0.0 and RUFH protocols when configured with an absolute base URL.
  • Support regex endpoints and maintain 100% backward compatibility for relative paths.
  • Update unit and compliance test suites, README.md, and CHANGELOG.md.

#37)

- Allow withUploadUri(String) to accept absolute URLs (http:// or https://)
- Construct absolute Location response headers for upload creation across Tus 1.0.0 and RUFH protocols
- Support regex endpoints and maintain backward compatibility for relative paths
- Update README.md and CHANGELOG.md
@coveralls

coveralls commented Aug 18, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 94.812% (-0.02%) from 94.831% — feature/absolute-upload-url into master

…ements

- Use Objects.requireNonNull for uploadInfo, uploadId, storageService, and uploadUri
- Fall back to empty string in extractUriOrigin
- Streamline location URI resolution and update unit tests
… path

- Add testUploadWithAbsoluteUploadUri (https://uploads.example.com) and testUploadWithAbsoluteUploadUriWithPath (https://uploads.example.com/api) in AbstractITTusFileUploadService and AbstractITRufhProtocol
- Assert returned Location header matches configured base URL with persisted UploadId
- Validate upload, download, and info retrieval across all storage backends (Disk, Lease-file, S3, Azure Blob)
@tomdesair
tomdesair force-pushed the feature/absolute-upload-url branch from 498709b to b06ed08 Compare August 18, 2026 20:55
@tomdesair
tomdesair merged commit e8f44a5 into master Aug 19, 2026
13 checks passed
@tomdesair
tomdesair deleted the feature/absolute-upload-url branch August 29, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java TUS Server returns Location without url hostname, which breaks flutter

2 participants