Skip to content

fix(filesystem): unexpected error when saving file lead to crashing the app#2307

Closed
guitarooman14 wants to merge 1 commit intoionic-team:mainfrom
guitarooman14:fix/crash_app_on_saving_corrupted_file
Closed

fix(filesystem): unexpected error when saving file lead to crashing the app#2307
guitarooman14 wants to merge 1 commit intoionic-team:mainfrom
guitarooman14:fix/crash_app_on_saving_corrupted_file

Conversation

@guitarooman14
Copy link

When you call the writefile plugin method from ionic with corrupted data or with not base64 data, it leads to a total crash of the app because the exception is not caught by the writefile method and it is only caught by the bridge.java that rethrow a runtimeException.

catch (Exception ex) { Logger.error("Serious error executing plugin", ex); throw new RuntimeException(ex); }

@OS-pedrogustavobilro
Copy link
Contributor

Hey @guitarooman14, I don't think this issue happens in the latest version of the file plugin - 8.X

Therefore I'm closing this issue. If you think it happens - please open an issue in the new repository for filesystem - https://github.com/ionic-team/capacitor-filesystem

We do appreciate your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants