KBG88 / cpassman

Automatically exported from code.google.com/p/cpassman
0 stars 0 forks source link

Cannot import KeePass 2.16 XML #194

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I tried importing a KeePass 2.16 XML File into TeamPass but it won't upload the 
file. In Chrome and Firefox I get the Error "Database.xml (8.26MB) - IO Error" 
as soon as I try to upload the file. IE stops at 84%.

What steps will reproduce the problem?
1. Log in as Administrator
2. Import Items from file (CSV/KeePass XML) -> Switch to Keepass XML
3. Choose XML-File

What version of the product are you using?
TeamPass 2.0

On what operating system? With what Browser (IEx, FFx, ...)
Client: Win 7 x64, IE9, Chrome 15, Firefox 8

Thanks,

Christoph

Original issue reported on code.google.com by Marker...@gmail.com on 28 Nov 2011 at 12:40

GoogleCodeExporter commented 9 years ago
Edit: It looks like the file upload does not work properly. CSV upload works 
without any problems, XML-files dont apper in ../files

Original comment by Marker...@gmail.com on 30 Nov 2011 at 3:10

GoogleCodeExporter commented 9 years ago
Edit 2: Okay...I'm an idiot. It didn't upload because my apache server had an 
upload limit set...
Now the upload seems to work (with IE9) but I get the following message:

Can't read the file! It must be a KeePass file.

I used KeePass 2.16. I know, that KeePass changed something with it's database 
file with the last version (you cannot open 2.16 files with < 2.16). Maybe they 
changed something with export too?

The apache error.log:
[Fri Dec 02 13:47:51 2011] [error] [client 172.30.96.53] PHP Notice:  Undefined 
variable: _SESSION in /var/www/cpassman/includes/settings.php on line 23
[Fri Dec 02 13:47:51 2011] [error] [client 172.30.96.53] PHP Notice:  
date_default_timezone_set(): Timezone ID '' is invalid in 
/var/www/cpassman/includes/settings.php on line 23
[Fri Dec 02 13:47:51 2011] [error] [client 172.30.96.53] PHP Notice:  Undefined 
index: type in /var/www/cpassman/includes/libraries/uploadify/uploadify.php on 
line 64

First to entries seem to be a "standard" error. It occures as soon as you go to 
cpassman.

Thank you, 

Christoph

Original comment by Marker...@gmail.com on 2 Dec 2011 at 12:52

GoogleCodeExporter commented 9 years ago
I'd to check what has changed in the export format from keepass.

Thanks for reporting.

Nils

Original comment by nils.cpa...@gmail.com on 2 Dec 2011 at 7:36

GoogleCodeExporter commented 9 years ago
Thank you Nils, please let me know if I can help you testing.

Original comment by Marker...@gmail.com on 5 Dec 2011 at 12:18

GoogleCodeExporter commented 9 years ago
I've done several tests with 2.16 version and I've got no errors.
The XML is always the same.

Hum ... there must be something else! I'll check more deeply the errors you get

Nils

Original comment by nils.cpa...@gmail.com on 5 Dec 2011 at 8:20

GoogleCodeExporter commented 9 years ago
Can you check in settings.php file, if you have an @ in beginning of line 23 
(=> @date_default_timezone_set($_SESSION['settings']['timezone']);)

In file includes\libraries\uploadify\uploadify.php at line 64, replace
if ( $_POST['type'] == "modification" ){
by
if ( isset($_POST['type']) && $_POST['type'] == "modification" ){

Please tell me if ok

Nils

Original comment by nils.cpa...@gmail.com on 5 Dec 2011 at 8:23

GoogleCodeExporter commented 9 years ago
Hi Nils,

no @. date_default_timezone_set($_SESSION['settings']['timezone']);
I added the @.

I replaced the line you pasted in uploadify.php.

New Error Messages:

[Mon Dec 05 21:31:06 2011] [error] [client 172.30.2.65] PHP Notice:  Undefined 
variable: _SESSION in                                                           

/var/www/cpassman/includes/libraries/uploadify/uploadify.php on line 39
[Mon Dec 05 21:31:06 2011] [error] [client 172.30.2.65] PHP Notice:  
date_default_timezone_set(): Tim                                                
                                                           ezone ID '' is 
invalid in /var/www/cpassman/includes/libraries/uploadify/uploadify.php on line 
39

Christoph

Original comment by Marker...@gmail.com on 5 Dec 2011 at 8:33

GoogleCodeExporter commented 9 years ago
EDIT: The first previous error messages appeared as soon as I launched teampass.
The new messages appear when I try to import a KeePass XML.

ALSO: Is it possible teampass has a problem parsing the xml file because it is 
too huge? My file I try to import is about 284k lines long and 8MB in size.

Christoph

Original comment by Marker...@gmail.com on 5 Dec 2011 at 8:38

GoogleCodeExporter commented 9 years ago
Hi Nils,

I've tried it with another KeePass-File (a lot smaller than my main file; about 
12k lines) and it works just fine. Do you have any known character 
incompatibilities?

Christoph

Original comment by Marker...@gmail.com on 9 Dec 2011 at 7:14

GoogleCodeExporter commented 9 years ago
Hi Christoph,

As far as I know there should not be any unsupported characters but the problem 
you're facing makes really think to such a problem ... damn!

I've got to do several tests.

Can you send me a list of special characters you may using in labels?

Thanks

Nils

Original comment by nils.cpa...@gmail.com on 10 Dec 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Hi Nils,

I'll try to provide you with the information you need tomorrow. 

Christoph

Original comment by Marker...@gmail.com on 11 Dec 2011 at 4:50

GoogleCodeExporter commented 9 years ago
Hi Nils,

I tried to make a list with all used characters but I don’t exactly know how 
to do that. As far as I can see you can safely assume that we use every 
possible character usually writable (including the German umlauts ä, ö, ü 
and ß).

But I might have news for you. I have played a bit with my XML-File and noticed 
something very odd. If I try to import a bunch of sub-folders in my main 
customer folder it'll abort the import because it apparently does not look like 
KeePass XML. But if I only export only one folder at a time it works (though i 
don't think it's possible for me to import our folders one by one, because we 
have a hundrets of them).

Christoph

Original comment by Marker...@gmail.com on 13 Dec 2011 at 4:10