<?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 Blob preview on ADF in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/blob-preview-on-adf/m-p/37547#M15824</link>
    <description>&lt;P&gt;Helo everyone,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;The problem :&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I try to preview a document i just attached to a form.&lt;BR /&gt;&lt;SPAN&gt;When i click on it, the overlay works and i can view my attachment.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;When i close it, i go back to my form but completely "frozen".&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;(In fact, the url don't change : it's still with a `http://localhost:4200/apps/XXXXX/tasks/YYYYY(overlay&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;review/blob)`)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to the refresh the page in order to have my form again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What did i do wrong ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually use the "native" component generated with ADF-APS :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Steps to reproduce :&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Generate a new ADF (with only APS)&lt;/LI&gt;&lt;LI&gt;Link it to your APS&lt;/LI&gt;&lt;LI&gt;Generate a simple process with 1 form that contain one "Attach file" component&lt;/LI&gt;&lt;LI&gt;Deploy &amp;amp; publish App&lt;/LI&gt;&lt;LI&gt;Serve ADF&lt;/LI&gt;&lt;LI&gt;Start a new instance&lt;/LI&gt;&lt;LI&gt;Go to task/form&lt;/LI&gt;&lt;LI&gt;Add a &lt;U&gt;local&lt;/U&gt; file (a .pdf for my example)&lt;/LI&gt;&lt;LI&gt;Click on the preview (it should open the file)&lt;/LI&gt;&lt;LI&gt;Close the file&lt;/LI&gt;&lt;LI&gt;The url didn't change and everything is broken. The only way to unlock it is by refreshing the page.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can anyone help me with this ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;I'm using :&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ADF : 3.5&lt;BR /&gt;APS : 1.9&lt;BR /&gt;Language : FR&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Errors&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&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/65i82D3420A767040E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="lia-image-caption"&gt;error - console&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Code&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;blob-view.component.html&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;PRE&gt;&amp;lt;adf-viewer [blobFile]="content"
            [displayName]="name"
            [showViewer]="true"&amp;gt;
&amp;lt;/adf-viewer&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;&amp;lt;adf-viewer [blobFile]="content"
            [displayName]="name"
            [showViewer]="true"&amp;gt;
&amp;lt;/adf-viewer&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;blob-view.component.ts&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;PRE&gt;@Component({
  templateUrl: 'bob-view.component.html'
})
export class BlobViewComponent {
  content: Blob;
  name: string;

  constructor(protected preview: PreviewService,
              protected router: Router
  ) {
    if (preview.content === null || preview.name === null) {
      router.navigate([{outlets: {overlay: null}}]);
      return;
    }

    this.content = preview.content;
    this.name = preview.name;
  }
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;@Component({
  templateUrl: 'bob-view.component.html'
})
export class BlobViewComponent {
  content: Blob;
  name: string;

  constructor(protected preview: PreviewService,
              protected router: Router
  ) {
    if (preview.content === null || preview.name === null) {
      router.navigate([{outlets: {overlay: null}}]);
      return;
    }

    this.content = preview.content;
    this.name = preview.name;
  }
}&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;app.route.ts&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;PRE&gt;export const appRoutes: Routes = [
  {
    path: 'files/:nodeId/view',
    component: FileViewComponent,
    canActivate: [AuthGuardEcm],
    outlet: 'overlay'
  },
  {
    path: 'preview/blob',
    component: BlobViewComponent,
    outlet: 'overlay',
    pathMatch: 'full'
  },
  [...]
];&amp;nbsp;&lt;/PRE&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;export const appRoutes: Routes = [
  {
    path: 'files/:nodeId/view',
    component: FileViewComponent,
    canActivate: [AuthGuardEcm],
    outlet: 'overlay'
  },
  {
    path: 'preview/blob',
    component: BlobViewComponent,
    outlet: 'overlay',
    pathMatch: 'full'
  },
  [...]
];&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 07 Feb 2020 14:11:05 GMT</pubDate>
    <dc:creator>bfleury-alfea</dc:creator>
    <dc:date>2020-02-07T14:11:05Z</dc:date>
    <item>
      <title>Blob preview on ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/blob-preview-on-adf/m-p/37547#M15824</link>
      <description>&lt;P&gt;Helo everyone,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;The problem :&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I try to preview a document i just attached to a form.&lt;BR /&gt;&lt;SPAN&gt;When i click on it, the overlay works and i can view my attachment.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;When i close it, i go back to my form but completely "frozen".&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;(In fact, the url don't change : it's still with a `http://localhost:4200/apps/XXXXX/tasks/YYYYY(overlay&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;review/blob)`)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to the refresh the page in order to have my form again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What did i do wrong ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually use the "native" component generated with ADF-APS :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Steps to reproduce :&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Generate a new ADF (with only APS)&lt;/LI&gt;&lt;LI&gt;Link it to your APS&lt;/LI&gt;&lt;LI&gt;Generate a simple process with 1 form that contain one "Attach file" component&lt;/LI&gt;&lt;LI&gt;Deploy &amp;amp; publish App&lt;/LI&gt;&lt;LI&gt;Serve ADF&lt;/LI&gt;&lt;LI&gt;Start a new instance&lt;/LI&gt;&lt;LI&gt;Go to task/form&lt;/LI&gt;&lt;LI&gt;Add a &lt;U&gt;local&lt;/U&gt; file (a .pdf for my example)&lt;/LI&gt;&lt;LI&gt;Click on the preview (it should open the file)&lt;/LI&gt;&lt;LI&gt;Close the file&lt;/LI&gt;&lt;LI&gt;The url didn't change and everything is broken. The only way to unlock it is by refreshing the page.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can anyone help me with this ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;I'm using :&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ADF : 3.5&lt;BR /&gt;APS : 1.9&lt;BR /&gt;Language : FR&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Errors&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&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/65i82D3420A767040E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="lia-image-caption"&gt;error - console&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Code&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;blob-view.component.html&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;PRE&gt;&amp;lt;adf-viewer [blobFile]="content"
            [displayName]="name"
            [showViewer]="true"&amp;gt;
&amp;lt;/adf-viewer&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;&amp;lt;adf-viewer [blobFile]="content"
            [displayName]="name"
            [showViewer]="true"&amp;gt;
&amp;lt;/adf-viewer&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;blob-view.component.ts&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;PRE&gt;@Component({
  templateUrl: 'bob-view.component.html'
})
export class BlobViewComponent {
  content: Blob;
  name: string;

