<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic &amp;quot;Failed to set content property on stream closure&amp;quot;' error in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85071#M25860</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have installed &lt;STRONG&gt;Alfresco &lt;FONT size="3"&gt;Community&amp;nbsp;-&amp;nbsp;6.1.2 (r4fe1d0d0-b205).&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;When I go to Document library, change view to gallery and start quickly moving the slider, i'm getting the following error:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="errorSilderQuicklyAlfresco.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/374i5FBAA025A199557C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I tried to Google it and i found some results on &lt;A href="https://issues.alfresco.com/jira/browse/ALF-16252" target="_self" rel="nofollow noopener noreferrer"&gt;Alfreco JIRA&lt;/A&gt; but they are quite old and seem to be resolved.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Do you have any idea how can i fix it?&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2019 19:41:19 GMT</pubDate>
    <dc:creator>upforsin</dc:creator>
    <dc:date>2019-12-03T19:41:19Z</dc:date>
    <item>
      <title>"Failed to set content property on stream closure"' error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85071#M25860</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have installed &lt;STRONG&gt;Alfresco &lt;FONT size="3"&gt;Community&amp;nbsp;-&amp;nbsp;6.1.2 (r4fe1d0d0-b205).&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;When I go to Document library, change view to gallery and start quickly moving the slider, i'm getting the following error:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="errorSilderQuicklyAlfresco.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/374i5FBAA025A199557C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I tried to Google it and i found some results on &lt;A href="https://issues.alfresco.com/jira/browse/ALF-16252" target="_self" rel="nofollow noopener noreferrer"&gt;Alfreco JIRA&lt;/A&gt; but they are quite old and seem to be resolved.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Do you have any idea how can i fix it?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 19:41:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85071#M25860</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-12-03T19:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to set content property on stream closure"' error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85072#M25861</link>
      <description>&lt;P&gt;omg, I can't stop laughing. I just tried it out and it does gives an error! How did you find this error? &lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://connect.hyland.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;/P&gt;&lt;P&gt;Every time you change the slider value, Alfresco calls /preferences endpoint for the logged in user, with a new value for galleryColumns. It tries to modify the cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson node, and when you move the slider too fast, it gives concurrency error when writing to database.&lt;/P&gt;&lt;P&gt;Answering your original question... I have no idea how you could solve this error... Maybe overriding the slider change event listener, customize it and filter the calls to preferences endpoint to avoid concurrency errors.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 21:11:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85072#M25861</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2019-12-03T21:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to set content property on stream closure"' error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85073#M25862</link>
      <description>&lt;P&gt;I also found it ridiculous but for my client it's important.&lt;/P&gt;&lt;P&gt;Well, thanks for help. I wll try to figure out something.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 06:41:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85073#M25862</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-12-05T06:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to set content property on stream closure"' error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85074#M25863</link>
      <description>&lt;P&gt;The Solution for any interested parties:&lt;/P&gt;&lt;P&gt;1. Copy and create own documentlist-view-gallery.js and replace the `scope.widgets.galleryColumnsSlider.setColumnsPreference` with the following&lt;/P&gt;&lt;PRE&gt;         scope.widgets.galleryColumnsSlider.setColumnsPreference = function _setColumnsPreference(numColumns)
         {
            if (numColumns == null) {
               numColumns = scope.widgets.galleryColumnsSlider.getColumnValue();
            }
            galleryViewRenderer.galleryColumns = numColumns;
            var currTime = new Date();
            if (currTime - galleryViewRenderer.lastChangeTime &amp;gt; CHANGE_TIME_WINDOW_MS) {
            	galleryViewRenderer.lastChangeTime = currTime;
            	scope.services.preferences.set(PREF_GALLERY_COLUMNS, numColumns);
            }
         };&lt;/PRE&gt;&lt;P&gt;Additionally, in the Alfresco.DocumentListGalleryViewRenderer constructor add `this.lastChangeTime = new Date();` and create new constance variable&amp;nbsp;&amp;nbsp;`CHANGE_TIME_WINDOW_MS = 500;`&lt;/P&gt;&lt;P&gt;2. To apply the changes above, override gallery view-renderer configuration and change dependency to the newly created js file&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 11:01:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-failed-to-set-content-property-on-stream-closure-quot-error/m-p/85074#M25863</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2022-02-23T11:01:14Z</dc:date>
    </item>
  </channel>
</rss>

