Skip to content

Handling long paths properly in \OC\Files\View - #8547

Merged
DeepDiver1975 merged 1 commit into
masterfrom
path-length-master
May 28, 2014
Merged

DeepDiver1975 merged 1 commit into
masterfrom
path-length-master

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

We now support a maximum path of 4000 characters.

Php is limiting us to 4096 (260 chars on Windows 👯).
Due to maximum column length on Oracle for a varchar columns being 4000 - this is our new max path length. (I don't want to summon this migration horror on us)

@karlitschek @craigpg @icewind1991 @PVince81 @schiesbn

This is no the end of the road - more to come .....

further tasks #8571

@DeepDiver1975 DeepDiver1975 changed the title [WIP] adding tests for long paths Handling long paths properly in \OC\Files\View May 13, 2014
@icewind1991

Copy link
Copy Markdown
Contributor

Looks good 👍

Comment thread tests/lib/files/view.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.

some left over from rebase.

beside that it looks good 👍

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.

WTF! Thanks @schiesbn

@ghost

ghost commented May 15, 2014

Copy link
Copy Markdown

@MorrisJobke

Copy link
Copy Markdown
Contributor

Error got thrown but there is no user feedback, why nothing happens. The request has just 500 as error code.

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@MorrisJobke this did happen on which operation? THX

@MorrisJobke

Copy link
Copy Markdown
Contributor

@DeepDiver1975 "New" > "Folder" > Enter name with more than 4000 characters

@ghost

ghost commented May 23, 2014

Copy link
Copy Markdown

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@MorrisJobke okay - this is a whole different topic - any exception being thrown as of today will be caught in index.php which will return http status code 500 and the html error page, which is no expected by the client code.

I'll try to come up with a solution in an separate PR

# The first commit's message is:

adding tests for long paths
increment path field in database up to 4000 (maximum for Oracle - otherwise we could use php's 4096)
increment version to trigger database migration
adding unit test for too long path

# This is the 2nd commit message:

fix too long path
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@karlitschek

Copy link
Copy Markdown
Contributor

👍 Should be good enough for now. And 640k is enough for every application.
For the youngsters here the link: http://quoteinvestigator.com/2011/09/08/640k-enough/ ;-)

@ghost

ghost commented May 28, 2014

Copy link
Copy Markdown

DeepDiver1975 added a commit that referenced this pull request May 28, 2014
Handling long paths properly in \OC\Files\View
@DeepDiver1975
DeepDiver1975 merged commit 3ef9570 into master May 28, 2014
@DeepDiver1975
DeepDiver1975 deleted the path-length-master branch May 28, 2014 22:08
@MorrisJobke

Copy link
Copy Markdown
Contributor

@DeepDiver1975 Is #8547 (comment) solved?

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@MorrisJobke now - please open a new issue and assign the technical dept label - THX

@MorrisJobke MorrisJobke mentioned this pull request Aug 4, 2014
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 16, 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.

6 participants