Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 09 2019 16:25
    eromano milestoned #5057
  • Sep 09 2019 14:43
    eromano milestoned #5061
  • Sep 09 2019 11:36
    dhrn closed #5019
  • Sep 08 2019 08:17
    pionnegru milestoned #5063
  • Sep 06 2019 14:16
    aitseitz edited #5062
  • Sep 06 2019 14:11
    aitseitz opened #5062
  • Sep 05 2019 12:27
    dhrn milestoned #5058
  • Sep 05 2019 06:55
    dhrn milestoned #5054
  • Sep 04 2019 19:14
    eromano milestoned #5044
  • Sep 04 2019 16:48
    eromano milestoned #5055
  • Sep 04 2019 16:36
    DenysVuika labeled #5050
  • Sep 04 2019 13:57
    eromano milestoned #5030
  • Sep 04 2019 07:36
    pionnegru milestoned #5051
  • Sep 04 2019 06:31
    loictrichaud opened #5050
  • Sep 03 2019 14:11
    eromano milestoned #5046
  • Sep 03 2019 10:10
    eromano milestoned #4996
  • Sep 03 2019 07:56
    pionnegru milestoned #5045
  • Sep 02 2019 06:48
    pionnegru milestoned #5040
  • Sep 01 2019 09:03
    eromano milestoned #415
  • Aug 31 2019 03:24
    silverskyvicto edited #5039
alfsender
@alfsender

Hi, I am working on configuring ADF for OAUTH. I have below configuration added to my app.config.json file..

"oauth2": {
    "host": "https://ping-federate.company.com",
    "authPath": "/as/token.oauth2",
    "scope": "openid",
    "clientId": "app-oauth",
    "secret": "",
    "implicitFlow": true,
    "silentLogin": true,
    "redirectUri": "/",
    "redirectUriLogout": "/logout"
  }

When I go to my ADF app url http://localhost:4200, it re-directs to below url..

https://ping-federate.company.com/protocol/openid-connect/auth?client_id=app-oauth&redirect_uri=http://localhost:4200/&scope=openid&response_type=id_token token&nonce=aBBC9lM0pY4GlU4AJK5sFl52ykU7hwCHpLjjRwWQ

But team who manages the Ping Federate mentioned ADF should re-direct to below url..

https://ping-federate.company.com/as/authorization.oauth2?client_id=app-oauth&redirect_uri=http://localhost:4200/&scope=openid&response_type=id_token token&nonce=aBBC9lM0pY4GlU4AJK5sFl52ykU7hwCHpLjjRwWQ

Is it possible to configure ADF to generate re-direct URL as above?

Please let me know. Thanks.

alfsender
@alfsender

I was able to resolve this using authorizationUrl prop. Now it redirects me to Auth login page and after successful login it redirects me back to ADF url...

http://localhost:4200/#access_token=<token>&token_type=Bearer&expires_in=7199

but I am seeing below error in browser console.

image.png
alfsender
@alfsender
Hi, I am seeing 401 error when user tries to view process diagram. API that fails is activiti-app/app/rest/process-instances/<processId>/model-json. I have BASIC auth configured and everything works except this API. Please share if there is any fix that can help prevent this issue. User also gets logged out from app.
vikash patel
@vikash09

Our ACS 7.2 is working on one server and our ADF application is deployed on another server and I pointed the same ACS server in configurations

app.config.json .
"ecmHost": "http://xxxxxxx:8080",

proxy.conf.js
module.exports = {
"/alfresco": {
"target": "http://xxxxxxx.com:8080",
"secure": false,
"changeOrigin": true
}
};

While trying to login using ADF application it's giving CORS error and not allowing to login.

I followed this documentation link to enable cors https://docs.alfresco.com/content-services/community/config/repository/#cors-configuration

cors.enabled=true

"

Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
"

Please help here to solve the issue.

Denys Vuika
@DenysVuika
You are having a standard CORS issue as backend and frontent are probably running on different servers, that's a browser protections. Note that "proxy.conf.js" works only for local development runs, not a deployed scenarios. In your case the ecmHost should point to localhost, as localhost is proxied to the "xxxx.com:8080"
vikash patel
@vikash09
Thanks @DenysVuika ,
I tried by replacing host with localhost it's still not working.
So do we need to put any jars in tomcat/lib like "enablecors" or using which property we can achieve?
Denys Vuika
@DenysVuika
For the tomcat, try leaving the default value there {protocol}//{hostname}{:port} for the ecmHost, assuming you have ACS running at /alfresco
vikash patel
@vikash09
ok thanks @DenysVuika let me try I will update you.
vikash patel
@vikash09
This message was deleted
2 replies
vikash patel
@vikash09
Request URL: http://XXXXXXXXX.com/alfresco/api/-default-/public/authentication/versions/1/tickets
Request Method: POST
Status Code: 405 Not Allowed
vikash patel
@vikash09

