Author Topic: tar headers corrupt  (Read 3337 times)

0 Members and 1 Guest are viewing this topic.

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 861
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: tar headers corrupt
« Reply #15 on: April 19, 2016, 01:34:53 PM »
at this point, i would recommend having a zip backup (sure it takes up space, but you can guarantee a  1 time download and a better ziped file.....

i have done test on win 7 / win 10, and can cornfirm this error on his site, i will try my own pc to double check....

if i were on linux, i would attempt to repair the tar: (but if you plan to go public, then this option wouldn't be fesiable.....
http://riaschissl.bestsolution.at/2015/03/repair-corrupt-tar-archives-the-better-way/

other wise, we may need to update or fix the archive code in the HFS template for your situation:
this is the default template code from 2.3 f....

Code: [Select]
{.if|{.get|can archive.}|
<button id='archiveBtn' onclick='if (confirm("{.!confirm.}")) submit({}, "{.get|url|mode=archive|recursive.}")'>{.!Archive.}</button>
.}
<a href="{.get|url|tpl=list|sort=|{.if not|{.length|{.?search.}.}|{:folders-filter=\|recursive:}.}.}">{.!Get list.}</a>
</center>


and when i have free time, i will look nto scriptiong 7zip into it...
http://www.rejetto.com/forum/bug-reports/no-archive-since-2-3f/msg1060967/#msg1060967
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Follow members gave a thank to your post:


Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 861
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: tar headers corrupt
« Reply #16 on: April 22, 2016, 08:23:27 PM »
looking further into it, 7zip can be used to take in a http url and be done via comand line, building it into an archive button of a folder is a bit tricky-er and a bit complex for my time....


7zip cmd:
http://www.dotnetperls.com/7-zip-examples

cmd> 7z.exe (archive type switch) http:/path to folder/file archive.filetype

BUT, i did find this nifity javascript code that could ealiy be implement into HFS for zip support:
https://stuk.github.io/jszip/

https://stuk.github.io/jszip/documentation/examples.html

but that is rejeto department....

it also looks like - getting back on topic to his issue and post that a fesh download and archive of a tar is working...
« Last Edit: April 23, 2016, 07:56:25 PM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: tar headers corrupt
« Reply #17 on: April 24, 2016, 10:34:07 PM »
i'm sorry, i confirm 7zip only extracts 3 folders instead of 5. I just didn't pay enough attention, and verification of latest version reports an error.

Total Commander instead has no problem in handling it.
I've found that it happens with file paths longer than 100.

It took me hours, but now it should be able to produce TAR files that are good for 7zip as well.
You will get it in the next version, 2.3h, soon to be released
« Last Edit: April 24, 2016, 10:35:54 PM by rejetto »

Follow members gave a thank to your post:


Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile

Offline bitingsock

  • Occasional poster
  • *
  • Posts: 8
    • View Profile
Re: tar headers corrupt
« Reply #19 on: April 30, 2016, 05:43:40 PM »
Sorry about no response for a while.
2.3h fixes the problem. Thanks for all the work guys!