Skip to content
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

Configure test James to provide correct API URLs #66

Open
alagane opened this issue Jun 21, 2022 · 3 comments
Open

Configure test James to provide correct API URLs #66

alagane opened this issue Jun 21, 2022 · 3 comments

Comments

@alagane
Copy link
Member

alagane commented Jun 21, 2022

When I run tests, I don't want to use the overridden...Url parameter on jmap-client-ts, the only configurable URL for the client should be the session one, and other URLs are provided by the session.

Since the docker has a dynamic port, the URL is not know before the container is started.

It seems that those URLs are defined in jmap.properties file (see https://james.apache.org/server/config-jmap.html)

Does James support setting those URLs after is is started? With the file? With some commands?

If this is not possible, we can try to set up a proxy to redirect to James, setting proxy destination after it is started, but the proxy should have a constant URL?

@qyb
Copy link
Contributor

qyb commented Jun 21, 2022

What do you think about my solution of using X-JMAP-PREFIX and X-JMAP-WEBSOCKET-PREFIX in fetchSession?

@chibenwa
Copy link
Member

Isn't the use of X-JMAP-PREFIX enough?

3617897

@alagane
Copy link
Member Author

alagane commented Jun 22, 2022

What do you think about my solution of using X-JMAP-PREFIX and X-JMAP-WEBSOCKET-PREFIX in fetchSession?

Isn't the use of X-JMAP-PREFIX enough?

3617897

Ok, I did not understand how X-JMAP-PREFIX worked, but this seems to be the solution yes.

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

No branches or pull requests

3 participants