@DenysVuika thanks, "ecmHost": "{protocol}//{hostname}{:port}",

module.exports = {
"/alfresco": {
"target": "http://xxxxxxxxxxx:8080",
"secure": false,
"changeOrigin": false
}
};

it worked.
but when I create the build of this ADF application, it's giving error
when I try to login.

spark66rc
@spark66rc
Hello, I have just seen that ADF 4.11.0 has been released. When do you plan to release a 5.0.0 (with Angular upgrade)?
For some time now, you've only been doing fixes on ADF. Why don't you develop new components anymore?
Thanks in advance
1 reply
Denys Vuika
@DenysVuika
@spark66rc there's many new stuff for ADW, which ADF components do you think are needed? I suggest raising a separate feature request per component
1 reply
miguel-galan
@miguel-galan

ADF app with a multi environment setting on k8s

Hi, is there a hook to customize app.config.json file before it's loaded?
I'm trying to customize the identity provider URL based on a Helm chart value on k8s.
I'm able to change the oauth2 value on the AlfrescoApiConfig but those changes does NOT take effect, it seems that I need to do it "before".
Only the hardcoded values from app.config.json are taking into account.

Any suggestions on how to customize this file to run it on a k8s multi-env?

Thanks in advance!

CC: @DenysVuika, @eromano

alfsender
@alfsender
Hi, I am trying to add "enterprise-viewer" to my ADW app. I have added "enterprise-viewer" component to my project and updated <adf-viewer> with <adf-viewer-extension> with supportedExtensions as pdf,mp4. But still when I open the content preview it loads the default viewer and not the enterprise-viewer. Is enterprise-viewer supported for ADW?
I also tried to add debug point to enterprise-viewer component ts file ngOnInit, but it does not come to that point.
6 replies
Denys Vuika
@DenysVuika
we use the following
node: v14.19.0
npm: 6.14.16
once the upgrade to Angular 13/14 is over (work in progress), the node/npm can be the latest, for now it's important to have npm 6
alfsender
@alfsender

Hi, I am trying to invoke custom ACS API. For that I am using
this.alfrescoApiService.getInstance() .contentClient .callCustomApi

my ADF app is running on http://project-app.comp.com and ACS is running on http://project.comp.com

Above code invokes API on http://project-app.comp.com/alfresco instead of http://project.comp.com/alfresco.
Which service should I use to invoke custom ACS api so it points to correct hostname?

1 reply
JunHog
@JunHog
Hi, I recently migrated an app from ADF 4.4.0 to ADF 4.11.0 (connected to both an ACS and APS) and since the migration when the login page is accessed, the browser is asking for an APS login because 2 request are made on https://{APS_URL}/activiti-app/api/enterprise/profile and are being answered with 401. Is there any way to disable this?
401 aps.PNG
The requests (even for -me- on ACS) were not sent before with ADF4.4.0
Yevhenii Herasymchuk
@EugeneHerasymchuk
congratulations on merging 5.0.0 pr!!! :heart:
Denys Vuika
@DenysVuika
thanks! but use it on your own risk before we finish all the upgrades and release to master
Nat
@bakaNatyan_twitter
Hi all
may I know how can I get all fields from the form?
we are connecting it with a spring via rest service
currently, we are able to call the API, but the request is hard-coded. we want this to be more dynamic.
any help is appreciated
Zain ul Abideen
@zain-abideen-87
is there a gitter room for alfresco process services ?
bhavani121
@bhavani121
hi all
is there a way to set the search page facets dynamically.currently the set of facets configured in app.config.json are visible,but i trying to change them based on the search results.
any help is much appreciated
Denys Vuika
@DenysVuika
those already should be reacting to the search results
alfsender
@alfsender
Hi @DenysVuika - how do we configure search facet for custom property? I am getting property in search result under "list.entries[0].entry.properties.tp:categories": ["cat1", "cat2"]. If you can please share sample config that will be really helpful. Thanks you.
acer
@acer:mozilla.org
[m]
Hello. Is there a way to replace the "show more" "show less" buttons with scroll bar in the adf search filter? Thanks in advance.
Hansi
@HasiburRahama12_twitter
Hi Team, I am getting a error "Unknown network error happened. Process service related features are disabled". I created a ADW project and getting this error when I am running this project. Do anyone knows how to resolve this error?
hex
@hex:it-syndik.at
[m]
ADF 5.0 is out. 🚀
vikash patel
@vikash09

in file-view.component.html
I am able to preview document but
but not sure why this is Comments/Properties/Versions are not displaying

