<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Marcel,</p>
<p><br>
</p>
<p>> <span style="font-size: 12pt;">Then you have to set the author initials on startUp to any specific value. That's how our CI does it.</span></p>
<div><br>
</div>
<div>But that requires me to define custom code into the image. Just changing some state in beforehand is much simpler.</div>
<div><br>
</div>
<div>> <span style="font-size: 12pt;">Well, I think this behavior originates from the fact that sharing your image via USB stick (or mail or floppy disk^^) means that a different person would then be the author. So, you would not want to store the wrong initials
 by accident. I think this point is still valid when students just share images without caring too much about preferences stored within. So, this is also kind of a security issue but not as serious as sharing your passwords.</span>
<div><br>
</div>
<div>Hm, this sounds to me as if you wanted to automatically do a system-wide #cleanUp instead when the image has been moved. We also do not clean up the clipboard or anything else when an image move is detected, and as you mentioned, the clipboard could contain
 much more sensitive information. Also, the heuristic for detecting "different machine" is insufficient, just assume both persons would store there image directly in in the file tree root (C:\). The fact that we are connecting those two aspects (image path
 and author initials) with each other appears arbitrary to me. If we were consistent with this intention, I think we should do "Smalltalk cleanUp: false" in this place. Still, I dislike the idea of automatically resetting the image on start-up. I would consider
 it somehow contrary to the idea of an image in general, that is, preserve some state and reuse it at a later point in time.</div>
<div><br>
</div>
<div>Hm ... make it a preference? :)</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
</div>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel<br>
<b>Gesendet:</b> Mittwoch, 19. Januar 2022 10:36:03<br>
<b>An:</b> squeak-dev<br>
<b>Betreff:</b> Re: [squeak-dev] The Trunk: System-mt.1018.mcz</font>
<div> </div>
</div>
<div>
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi Christoph --
<div><br>
</div>
<div>> <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">I was trying to prepare an image that does not ask the user for any initials</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Then you have to set the author initials on startUp to any specific value. That's how our CI does it.</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div>> <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Is this really necessary? :-)</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Well, I think this behavior originates from the fact that sharing your image via USB stick (or mail or floppy disk^^) means that a different person would then be the author. So, you
 would not want to store the wrong initials by accident. I think this point is still valid when students just share images without caring too much about preferences stored within. So, this is also kind of a security issue but not as serious as sharing your
 passwords.</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Yes, it's still a good practice. Also, your scenario can easily be supported. Just set your preferred initials on startUp.</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br>
</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Best,</span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Marcel</span></div>
<div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color: #AAAAAA; margin-top: 10px;">Am 19.01.2022 03:53:25 schrieb christoph.thiede@student.hpi.uni-potsdam.de <christoph.thiede@student.hpi.uni-potsdam.de>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">Hi,<br>
<br>
do we really need to reset the author initials when one opens the image under a different path? This just stroke me a bit when I was trying to prepare an image that does not ask the user for any initials, but the receiver was still told to enter them again.<br>
<br>
Also, note that string comparison is not sufficient for comparing paths. For instance, there are multiple ways under Windows to express the same path (UNC paths, virtual drive letters, ...), or even the WSL path when I open the same image, without moving it,
 from WSL rather from Windows.<br>
<br>
Last but not least, this is a really unexpected side effect and I only found this via a sender search.<br>
<br>
Is this really necessary? :-)<br>
<br>
Best,<br>
Christoph<br>
<br>
<span style="color: #808080">---<br>
</span><span style="color: #808080"><i>Sent from </i></span><span style="color: #808080"><i><a href="https://github.com/hpi-swa-lab/squeak-inbox-talk"><u><span style="color: #808080">Squeak Inbox Talk</span></u></a></i></span><br>
<br>
On 2018-04-16T08:31:43+00:00, commits@source.squeak.org wrote:<br>
<br>
> Marcel Taeumel uploaded a new version of System to project The Trunk:<br>
> http://source.squeak.org/trunk/System-mt.1018.mcz<br>
> <br>
> ==================== Summary ====================<br>
> <br>
> Name: System-mt.1018<br>
> Author: mt<br>
> Time: 16 April 2018, 10:31:28.239614 am<br>
> UUID: e0350560-a5a5-5a40-b31b-d13f55162021<br>
> Ancestors: System-mt.1017<br>
> <br>
> #setAuthorInitials: -> #authorInitials:<br>
> <br>
> =============== Diff against System-mt.1017 ===============<br>
> <br>
> Item was changed:<br>
> ----- Method: SmalltalkImage>>openSourceFiles (in category 'sources, changes log') -----<br>
> openSourceFiles<br>
> <br>
>     self imageName = LastImageName ifFalse:<br>
>         ["Reset the author initials to blank when the image gets moved"<br>
>         LastImageName := self imageName.<br>
> +         Utilities authorInitials: ''].<br>
> -         Utilities setAuthorInitials: ''].<br>
>     FileDirectory<br>
>         openSources: self sourcesName<br>
>         andChanges: self changesName<br>
>         forImage: LastImageName.<br>
>     SourceFileArray install!<br>
> <br>
> </div>
</blockquote>
</div>
</div>
</body>
</html>