Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
19%
200 - 500 GB
27%
500 - 800 GB
4%
800 - 1200 GB
7%
1200 - 1500 GB
7%
1500 - 2000 GB
12%
> 2000 GB
25%
Total votes: 85

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 26th March 2020, 14:30
Sachinjoshi Sachinjoshi is offline
Member
 
Join Date: Apr 2006
Posts: 55
Sachinjoshi is on a distinguished road
Baan: b4c4 - DB: Oracle 9i - OS: Win 2000
Error: Bshell function 'get.resource$' can only be used in a trusted environment
Baan: Infor ERP 10.5
C/S: Client

Hi Guys,

While compiling the program script I am getting Error: Bshell function 'get.resource$' can only be used in a trusted environment

1 ERROR REPORTED.

Can anybody help me to solve the issue,
Reply With Quote
  #2  
Old 26th March 2020, 18:07
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,399
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Hi,

Can you please share some details -

1. Is this a standard program/custom program?
2. Screenshot of the error screen?
3. You TIV and LN Version?

That will help people understand the problem better.

May be you need to add keyword @trusted to your function using the function.

Also check KB 2102814 on InforXtreme.

Quote:
get.resource$()
Context
This function is implemented in the porting set and can be used in all script types.

This function is marked as 'untrusted' and can therefore only be used in trusted objects. More about trusted and not trusted objects can be found in the section about managed execution..
Quote:
Managed Execution
Trusting object files
In a traditional installation all sessions essentially run under the same authorization. This changes drastically in e.g. a multi-tenant environment, where the landlord has a very different authorization compared to the tenants. Tenants may under no circumstance be able to execute a session which might influence another tenant.

Therefore a differentation is made between trusted and non-trusted object files. A trusted object file may still do everything, just like in a traditional installation. A non-trusted object, however, is limited in the functions it may execute. Some bshell functions are not allowed in non-trusted objects (such as 'shell'), nor are calls to functions in trusted objects allowed (unless these are explicitly allowed by adding the '@trusted' keyword). Typical examples of trusted objects are the applications as provided by Infor. Typical examples of non-trusted objects are objects compiled by the user, based upon user generated sources, such as reports.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
Sponsored Links
  #3  
Old 27th March 2020, 07:35
JaapJD's Avatar
JaapJD JaapJD is offline
Guru
 
Join Date: Sep 2002
Location: Netherlands
Posts: 873
JaapJD will become famous soon enoughJaapJD will become famous soon enough
Baan: BaanIV, BaanERP, ERP LN 6.1 - DB: Oracle, SQL Server - OS: Unix, Windows
If your version "b4c4" is still accurate and get this error in this version, you should report an incident at Infor. But I assume you are at least on LN 10.5.

You cannot use function get.resource$() in a cloud environment. The same applies to an on-prem environment in which you set the Extensions Ready for Cloud flag in session ttext0100m000 for your current package combination.
Reply With Quote
  #4  
Old 27th March 2020, 07:43
JaapJD's Avatar
JaapJD JaapJD is offline
Guru
 
Join Date: Sep 2002
Location: Netherlands
Posts: 873
JaapJD will become famous soon enoughJaapJD will become famous soon enough
Baan: BaanIV, BaanERP, ERP LN 6.1 - DB: Oracle, SQL Server - OS: Unix, Windows
Quote:
May be you need to add keyword @trusted to your function using the function.
That will not help, because it would completely defeat the purpose of the trusted/untrusted concept.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create an AFS pralash AFS/DDC/OLE: Function servers 7 11th October 2018 16:13
Undocumented Functions & Variables george7a Tools Development 81 30th September 2015 11:35
How to call AFS in sp24? PV Ramone AFS/DDC/OLE: Function servers 4 2nd September 2008 11:06
xml question steveauckly Tools Development 4 27th July 2004 10:41


All times are GMT +2. The time now is 12:46.


©2001-2018 - Baanboard.com - Baanforums.com