Skip to content

Do not abort with an exception when a default app can not be enabled - #23448

Merged
DeepDiver1975 merged 1 commit into
masterfrom
issue-22993-soften-exception-on-enable-default-app
Mar 22, 2016
Merged

DeepDiver1975 merged 1 commit into
masterfrom
issue-22993-soften-exception-on-enable-default-app

Conversation

@nickvergessen

Copy link
Copy Markdown
Contributor

Steps to error

  1. Install activity app
  2. Remove values from appconfig, without deleting the activitiy table itself
  3. Trigger an update of owncloud (change config.php version to a lower version)

Expected

Update prints an error, but ownCloud is usable after the update

Actual

Update breaks and the update is tried for each refresh.

Fix #22993

@PVince81 @MorrisJobke @DeepDiver1975

@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @DeepDiver1975, @karlitschek and @georgehrke to be potential reviewers

@PVince81

Copy link
Copy Markdown
Contributor

Looks fine 👍

@karlitschek

Copy link
Copy Markdown
Contributor

👍

@MorrisJobke

Copy link
Copy Markdown
Contributor

In this case it works, but what if the exception has a more concrete reason like "DB is gone" - owncloud will simply continue and be in a failed state. What we need to fix here is to properly run the migration of the DB tables.

@MorrisJobke

Copy link
Copy Markdown
Contributor

: -1 : from me for the meantime

@DeepDiver1975 Your opinion on this please

@nickvergessen

Copy link
Copy Markdown
Contributor Author

How can \Doctrine\DBAL\Exception\TableExistsException TableExistsException mean that the DB is gone?! Also we don't do anything that could do any harm

@nickvergessen

Copy link
Copy Markdown
Contributor Author

And no, running "proper migrations" for improper content is not the way to go, as per #22993 (comment)

@MorrisJobke

Copy link
Copy Markdown
Contributor

How can \Doctrine\DBAL\Exception\TableExistsException TableExistsException mean that the DB is gone?! Also we don't do anything that could do any harm

Sorry. I misread this. I'm okay with this change then 🙈

DeepDiver1975 added a commit that referenced this pull request Mar 22, 2016
…on-enable-default-app

Do not abort with an exception when a default app can not be enabled
@DeepDiver1975
DeepDiver1975 merged commit 7426be0 into master Mar 22, 2016
@DeepDiver1975
DeepDiver1975 deleted the issue-22993-soften-exception-on-enable-default-app branch March 22, 2016 09:20
@lock

lock Bot commented Aug 6, 2019

Copy link
Copy Markdown

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 6, 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.

Update from 8.2.2 to 9.0.0-1.1 failed - Doctrine\DBAL\Exception\TableExistsException Table 'oc_gallery_sharing' already exists

6 participants