-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix deprecated calls in files_reader app #108
base: master
Are you sure you want to change the base?
Conversation
@@ -12,20 +12,20 @@ | |||
|
|||
namespace OCA\Files_Reader; | |||
|
|||
\OCP\JSON::callCheck(); | |||
\OCP\JSON::checkLoggedIn(); | |||
\OC_JSON::callCheck(); |
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.
FYI: you replaced a deprecated public API with a private API that is subject to change at any time without warning (can even happen within minor version of the Nextcloud server because these are not supposed to be used in apps).
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.
These files should be replaced with proper controllers, then you don't have to use any of these private APIs. See https://docs.nextcloud.com/server/14/developer_manual/app/controllers.html for more info on that.
Hmm … now I have problem with OPDS. Internal server error → https://github.com/Yetangitu/owncloud-apps/tree/cf484a2ab4a77c350be63522cd03bb8e7fd76074/files_reader
Of course without fixed files_reader OPDS works. For info. |
I'm getting this error with these commits: I think this is the relevant section of Hooks.php:
|
@onliniak @scurrvy2020 I've managed to get this to work, you can get my version here: Related code: |
@manvalls
|
Right, didn't test opds. But hey, at least the reader is working! :D |
@manvalls Your version works well, except that it doesn't open *.cbr/cbz files even if they are enabled in the settings menu. |
I fixed files_opds, if any of you is interested : |
Alright guys I've merged @hcharbonnier's changes and fixed the cbr/cbz issue: |
@manvalls are all of your changes in a pull request? (I'm just curious) Thanks so much for making these changes so it will work in 14. |
Seems to be having issues saving settings and opening to last page opened. |
How is it looking for this app and NC15? Has anyone tried it? |
The new grid view button introduced by Nextcloud 15 overlaps the close button of this app, otherwise it works pretty well. |
Ok, I've upgraded and it works just fine. The grid view button gets in the way of other apps as well. |
@e-alfred I've been using your patches through NC16 and it was working great. However, with NC17 there are some changes and it seems the frame to display the book isn't being handled correctly. Are you still trying to maintain this app? I noticed on mobile (chrome and firefox) the app will open in a new tab and everything renders correctly. Do you know of a way to get it to open a new tab on desktop? |
i took a stab @ files_opds #121 |
@scurrvy2020 I still use @manvalls release which is more complete than my quick fix. I can reproduce your problem and mobile works because it loads the viewer in a new tab without the Files app interfering. |
@scurrvy2020 I fixed this in e-alfred@0678c79. It loads in a new tab now instead of an Iframe. |
Thanks a lot! I'll add it to @manvalis fork. |
@scurrvy2020 I could start to maintain this app and push a new version to the app store (under a different name) if some people want to help me fix problems that arise. Maybe @manvalls @noci2012 @hcharbonnier want to help out? |
why not. (i am no wizard on the Nextcloud API, maybe an apprentice, if a can help i will). |
@e-alfred I'm in! I think it would be great. I was thinking of doing that myself, but I'm still too novice. |
I will publish the app into the app store once again and therefore already requested a certificate for it: nextcloud/app-certificate-requests#293 If anynone wants to help me maintaining the app, all PRs are welcome on my repository. |
Thanks! Still working fine with your latest patches.
…On Sat, 21 Mar 2020, 06:11 e-alfred, ***@***.***> wrote:
I will publish the app into the app store once again and therefore already
requested a certificate for it: nextcloud/app-certificate-requests#293
<nextcloud/app-certificate-requests#293>
If anynone wants to help me maintaining the app, all PRs are welcome on my
repository.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#108 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5J4B3I7UFMEHEDPYUNZWDRIPSYTANCNFSM4FXSOY5A>
.
|
Future app development will happen in this repository: https://github.com/e-alfred/epubreader @manvalls @noci2012 @everybody Any help is appreciated to continue the the development of this app. |
Hello,
I fixed up the deprecated OCP\JSON and OCP\Config calls for Nextcloud 14+.