Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Mittwoch, 25. Februar 2015, 12:11

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.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »cvisto« (26. Februar 2015, 09:59)


2

Donnerstag, 26. Februar 2015, 17:39

Hi,

please always post a link to your not working example?

Btw - have you cleared the browser caches?

Best regards,
Klaus

Taurus

Schüler

Beiträge: 128

Wohnort: Belarus

Beruf: photographer & virtual tour developer

  • Nachricht senden

3

Samstag, 6. Juni 2015, 17:06

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 Elbrus
MebelRoom, ...

Windows 10x64 & krpano 1.19pr15

4

Sonntag, 7. Juni 2015, 21:28

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

Schüler

Beiträge: 128

Wohnort: Belarus

Beruf: photographer & virtual tour developer

  • Nachricht senden

5

Montag, 8. Juni 2015, 00:22

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 Elbrus
MebelRoom, ...

Windows 10x64 & krpano 1.19pr15