-
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
[10.0.3] occ maintenance:mimetype:update-js ==> failed the integrity check #28967
Comments
@Rello can you run this and make a PR with the result ? I believe this was caused by your mimetype changes and I forgot to check the part about rerunning this command. |
never mind I'll do this myself, it seems there might be other complications |
hmmm weird, it doesn't add the new mime types there: diff --git a/core/js/mimetypelist.js b/core/js/mimetypelist.js
index c87fce813d..e2002228ea 100644
--- a/core/js/mimetypelist.js
+++ b/core/js/mimetypelist.js
@@ -108,7 +108,5 @@ OC.MimeTypeList={
"x-office-presentation",
"x-office-spreadsheet"
],
- themes: {
- "example": []
-}
+ themes: []
}; |
Ok so it seems this command is only for mimetype aliasses. No aliases were added for m3u. That's fine. I'll run the script only to make sure the generated version matches to avoid the integrity error. |
PR here: #28969 |
this PR doesn't fix the expectaction that the "themes" folder exists, for that one, see #28966 |
The fix only ensures that this file is the same when regenerated, without modifications. If you add your own new aliases or theme related stuff, the integrity check might fail again on this file due to the modifications... We might need to exclude this file from the integrity check then. |
👍 |
|
@michaelstingl do you have a more exhaustive list of files that would be modified by that command ? |
PR here: #28973 I hope this is the only file. |
In general we need to find another way to deliver the same information, maybe have this file's information stored in the "config/" folder and then have a route to retrieve it: #28974 |
@phisch is the expert. |
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. |
Running
sudo -u www-data php occ maintenance:mimetype:update-js
(after workaround from #28966 (comment)) breaks integrity:Steps to reproduce
mkdir apps/theme-example/core/img/filetypes/
cp core/img/filetypes/folder*.* apps/theme-example/core/img/filetypes/
sudo -u www-data php occ maintenance:mimetype:update-js -vvv
Expected behaviour
modified
mimetypelist.js
shouldn't break integrityActual behaviour
The following list covers which files have failed the integrity check:
core/js/mimetypelist.js
Server configuration
Operating system:
Ubuntu 16.04.3 LTS
Web server:
Apache/2.4.18 (Ubuntu)
Database:
10.0.31-MariaDB-0ubuntu0.16.04.
PHP version:
PHP 7.0.22-0ubuntu0.16.04.1
ownCloud version: (see ownCloud admin page)
{"installed":"true","maintenance":"false","needsDbUpgrade":"false","version":"10.0.3.2","versionstring":"10.0.3 RC1","edition":"Enterprise","productname":"ownCloud"}
Updated from an older ownCloud or fresh install:
Updated from oC 9.1.x
Where did you install ownCloud from:
*.tar
Signing status (ownCloud 9.0 and above):
The content of config/config.php:
List of activated apps:
Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
LDAP configuration (delete this part if not used)
Client configuration
Browser:
Chrome 60
Operating system:
macOS Sierra 10.12.6
@phisch This is important to fix. Could you check?
The text was updated successfully, but these errors were encountered: