jeff-zucker / solid-content-manager

A syntax-highlighting editor and file manager for Solid data stores.
https://jeff-zucker.github.io/solid-content-manager/
MIT License
32 stars 14 forks source link

add zip/unzip of file/folder with acl #23

Closed bourgeoa closed 3 years ago

bourgeoa commented 4 years ago

@jeff-zucker I saw you commit my last PR #21 which was tested on https://www.bourgeoa.ga/solid-ide-v1 It was working seemingly very well I wanted to test it on https://bourgeoa.github.io/solid-ide but did not realized it was added to the open PR #21

Problem : it did not work on github.io with the following error :

window.mimer is not afunction

I don't know why

I found that replacing the mimer CDN with a version in dist/ solved the problem. That is PR #22

Some comments on zip/unzip

and now . As the actual version is broken I am commiting PR #22 . I can amend or revert everything . to check that unzip works correctly I uploaded zip file including different bad type of acl.

jeff-zucker commented 4 years ago

Do you have full rights to merge commits? Perhaps I should just stay out of the way and let you merge when you're ready.

On Fri, Apr 17, 2020 at 10:33 AM Alain Bourgeois notifications@github.com wrote:

@jeff-zucker https://github.com/jeff-zucker I saw you commit my last PR #21 https://github.com/jeff-zucker/solid-ide/pull/21 which was tested on https://www.bourgeoa.ga/solid-ide-v1 It was working seemingly very well I wanted to test it on https://bourgeoa.github.io/solid-ide but did not realized it was added to the open PR #21 https://github.com/jeff-zucker/solid-ide/pull/21

Problem : it did not work on github.io with the following error :

window.mimer is not afunction

I don't know why

I found that replacing the mimer CDN with a version in dist/ solved the problem. That is PR #22 https://github.com/jeff-zucker/solid-ide/pull/22

Some comments on zip/unzip

  • I took the inspiration from Otto-AA solid-file-manager (he zipp without acl and unzip acl without control)
  • I amended his work to zip with acl and unzip with control on acl
  • control on acl are the following : (done using solid-file-client rdf.query) . it is a valid turtle (this is made by N3) . it must have either webId or everybody with 'Control' . acl 'accessTo' is valid

and now . As the actual version is broken I am commiting PR #22 https://github.com/jeff-zucker/solid-ide/pull/22 . I can amend or revert everything . to check that unzip works correctly I uploaded zip file including different bad type of acl.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jeff-zucker/solid-ide/issues/23, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKVJCJEYRABFWRERQ2QAVBLRNCHH5ANCNFSM4MK5KQYA .