Skip to content

Grammatical error - #230

Closed
trishitapingolia wants to merge 1 commit into
appwrite:masterfrom
trishitapingolia:patch-1
Closed

trishitapingolia wants to merge 1 commit into
appwrite:masterfrom
trishitapingolia:patch-1

Conversation

@trishitapingolia

Copy link
Copy Markdown

Grammatical error

Grammatical error
@eldadfux

Copy link
Copy Markdown
Member

Hey @trishitapingolia, we really appreciate your time and willingness to contribute to open-source, but this is not the kind of PR's that we need at the moment.

If you still wish to help us by creating meaningful pull requests, go over our open issues and see if there is any topic that you might be interested in helping.

@eldadfux eldadfux closed this Oct 24, 2019
pull Bot referenced this pull request in AmirulAndalib/appwrite Sep 28, 2026
#230)

* feat: split Swoole adapters, add compression support, and adopt utopia-php/servers

- Split Swoole adapter into Swoole (SWOOLE_PROCESS) and SwooleCoroutine (coroutine-based) servers
- Add response compression support with configurable min size and algorithm selection
- Migrate Hook to utopia-php/servers and Route now extends Servers\Hook
- Add View class for template rendering
- Add trusted IP header support and IP validation in Request
- Enhance Response with cookie management, content-type helpers, and chunked transfer
- Add utopia-php/servers and utopia-php/compression dependencies
- Fix server-swoole.php test server to work with non-coroutine Swoole adapter
- Disable Swoole cookie parsing to preserve raw Cookie headers

* fix: address Greptile review comments on PR #230

- Remove Content-Length before re-adding after compression to prevent duplicate headers
- Defer onStart callback into coroutine event loop for SwooleCoroutine adapter consistency
- Add null-coalescing fallback for preg_replace in View::render
- Add void return types to compression setter methods for API consistency

* add telemetry
pull Bot referenced this pull request in AmirulAndalib/appwrite Sep 28, 2026
…xclusive-consumer

fix(queue): refuse a concurrency an exclusive consumer cannot survive
abnegate added a commit that referenced this pull request Oct 2, 2026
…ion policy

The Appwrite source endpoint was checked only by host, against the
policy shared with OAuth2, webhooks and avatars, and only when the
migration was created or reported. The migrations worker connected to
whatever endpoint the stored migration held, and the source's own curl
requests, outside Utopia\Client, resolved the host again on every request
and followed redirects anywhere.

A migrations Endpoint now accepts an http or https URL without
credentials whose host passes PublicHostname over PublicInternet plus the
IPRange entries of _APP_MIGRATIONS_ALLOWED_HOSTS, resolving through
_APP_DNS_EXTERNAL, or is a hostname that list allows by name. The report
and create routes check the endpoint with it, and the worker checks a
stored endpoint again before building the source, so migrations queued
or retried from before this change follow the same rule. Its own internal
endpoint (http://{_APP_MIGRATION_HOST}/v1) is exempt.

The source cannot take a Utopia\Client: utopia-php/migration 2.0.x is on
Appwrite PHP SDK 27, which drives curl itself. Its resolver hook
(utopia-php/migration#230) receives every request URL, so the report
route and the worker pass Endpoint::resolve(), which checks the URL and
pins the connection to the address it checked through CURLOPT_RESOLVE.
#230 also stops following redirects, restricts curl to http and https,
and now ignores proxies while a resolver is set. composer.json requires
its branch as 2.0.9 until that release is tagged.

Appwrite migration sources use _APP_MIGRATIONS_ALLOWED_HOSTS in place of
_APP_ALLOWED_INTERNAL_ADDRESSES; the development .env lists appwrite and
the compose network so the local stack can migrate from itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants