Giter Club home page Giter Club logo

Comments (10)

pieroxy avatar pieroxy commented on July 24, 2024

Which version of the JavaScript library are you using ?

from lz-string.

SGE00 avatar SGE00 commented on July 24, 2024

version 1.3.5

from lz-string.

pieroxy avatar pieroxy commented on July 24, 2024

I don't seem to be able to decompress it myself. Do you have the uncompressed version at hand ?

from lz-string.

SGE00 avatar SGE00 commented on July 24, 2024

That is the problem. The page sends the decompressed version only, so no, sorry, no decompressed version at hand.

You can't try to walk through the decompressFromBase64 method and see where it goed wrong ?

from lz-string.

SGE00 avatar SGE00 commented on July 24, 2024

Sorry, please read:

That is the problem. The page sends the COMPRESSED version only, so no, sorry, no decompressed version at hand.

from lz-string.

pieroxy avatar pieroxy commented on July 24, 2024

Well, it goes wrong somewhere but I have no way of knowing if it is the compression or the decompression that had a problem in the first place - or if the String you gave me can ever be produced by the lib. It might be a network issue or anything else. I'm going to do some bruteforce test to see if I can reproduce this - a string that gives a compressed version that cannot be decompressed..

from lz-string.

SGE00 avatar SGE00 commented on July 24, 2024

Fair enough, I'll see if I can log the orginal string before it is compressed and then send you both when the errors occurs again. It happens +/- once in a week (depending on activity) so as soon as I have a version I will send it over.

from lz-string.

SGE00 avatar SGE00 commented on July 24, 2024

Logging (of original string) in place. Now waiting until error occurs...

from lz-string.

pieroxy avatar pieroxy commented on July 24, 2024

Good. On my end I've launched a few hundred of millions of compressions of random strings, and all decompress to the same string (using base64). Maybe the random strings I'm using don't trigger the bug... I was using Chrome.

I hope there is no sensitive informations in those strings, so we can get to the bottom of it quickly.

from lz-string.

SGE00 avatar SGE00 commented on July 24, 2024

Hi,

you can close this ticket. Appareantly is was because an onclick event was fired twice and so the original string was compressed twice.

Thx for your quick support...

from lz-string.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.