<ng-container *ngIf="nodeId">
<ng-template let-node="node" #sidebarTemplate>
<adf-info-drawer [title]="'APP.INFO_DRAWER.TITLE' | translate">
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.COMMENTS' | translate">
<adf-comments [nodeId]="nodeId"></adf-comments>
</adf-info-drawer-tab>

  <adf-info-drawer-tab [label]="'APP.INFO_DRAWER.PROPERTIES' | translate">
    <adf-content-metadata-card [node]="node"></adf-content-metadata-card>
  </adf-info-drawer-tab>

  <adf-info-drawer-tab [label]="'APP.INFO_DRAWER.VERSIONS' | translate">
    <mat-card>
      <mat-card-content>
        <adf-version-manager
          [node]="node"
          (uploadError)="onUploadError($event)"
        >
        </adf-version-manager>
      </mat-card-content>
    </mat-card>
  </adf-info-drawer-tab>
</adf-info-drawer>

</ng-template>

<adf-viewer [nodeId]="nodeId" [overlayMode]="false" [allowGoBack]="true" (showViewerChange)="onViewerVisibilityChanged()" >
<adf-viewer-toolbar-actions>
<button mat-icon-button>
<mat-icon>alarm</mat-icon>
</button>
<button mat-icon-button>
<mat-icon>backup</mat-icon>
</button>
<button mat-icon-button>
<mat-icon>bug_report</mat-icon>
</button>
</adf-viewer-toolbar-actions>

<!--
    <adf-viewer-extension [supportedExtensions]="['json']">
        <ng-template let-urlFileContent="urlFileContent" let-extension="extension">
        <h1>JSON VIEWER</h1>
        </ng-template>
    </adf-viewer-extension>
    -->

<!--
    <adf-viewer-extension [supportedExtensions]="['png']">
        <ng-template>
        <h1>PNG Viewer</h1>
        </ng-template>
    </adf-viewer-extension>
    -->

<!--
    <adf-viewer-extension [supportedExtensions]="['pdf']">
        <ng-template>
        <h1>PDF Viewer</h1>
        </ng-template>
    </adf-viewer-extension>
    -->

<!--
    <extension-viewer [supportedExtensions]="['obj','3DS']" #extension>
        <ng-template let-urlFileContent="urlFileContent" let-extension="extension" >
        <threed-viewer [urlFile]="urlFileContent" [extension]="extension" ></threed-viewer>
        </ng-template>
    </extension-viewer>
    -->

</adf-viewer>
</ng-container>

NikhileshKumar Sivakoti
@alfsnik:matrix.org
[m]
Hi, I am using ADW 2.4.2 and created library with extension. I want to export the custome code as an artifact to deploy it into another sever. I tried using npm run build content-ee but got the content-ee cpmponents not my custom library. Could you please let me know how to export and promote the changes.
alfgitter
@alfgitter_twitter
Hello, is there a way to export the search results to a CSV file from the ACA app search results page? If not, does adf-document-list or adf-datatable component provide any methods to download search results to a local file? Are there any other recommended approaches to achieve this result?
Snik
@alfsnik:matrix.org
[m]
There is no direct way. You need to create a custom event.
acer
@acer:mozilla.org
[m]
Is there a way to set a default range value for a SearchNumberRangeComponent? Thanks.
Denys Vuika
@DenysVuika
@acer:mozilla.org it seems like it's not supported right now (https://github.com/Alfresco/alfresco-ng2-components/blob/develop/lib/content-services/src/lib/search/components/search-number-range/search-number-range.component.ts#L33) but it should be quite easy to implement, could you please raise an issue here https://github.com/Alfresco/alfresco-ng2-components/issues and we'll make sure it gets into the next releases, thanks
1 reply
alfgitter
@alfgitter_twitter
Hello all, I have been trying to get "startValue" working with the search-check-list widget but it is not selecting the first option by default! Has anyone tried it? Here is a snippet from my search configuration. "component": { "selector": "check-list", "startValue": {"name":"option 1", "value":"value 1"}, "settings": { "allowUpdateOnChange": true, "hideDefaultAction": true, "options": [ { "name": "option 1", "value": "value 1" }, { "name": "option 2", "value": "value 2" } } }
Thanks for any guidance you can provide.
acer
@acer:mozilla.org
[m]
Hello. Is there any documentation about sorting the search results in ADF search page? Thanks
acer
@acer:mozilla.org
[m]
What are the type and field here? Is there any documentation I should read?
1 reply
Douglas C. R. Paes
@douglascrp

good morning
any idea on how to have this fixed?
Alfresco/alfresco-content-app#2739

is it the proposed solution the right way to use it?

7 replies
MariusGrunenberg
@MariusGrunenberg
image.png
Hi the table in the current (maybe also previous) versions of the Content App seems messed up. You can see at 'Modified' column that the header is not aligned with the data cell.