Sample file - Site Info - Import Materials From Archive File

35 views
Skip to first unread message

Carlos Fernando Gonçalves

unread,
Jul 29, 2016, 3:29:01 PM7/29/16
to dev sakai

Hi all.
I'm trying to use in Worksite ->Site Info the "Import from File Archive" tool.

I use a zip file but displayed this message:

Alert: Please choose a valid archive file to import.


Can anyone tells me what kinds of files are accepted for import?
Help me!

Best Regards

Carlos

Adam Marshall

unread,
Jul 29, 2016, 4:03:18 PM7/29/16
to Carlos Fernando Gonçalves, dev sakai

Just yesterday, I found this to be these case on Nightly master and it is broken on our local deployment of Sakai 11.

I think it does work on our version of 10 though.

Which version of Sakai are you looking at?

It would appear to be an unfixed bug, whether it is an unknown bug as well, I do not know.

Adam

sent from my phone

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

Carlos Fernando Gonçalves

unread,
Jul 29, 2016, 4:25:09 PM7/29/16
to Adam Marshall, dev sakai

Hi Adam.

Thank you for help.

I am using the Sakai 10.4

I also used to test this site:

https://qa10-mysql.nightly.sakaiproject.org/

The same happened problem.

Help me!

Best Regards,
Carlos
--


Adam Marshall

unread,
Jul 29, 2016, 6:21:47 PM7/29/16
to Carlos Fernando Gonçalves, dev sakai
I'm afraid I have no suggestions. Others on this list may, I suspect it may still be possible, possibly via the Admin Workspace but I dont know  any details.

I'm sure someone will pipe up and give you some suggestions.

adam

Adam Marshall

unread,
Aug 1, 2016, 7:28:23 AM8/1/16
to Carlos Fernando Gonçalves, dev sakai

My colleague tell me you should do this

 

1/ login to your server & place the zip file of the site archive into the “archives” folder. This is the place where Sakai saves site archives – if you cant find it, try archiving a site then trying to find the corresponding exported zip file on your server.

 

2/ go to admin workspace > archives tool and enter the name of the zip file that you want to create your site from, eg, mysite.zip

 

I believe the site will be created correctly.

 

Adam

 

--

 

** Note change of email address to adam.m...@it.ox.ac.uk **

 

Dr A C Marshall, WebLearn Service Manager,

Technology Enhanced Learning , Academic IT

IT Services, 13 Banbury Rd, Oxford. OX2 6NN.

--

Carlos Fernando Gonçalves

unread,
Aug 1, 2016, 3:53:27 PM8/1/16
to Adam Marshall, dev sakai
Hi Adam.
Thanks.

I performed some tests.
1) Login to Sakai

2) Go to course site -> Site Info

3) Tool Import from Archive File

4) Upload test ZIP file

Error received: "Alert: Please choose a valid archive file to import."

Something interesting.

In SakaiArchiveFileParser.java

This piece.


    public boolean isValidArchive(byte[] fileData) {
        if (super.isValidArchive(fileData)) {
            if (!fileExistsInArchive("/import_mappings.xml", fileData))
                return false;
            return true;
        } else return false;
    }

In fact, the files that I'm in test using does not  import_mappings.xml


What would be the type of file that contains import_mappings.xml?

My version Sakai is 10.4.

Help me.

Best regards,
Carlos




--


Adam Marshall

unread,
Aug 1, 2016, 4:35:06 PM8/1/16
to Carlos Fernando Gonçalves, dev sakai
IMS Common Cartridge? Or IMS Content Package?

adam

Carlos Fernando Gonçalves

unread,
Aug 2, 2016, 1:48:50 PM8/2/16
to Adam Marshall, dev sakai
Hi Adam.

I found a reference with step-by-step instructions here:

https://courses.durhamtech.edu/wiki/images/5/52/ImportBbTests.pdf

This document uses the Blackboard system to generate a file.
I do not have access to a Blackboard system.

Another problem would be the information issue of the file /import_mappings.xml

Do you have a hint of what contains this file?

Best Regards,

Carlos





--


Adam Marshall

unread,
Aug 2, 2016, 2:59:05 PM8/2/16
to Carlos Fernando Gonçalves, dev sakai

I think the import from architectural be is broken, you'll have to use the other method that I mentioned. I'm pretty sure that is working

sent from my phone

Steve Swinsburg

unread,
Aug 2, 2016, 10:02:28 PM8/2/16
to Adam Marshall, sakai-dev, Carlos Fernando Gonçalves

If using the admin workspace archive tool, it has to be the directory name, not the zip. It's a bit weird.

You can now list the archives that have been created and should be able to download them.

If you are using site info, upload the zip that the archive tool gives you.

Cheers
Steve

sent from my mobile

Mitch Golden

unread,
Aug 4, 2016, 6:33:30 PM8/4/16
to Steve Swinsburg, Adam Marshall, sakai-dev, Carlos Fernando Gonçalves
Right. It has to be unzipped.  Furthermore, if you do use a zip, it will tell you that it succeed, when it hasn't done anything.  On the other hand, when you use a directory it will succeed, but not give you any message at all.  You'll know it's working if it takes a while.


Mitch Golden
CTO
Noodle Partners, Inc.
59 Chelsea Piers, Suite 200, New York, NY, 10011
+1 646 289 7834 | mgo...@noodle.com | noodle-partners.com

 

To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+unsubscribe@apereo.org.


To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.




--






--


--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+unsubscribe@apereo.org.

To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+unsubscribe@apereo.org.

Steve Swinsburg

unread,
Aug 7, 2016, 6:31:21 PM8/7/16
to Mitch Golden, Adam Marshall, sakai-dev, Carlos Fernando Gonçalves

The importance from site gives feedback IIRC.

The admin one doesn't. I was working on a real time log viewer that could be embedded into the admin workspace, bamboo/Travis style. I should resurrect that work.

sent from my mobile

Reply all
Reply to author
Forward
0 new messages