core icon indicating copy to clipboard operation
core copied to clipboard

Ensure Download and Backup data and assets buttons work in Windows

Open jtesser opened this issue 13 years ago • 6 comments

jtesser avatar May 07 '13 20:05 jtesser

And TimeMachine on windows too

Will


Will Ezell http://dotcms.com phone: (305) 900-2001 ext. 7010 direct: (978) 294-9429 https://www.google.com/voice/b/0?pli=1#phones skype: wezell1

On Tue, May 7, 2013 at 4:01 PM, Jason Tesser [email protected]:

— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/2810 .

dotcmsCodeReview avatar May 07 '13 20:05 dotcmsCodeReview

we will test again but that is working i believe

jtesser avatar May 07 '13 20:05 jtesser

Here's what I've found from some local tests I've been doing with Export/Import features:

  1. The Export runs fine, even includes contents' old versions.

  2. The Import doesn't handle webforms. The code that handles webforms is commented on the ImportExportUtil. For some clients that want to migrate data from one DB server to another (e.g., SQL Server to Postgres), this doesn't work because they still want to keep their webforms.

  3. In case web_forms are enabled on code, it breaks when importing the webforms xml files. Since WebForms are not instances of Identifiers (just have a regular, string-type web_form_id), the code handles the id as Long and it breaks.

  4. Users that don't have first/last name won't be exported and it will break the whole Users import process. I don't think skipping these users' import is an option. In my local, I added "Unknown" as first name and "User" as last name if they don't exist on the User object to be imported. I know this is a weird case since these two fields are required on all User objects, but I had these results locally with a dump of a client's db and had found just 3 users without fist/last name.

  5. In case the code is edited to handle web forms ids as string, you should keep an eye on tables that still have Long-type ids, like Language and UserPreferences.

joseorsini avatar May 07 '13 20:05 joseorsini

About item 4), one of these users is "default" user. I know this user is created without first/last name but for some reason, the UserAPI was unable to verify this user when it was read by the import process. The validation exists on code, but didn't work with the data I have local.

joseorsini avatar May 07 '13 21:05 joseorsini

For the custom ImportExportUtil.java I sent you, Daniel, these lines should be commented

//classesWithIdentity.add("WebForm"); //sequences.put("web_form", "web_form_seq");

I uncommented them on a local test and the import failed.

joseorsini avatar May 17 '13 18:05 joseorsini

Fixed....

bryanboza avatar Jun 18 '15 15:06 bryanboza