Skip to content

Better finding the remote URL from user input in share dropdown - #13839

Merged
MorrisJobke merged 1 commit into
masterfrom
issue/13678-improve-remote-domain-detection-in-sharedropdown
Mar 11, 2015
Merged

MorrisJobke merged 1 commit into
masterfrom
issue/13678-improve-remote-domain-detection-in-sharedropdown

Conversation

@nickvergessen

Copy link
Copy Markdown
Contributor

@nickvergessen nickvergessen added this to the 8.0.1-next-maintenance milestone Feb 2, 2015
Comment thread tests/lib/share/helper.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't we at some point in time agree on using provides...() as naming convention for dataProviders?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@nickvergessen
nickvergessen force-pushed the issue/13678-improve-remote-domain-detection-in-sharedropdown branch from 2b5927a to a4d0073 Compare February 3, 2015 07:08
@PVince81

PVince81 commented Feb 9, 2015

Copy link
Copy Markdown
Contributor

Had a quick test, works 👍

@nickvergessen
nickvergessen force-pushed the issue/13678-improve-remote-domain-detection-in-sharedropdown branch from a4d0073 to 8522ca8 Compare February 9, 2015 16:12
@nickvergessen

Copy link
Copy Markdown
Contributor Author

as per @schiesbn the protocol is fine and should not be removed, so I removed that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's why the explode has a , 2
But I can add a test for it, if you want me to ;)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a test for it.

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.1-next, 8.0.1-next-maintenance Feb 20, 2015
@DeepDiver1975

Copy link
Copy Markdown
Contributor

pr against master ->milestone 8.1

@nickvergessen
nickvergessen force-pushed the issue/13678-improve-remote-domain-detection-in-sharedropdown branch from 8522ca8 to 68e7d3d Compare February 23, 2015 09:52

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty user prefix - will be fun as soon as it hits the remote containing @

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"fun" means it splits it to name https://test:foobar and domain localhost and will contact localhost whether the userid https://test:foobar exists... which is not the case, since neither slash nor colon are allowed. But I guess we can make this some kind of validate and avoid the request.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anyway, this is part of the aliases-PR that @schiesbn is working on?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed some tests never the less

@nickvergessen
nickvergessen force-pushed the issue/13678-improve-remote-domain-detection-in-sharedropdown branch from 68e7d3d to b180724 Compare February 23, 2015 10:29
@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 3 new issues, 3 updated code elements

@ghost

ghost commented Feb 23, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/9846/
Test PASSed.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Works 👍

MorrisJobke added a commit that referenced this pull request Mar 11, 2015
…main-detection-in-sharedropdown

Better finding the remote URL from user input in share dropdown
@MorrisJobke
MorrisJobke merged commit dbade19 into master Mar 11, 2015
@MorrisJobke
MorrisJobke deleted the issue/13678-improve-remote-domain-detection-in-sharedropdown branch March 11, 2015 13:38
@MorrisJobke

Copy link
Copy Markdown
Contributor

I found #14799 while testing, but this isn't limited to this PR

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guessing "Enter remote user syntax" for S2S share is bad UX

5 participants