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

ownCloud server hostname in the Server Activity tab does not account for email addresses as username #6728

Closed
mdusher opened this issue Aug 17, 2018 · 16 comments
Assignees
Labels
Design & UX ReadyToTest QA, please validate the fix/enhancement type:bug
Milestone

Comments

@mdusher
Copy link

mdusher commented Aug 17, 2018

Expected behaviour

Show the hostname of the ownCloud server

Actual behaviour

Shows the domain of the user's username and the server's hostname

Example:
If user is called user@domain.com and the hostname of the server is owncloud.domain.com, it will show domain.com@owncloud.domain.com

image

Steps to reproduce

  1. Create a user with an email address as the username (eg. user@domain.com)
  2. Configure the sync client with this user
  3. Create a file
  4. Force the client to sync
  5. Go to Activity -> Server Activity and check the right column and it will say "1 minute(s) ago on domain.com@hostname"

Client configuration

Client version: 2.4.3

Operating system: Ubuntu and Windows

Qt version used by client package (Linux only, see also Settings dialog): 5.6.2

Client package (From ownCloud or distro) (Linux only): ownCloud

@ogoffart
Copy link
Contributor

Maybe having a '@' in the account display name is not such a good idea as many user think that '@' is for email address.

Perhaps we should show something like cloud.domain.com (username) instead of username@cloud.domain.com everywhere we currently show the account name.

@michaelstingl : what do you think?

(Note to self: some code in activityitemdelegate.cpp and activitywidget.cpp relies on the '@')

@michaelstingl
Copy link
Contributor

Problem is, client hides a part of the username.

User: aa@bb.com
Host: example.de

Client displays: bb.com@example.de
Correct would be: aa@bb.com@example.de

I don't really have a problem with aa@bb.com@example.de. I think this is what we call Federation ID. @pmaier1 Is there any convention how we display user+host?

We could also discuss using cloud.domain.com (username), but it seems the right column has fixed width and will probably hide most parts.

macos_10_13

We also use username@host on other places, so we would have to change it there as well:

(from #6113 (comment) )

@guruz
Copy link
Contributor

guruz commented Aug 17, 2018

I don't really have a problem with aa@bb.com@example.de

+1
There's a bug somewhere, we're cutting away too much if there is an '@'

@ogoffart
Copy link
Contributor

Ah ok, i misunderstood the problem.
Fix in #6731

@guruz guruz modified the milestones: 2.5.1, 2.5.0 Aug 19, 2018
@guruz guruz added the ReadyToTest QA, please validate the fix/enhancement label Aug 19, 2018
@michaelstingl
Copy link
Contributor

@ogoffart strange, just tested with ownCloud-qt5.10.1-2.5.0.10453-daily20180827.pkg, and no username is visible at all in the activity tab. Only the hostname is shown:

macos_10_13

@michaelstingl michaelstingl removed the ReadyToTest QA, please validate the fix/enhancement label Sep 3, 2018
@ogoffart
Copy link
Contributor

ogoffart commented Sep 3, 2018

@michaelstingl I don't see what's wrong in the screenshot.

I think the was never supposed to be there. (The code explicitly removes the username since it shows the account, in commit 3bccfb8 )

If one should show the user name, then that can be changed.

@michaelstingl
Copy link
Contributor

Sorry for the confusion. I proposed to display the full Federation ID.

Correct would be: aa@bb.com@example.de

At the moment, I can't distinguish 2 accounts on the same server:

macos_10_13

@ogoffart
Copy link
Contributor

ogoffart commented Sep 3, 2018

Ah Ok. The original issue was about the fact that the removal of the username was not working properly if the username contained a '@'.

But if we do not want to remove the username, that can also be done.

Edit: In PR #6763

@amc2002
Copy link

amc2002 commented Oct 23, 2018

Is my memory mistaken when I believe that this used to show in which share/folder the change was made? As of 2.5.0 it looks like it just shows the share owner's ID for some reason. If this is not related, please let me know and I'll look elsewhere for a solution. Thanks.

untitled-1

@ogoffart
Copy link
Contributor

So to summarize: Since the time the activity tab was created, it normally did not have the user name. But there was a bug (reported by this bug report), which made that some part of the user name would show there if the username had a '@'.

That bug was fixed with PR #6731 , but it was asked later to actually put the user in there, so it was quickly amended with PR #6763, which is now the state in 2.5.0
(I believe that this number is indeed is indeed part of the Federation ID that, was asked for)

It would be possible to change the dav user with the dav display name (which would typically be the full name)

Note that there are many location that we show the account name, and they currently most use this dav_user@hostname format (via the Account::displayName function)
I believe we should keep everything the same.

@michaelstingl : what should be placed there?

@ogoffart
Copy link
Contributor

Personally, i'd put cloud.domain.com (User Name) (where User Name is the dav display name (most likely the full name of the user)

@amc2002
Copy link

amc2002 commented Oct 23, 2018

Thanks for the summary. In my case, I can't see what the full ID is because there is no column scroll or resize. We use LDAP and those ID's are what appear in the "Username" field. I didn't realize there had never been an ID in that client column before. Thanks again for explaining.

@michaelstingl
Copy link
Contributor

I can't see what the full ID is because there is no column scroll or resize.

Yeah, I get your point.

I think we'd need proper columns and headers, with the option to resize column width etc. Probably option to filter by account too… All tabs in the Activity view should work similar. As a temporary solution, we could go back to the previous implementation, and build it better for one of the next releases…

@guruz guruz modified the milestones: 2.5.0, 2.5.1 Oct 24, 2018
@guruz guruz removed the ReadyToTest QA, please validate the fix/enhancement label Oct 24, 2018
@guruz
Copy link
Contributor

guruz commented Oct 24, 2018

Personally, i'd put cloud.domain.com (User Name) (where User Name is the dav display name (most likely the full name of the user)

I like this idea.

because there is no column scroll or resize.

Maybe this can be quickly enabled too @ogoffart ?

Then at a later point (not a patch release?) we could add more columns instead.

@ogoffart ogoffart modified the milestones: 2.5.1, 2.6.0 Oct 31, 2018
@ogoffart
Copy link
Contributor

This cannot be "quickly enabled". The activity view has its own delegate that draws everything.

@guruz guruz modified the milestones: 2.6.0, 2.6.1 Apr 15, 2019
ogoffart added a commit that referenced this issue Oct 21, 2019
As discussed in issue #6728
This is the text shown in the server activity tab, or different dialog that
shows the account name
ogoffart added a commit that referenced this issue Oct 21, 2019
Also make the column for the time and account a bit biger

Relates to the discussion in issue #6728
ogoffart added a commit that referenced this issue Nov 18, 2019
As discussed in issue #6728
This is the text shown in the server activity tab, or different dialog that
shows the account name
ogoffart added a commit that referenced this issue Nov 18, 2019
Also make the column for the time and account a bit biger

Relates to the discussion in issue #6728
@ogoffart ogoffart added the ReadyToTest QA, please validate the fix/enhancement label Nov 18, 2019
@HanaGemela
Copy link
Contributor

Column resizing, filtering etc moved in #7619
2.6.1-daily20191127 (build 12791), macOS 10.15.1 shows cloud.domain.com (User Name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design & UX ReadyToTest QA, please validate the fix/enhancement type:bug
Projects
None yet
Development

No branches or pull requests

6 participants