You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, February 25th 2015, 12:11pm

XML parsing error in FF and IE after xml public encryption

Hi.

I use krpano v1.18.2

I created custom krpano HTML5 viewer with "Krpano Tools" (Protect Tool tab)

Then I encrypt xml files using Encrypt Tool tab ("Use private encryption" option was unchecked).

Windows:
- Chrome - all works fine
- FF - xml parsing error
- IE - Invalid document syntax error

Without encryption all works fine. I tried to encrypt three xml files. One of them works even in encrypted state. Two others occur the above error.

What's wrong? Does anybody know.

Thanks in advance.

This post has been edited 1 times, last edit by "cvisto" (Feb 26th 2015, 9:59am)


2

Thursday, February 26th 2015, 5:39pm

Hi,

please always post a link to your not working example?

Btw - have you cleared the browser caches?

Best regards,
Klaus

Taurus

Trainee

Posts: 134

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

3

Saturday, June 6th 2015, 5:06pm

Hi!

really, after the encryption tour stops working in IE and Mozilla on the desktop

btw, on the mobile devices in iOS and Android (Chrome browser) is working fine

html5 - prefer

- work perfect in chrome in flash

- work perfect in opera in HTML5

- not work in mozilla in HTML5

- not work in IE in HTML5

html5 - auto - work perfect in opera, mozilla and chrome in flash

PS
do not pay attention to the content of menu items - the are process of development
slowing the creation of the menu in HTML5 associated with the use of autoheight textfields, I did not expect that this is a very long process..
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.19pr16

4

Sunday, June 7th 2015, 9:28pm

Hi,

the problem is that there is a 0-byte at the end of the decrypted menu.xml content.

I'm not sure where this might come from, either it was already there in the original xml file (please check your xml in a hex-editor) or it was added during encryption, but this is the reason for the problem.

For some browsers a 0-byte is no problem when converting bytes to strings, but some other browsers (like Firefox) are generating a invalid character for a 0-byte and this leads to the xml parser error.

For the next krpano release, I've added a special check for this - there 0-bytes in the xml will be automatically filtered out.

Best regards,
Klaus

Taurus

Trainee

Posts: 134

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

5

Monday, June 8th 2015, 12:22am

Thank you very much, Klaus!

I removed all the 00 bytes and everything was fine *w00t*
It remains to understand where they came from in my files *confused*
I always use a notepad2 but a distortion of the original text was the first time
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.19pr16