-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use fileid as string in web UI #30435
Conversation
|
|
|
|
|
|
Codecov Report
@@ Coverage Diff @@
## master #30435 +/- ##
=========================================
Coverage 61.59% 61.59%
Complexity 18505 18505
=========================================
Files 1090 1090
Lines 61108 61108
=========================================
Hits 37642 37642
Misses 23466 23466
Continue to review full report at Codecov.
|
seems previews and gallery already broken on master, so likely unrelated to this change |
I think I've nailed most of the cases. |
First run of drone had UI test fails at:
these are the only 3 places that the step So I suspect that there is some issue with the sharing permissions checkboxes. I don't see immediately in the UI test code where it tries to traverse any HTML elements... that contain the file id in their Let's see if it fails the same all the time... Edit: the latest pushes fixed it - last 2 drone runs pass. |
@phil-davis seems those problems disappeared? |
@PVince81 yes, after you pushed more changes it was passing, so I don't know if the first fails were just unfortunate (it seemed a big coincidence that it was sharing test steps that failed in the 3 sharing UI test suites). |
pinging more people to review the JS changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only question is about the way of casting to string
@@ -134,7 +134,7 @@ private static function extendShareInfo($share) { | |||
$share['mtime'] = $info->getMtime(); | |||
$share['permissions'] = $info->getPermissions(); | |||
$share['type'] = $info->getType(); | |||
$share['file_id'] = $info->getId(); | |||
$share['file_id'] = '' . $info->getId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meh
anything else or does the code look ok ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PVince81 I'd vote against hardcore casting by concatenation.
there are more clean ways to get string in PHP: strval(5)
or (string) 5
But it's up to you.
No other objections.
@VicDeo ok, since you insisted I'll replace "hardcore casting" 😄 |
591a38f
to
e255991
Compare
replaced 4 occurrences to strval in PHP code and rebased + squashed |
why is this upload test failing ? it seems to not find the lorem file |
It is usually related to a lock left somewhere - I think the upload-overwrite fails because the file is already locked, then the content is checked and of course is the old content, not the expected new content. If you get unlucky, this happens to you. This is the one I notice happening the most. |
Go to the owncloud-log step and search for |
suspiciously related to a "generating preview" message above it. |
raised here: #30506 |
trying my luck again at the CI roulette... |
@PVince81 you will win if you rebase |
Because of limitations to JS max int, we now use strings instead of integers.
@ownclouders rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
Automated rebase with GitMate.io was successful! 🎉 |
e255991
to
48140f1
Compare
You are so lucky
I restarted |
thanks for the luck. maybe someone should start a service where people can pool their luck in a single location for greater luck... |
@PVince81 Is this to be backported so that these huge file ids can work in a 10.0.* release? |
This is a bit dangerous, so no |
@PVince81 We will need to have this functionality for our service, do you expect to to release for 10.1.*? |
This will be in the next major release, yes. But not the minor one due to bigger risks. I'm not sure whether the current automated tests already cover for all the cases touched by this PR. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Because of limitations to JS max int, we now use strings instead of
integers.
Related Issue
Fixes #30434
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: