Thread overview
[OT] this is why you shouldn't serialize everything
Sep 11
Kagamin
6 days ago
Shachar Shemesh
4 days ago
Meta
4 days ago
jmh530
4 days ago
Shachar Shemesh
September 11
https://cwiki.apache.org/confluence/display/WW/S2-052
.net can, but WCF requires explicit vetting of types for protocol.
6 days ago
On 11/09/17 12:56, Kagamin wrote:
> https://cwiki.apache.org/confluence/display/WW/S2-052
> .net can, but WCF requires explicit vetting of types for protocol.

I've heard it somewhere that the original .doc file format was simply a serialization of the internal Word data structure. They got a save/load for practically free.

Then they bring out a new version, and guess what? You cannot change anything, because you can no longer read the old files.

Then it turns out that when you serialize "everything", you also serialize the undo buffer. So you can read things that someone wrote and then erased in the document.

Yeah. Serialization is fine, but should be used judicially.

Shachar
4 days ago
On Wednesday, 13 September 2017 at 07:08:42 UTC, Shachar Shemesh wrote:
> On 11/09/17 12:56, Kagamin wrote:
> Then it turns out that when you serialize "everything", you also serialize the undo buffer. So you can read things that someone wrote and then erased in the document.

I never knew that, and I sincerely hope that none of my university professors did either.


4 days ago
On Thursday, 14 September 2017 at 19:26:44 UTC, Meta wrote:
> On Wednesday, 13 September 2017 at 07:08:42 UTC, Shachar Shemesh wrote:
>> On 11/09/17 12:56, Kagamin wrote:
>> Then it turns out that when you serialize "everything", you also serialize the undo buffer. So you can read things that someone wrote and then erased in the document.
>
> I never knew that, and I sincerely hope that none of my university professors did either.

That's a feature though isn't it. Track changes.
4 days ago
On 14/09/17 22:26, Meta wrote:
> On Wednesday, 13 September 2017 at 07:08:42 UTC, Shachar Shemesh wrote:
>> On 11/09/17 12:56, Kagamin wrote:
>> Then it turns out that when you serialize "everything", you also serialize the undo buffer. So you can read things that someone wrote and then erased in the document.
> 
> I never knew that, and I sincerely hope that none of my university professors did either.
> 
> 

It was fixed at some point, so by the time you wrote obscenities about your U. profs, they may actually have not ended up in the file.

Also, it goes without saying that the docx format is not like that.

Shachar