Skip to content

Prevent double slash in shareinfo request URL - #13677

Merged
PVince81 merged 1 commit into
masterfrom
s2s-doubleslashrequest
Jan 26, 2015
Merged

PVince81 merged 1 commit into
masterfrom
s2s-doubleslashrequest

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Steps to reproduce:

  1. Share a folder and type "user1@host/owncloud/" (with a trailing slash)
  2. Accept the folder as user1
  3. Navigate into it

Before this fix: "unexpected error", the resulting URL is: 'http://localhost/owncloud//index.php/apps/files_sharing/shareinfo?t=0MpaFg7snUrettb' (notice the double slash) and causes a 500 internal server error

After this fix: works

@schiesbn @icewind1991 @MorrisJobke @nickvergessen

@PVince81 PVince81 added this to the 8.0-current milestone Jan 26, 2015
@PVince81

Copy link
Copy Markdown
Contributor Author

@nickvergessen

Copy link
Copy Markdown
Contributor

@PVince81 I just created an issue with similar stuff: #13678
Maybe you can extend your patch so they all work?

@PVince81

Copy link
Copy Markdown
Contributor Author

Ah, so you too had the same misfortune for your first trial of s2s from the share dropdown ? 😉

@ghost

ghost commented Jan 26, 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/8000/
🚀 Test PASSed. 🚀

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

👍

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 2 new issues

@icewind1991

Copy link
Copy Markdown
Contributor

👍 looks good

@PVince81

Copy link
Copy Markdown
Contributor Author

Let's merge this for now.

@nickvergessen said he'd look into other cases from his ticket.

@PVince81 PVince81 closed this Jan 26, 2015
@PVince81 PVince81 reopened this Jan 26, 2015
PVince81 pushed a commit that referenced this pull request Jan 26, 2015
Prevent double slash in shareinfo request URL
@PVince81
PVince81 merged commit 44d69d7 into master Jan 26, 2015
@PVince81
PVince81 deleted the s2s-doubleslashrequest branch January 26, 2015 16:17
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 14, 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.

5 participants