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

Wrong ownCloud instance URL in notification emails #73

Open
drybjed opened this issue Nov 16, 2016 · 5 comments
Open

Wrong ownCloud instance URL in notification emails #73

drybjed opened this issue Nov 16, 2016 · 5 comments

Comments

@drybjed
Copy link
Member

drybjed commented Nov 16, 2016

On my ownCloud installation, mail messages contain the contents:

Witaj User1,

You are receiving this email because the following things happened at http://localhost/

* User2 removed the share for SharedDir - Today 14:29:42

I would think that the correct domain name would be used in the URL, and not localhost. Any suggestion about where to look for the fix?

@ypid ypid added the type/bug label Nov 16, 2016
@ypid
Copy link
Member

ypid commented Nov 16, 2016

Have not yet checked that. Thanks for reporting. Do you have an idea/found something to fix it?

@ypid ypid added this to the v0.4.0 milestone Nov 16, 2016
@drybjed
Copy link
Member Author

drybjed commented Nov 16, 2016

It seems that some related strings can be found in:

apps/activity/templates/email.notification.php:print_unescaped($l->t('You are receiving this email because the following things happened at %s', array($_['owncloud_installation'])));
apps/activity/lib/mailqueuehandler.php:         $alttext->assign('owncloud_installation', $this->urlGenerator->getAbsoluteURL('/'));

@ypid
Copy link
Member

ypid commented Nov 16, 2016

@drybjed What happens when you share a file by link? The ownCloud instance should be able to figure out it’s own URL. If you are running it behind a reverse Proxy, you might need to configure the base URL using one of the owncloud__config dicts. I have a similar setup up and running for my private ownCloud instances using https://github.com/jchaney/owncloud (which I consider legacy and which needs to be switched to this role some day). Check: https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=config#proxy-configurations

@ypid
Copy link
Member

ypid commented Jan 13, 2017

@drybjed Any updates on this? I just recheck. My deployments are able to figure out there own URL. What is shown when you try to share a file by link in the web UI. It will give you a preview of the URL there. And what ownCloud version are you using again?

@drybjed
Copy link
Member Author

drybjed commented Jan 13, 2017

@ypid Sorry, haven't checked that yet. I'll update my ownCloud installation and check again.

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

No branches or pull requests

2 participants