cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

FileRepository Visibility issue fileuploader widget

MA8731174
14-Alexandrite

FileRepository Visibility issue fileuploader widget

Dear Community,

   An urgent query .I am having a very strange issue. I have one user and its also in the visibility organization and in the user group which has right to propertyRead and Service inoke but still i am unable to get the fileRepository  in the mashup widget and not able to upload the picture. As you guys can see in the picture below:-

 

The access report on the repository is as below:- which show clearly that user can access it

 

Jamal8548_0-1722430328649.png

 

as you guys can see below when i login with admin user on platform then it shows me repository in the widget ..and when i logged in with the above user then this widget does not show me repository and i am also unable to upload the picture.

 

Jamal8548_1-1722430395870.png

 

In mashup widget

 

Jamal8548_0-1722430583532.png

 

IMPORTANT (SERVER where this user is WORKING) there is only different in services GetNamedProperties service is there also...

 

Jamal8548_0-1722431435363.png

 

ACCEPTED SOLUTION

Accepted Solutions
MA8731174
14-Alexandrite
(To:Rocko)

Resources["SearchFunctions"].AddVisibilityPermission({
principal: "Diagnosis",                 /* STRING */
principalType: "Organization"   /* STRING */
});
 
Resources["SearchFunctions"].AddRunTimePermission({
    type: "ServiceInvoke" /* STRING */,
    resource: "SearchThingsByTemplate" /* STRING */,
    principal: "Diagnosis.Operator.Permission" /* STRING */,
    principalType: "Group" /* STRING */,
    allow: true /* BOOLEAN */
});

 

 

finally its working now. so On thingworx 9.3 we need an additional rights for the users because there it uses also these searchfunctions and this service also.

Thanks @Rocko for your quick and insightful support as always. 

View solution in original post

6 REPLIES 6
MA8731174
14-Alexandrite
(To:MA8731174)

@Rocko if you please have some insights on this issue. I have changed my server and same project everything is same working on another server but here i have this issue after deployment.  I am able to provide you further information if you need. Thank you!

0) Check script log, application log and browser log

1) Run an Access Report (Permissions>Access Report) and compare with the other system

2) Before you upload, try downloading as Z568012 from that repo and see if that works. Download URLs given here,

3) if it's urgent, create a ticket with PTC support. PTC Community is a voluntary effort where people donate their time when they have the resources.

MA8731174
14-Alexandrite
(To:Rocko)

Thanks rocko yes i have tested just now with that user i am able to download the picture via link.

secondly can you please see above the screenshot above i have put screenshots of both server there is only one difference in the access report and that is with service GetNameProperties may be you know about it. 

Give it Execute privileges on the CreateFolder service.

MA8731174
14-Alexandrite
(To:Rocko)

Resources["SearchFunctions"].AddVisibilityPermission({
principal: "Diagnosis",                 /* STRING */
principalType: "Organization"   /* STRING */
});
 
Resources["SearchFunctions"].AddRunTimePermission({
    type: "ServiceInvoke" /* STRING */,
    resource: "SearchThingsByTemplate" /* STRING */,
    principal: "Diagnosis.Operator.Permission" /* STRING */,
    principalType: "Group" /* STRING */,
    allow: true /* BOOLEAN */
});

 

 

finally its working now. so On thingworx 9.3 we need an additional rights for the users because there it uses also these searchfunctions and this service also.

Thanks @Rocko for your quick and insightful support as always. 

MA8731174
14-Alexandrite
(To:Rocko)

https://community.ptc.com/t5/ThingWorx-Developers/File-upload-no-repository/td-p/856481

Interesting! This issue is experiencing other people too who are moving from 9.1 to 9.3

i have exactly this same issue. I can’t see file repository in the payload also. 

Announcements


Top Tags