  constructor(protected preview: PreviewService,
              protected router: Router
  ) {
    if (preview.content === null || preview.name === null) {
      router.navigate([{outlets: {overlay: null}}]);
      return;
    }

    this.content = preview.content;
    this.name = preview.name;
  }
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;@Component({
  templateUrl: 'bob-view.component.html'
})
export class BlobViewComponent {
  content: Blob;
  name: string;

  constructor(protected preview: PreviewService,
              protected router: Router
  ) {
    if (preview.content === null || preview.name === null) {
      router.navigate([{outlets: {overlay: null}}]);
      return;
    }

    this.content = preview.content;
    this.name = preview.name;
  }
}&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;app.route.ts&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;PRE&gt;export const appRoutes: Routes = [
  {
    path: 'files/:nodeId/view',
    component: FileViewComponent,
    canActivate: [AuthGuardEcm],
    outlet: 'overlay'
  },
  {
    path: 'preview/blob',
    component: BlobViewComponent,
    outlet: 'overlay',
    pathMatch: 'full'
  },
  [...]
];&amp;nbsp;&lt;/PRE&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;export const appRoutes: Routes = [
  {
    path: 'files/:nodeId/view',
    component: FileViewComponent,
    canActivate: [AuthGuardEcm],
    outlet: 'overlay'
  },
  {
    path: 'preview/blob',
    component: BlobViewComponent,
    outlet: 'overlay',
    pathMatch: 'full'
  },
  [...]
];&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Feb 2020 14:11:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/blob-preview-on-adf/m-p/37547#M15824</guid>
      <dc:creator>bfleury-alfea</dc:creator>
      <dc:date>2020-02-07T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Blob preview on ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/blob-preview-on-adf/m-p/37548#M15825</link>
      <description>&lt;P&gt;It sounds like a bug.&lt;/P&gt;
&lt;P&gt;What the browser's console says when you click the link the second time and you get the error?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 16:49:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/blob-preview-on-adf/m-p/37548#M15825</guid>
      <dc:creator>fcorti</dc:creator>
      <dc:date>2020-02-12T16:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Blob preview on ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/blob-preview-on-adf/m-p/37549#M15826</link>
      <description>&lt;P&gt;Here are the errors i get when :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;adding the file&lt;/LI&gt;&lt;LI&gt;closing the preview&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(which are/seems the same)&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error when adding the file" style="width: 897px;"&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/68iF6B07F4130EE72DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error when adding the file&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;Error when adding the file&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error when closing the preview" style="width: 910px;"&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/67i27ACC51CD9654F97/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error when closing the preview&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;Error when closing the preview&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Feb 2020 13:00:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/blob-preview-on-adf/m-p/37549#M15826</guid>
      <dc:creator>bfleury-alfea</dc:creator>
      <dc:date>2020-02-13T13:00:04Z</dc:date>
    </item>
  </channel>
</rss>

