PaulLereverend / NextcloudExtract

Bring extraction to your nextcloud web interface
GNU Affero General Public License v3.0
51 stars 16 forks source link

[rar] Can't open .rar (Nextcloud & ownCloud) #25

Open prsnbrg opened 5 years ago

prsnbrg commented 5 years ago

Hey, unrar is a paid package, I have decided to unrar-free.

When testing with a .rar archive from the internet it could not be unpacked.

This is the error: {"reqId":"WLRrt5FxZc7UezDCRNKd","level":3,"time":"2019-07-06T14:35:49+02:00","remoteAddr":"192.168.0.205","user":"root","app":"PHP","method":"POST","url":"\/owncloud\/index.php\/apps\/extract\/ajax\/extractRar.php","message":"Undefined offset: 0 at \/var\/www\/owncloud\/apps\/extract\/lib\/Controller\/ExtractionController.php#144"}

Same error at Nextcloud: {"reqId":"SZx7o6sdNphI4axLFwUl","level":3,"time":"2019-07-11T11:30:40+00:00","remoteAddr":"192.168.0.55","user":"root","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/extract\/ajax\/extractRar.php","message":"Undefined offset: 0 at \/var\/www\/nextcloud\/apps\/extract\/lib\/Controller\/ExtractionController.php#147","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/75.0.3770.100 Safari\/537.36","version":"15.0.10.0"}

I use ownCloud 10.1.1. I have no problems with .zip archives.

PaulLereverend commented 5 years ago

Hi, What is the OS of your server ?

prsnbrg commented 5 years ago

System OS: Raspbian GNU/Linux 9 Webserver: Apache/2.4.25 (Raspbian) PHP: 7.0.33-7+0~20190503101027.13+stretch ~1.gbp26f991 MySQL: 10.1.38-MariaDB-0+deb9u1

Installed packages for unpacking: p7zip, p7zip-full, php-zip, php7.0-zip, unzip, zip, unar, unrar-free

PaulLereverend commented 5 years ago

Can you try this version https://github.com/PaulLereverend/NextcloudExtract/releases/download/1.2.1.0/extract.tar.gz

prsnbrg commented 5 years ago

Now that's the mistake: {"reqId":"fkld3u6PHKrSqgqqnuSB","level":3,"time":"2019-07-11T13:59:22+02:00","remoteAddr":"192.168.0.55","user":"root","app":"PHP","method":"POST","url":"\/owncloud\/index.php\/apps\/extract\/ajax\/extractRar.php","message":"Undefined variable: PATH at \/var\/www\/owncloud\/apps\/extract\/lib\/Controller\/ExtractionController.php#147"}

But I think it's going in the right direction, thank you.

PaulLereverend commented 5 years ago

Hi, Sorry for the delay, i'm back and I will fix this asap

prsnbrg commented 5 years ago

Hey, when do you think you'll fix it?

PaulLereverend commented 4 years ago

Hi ! Sorry for the delay. Should be fixed in latest update 247a7aa. Feel free to tell me if it's not working.