Agile Product Lifecycle Management (PLM) Software Development Kit (SDK) Program Cannot Upload Files as Attachment (Doc ID 2114234.1)

Last updated on SEPTEMBER 26, 2017

Applies to:

Oracle Agile PLM Framework - Version 9.3.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 9.3.4.0 version, Process Extension

When attempting to run customized SDK program to upload a file attachment, the following error occurs.

ERROR
-----------------------
<BasicAuthStrategy:INFO> Error while authenticating user.
com.agile.webfs.components.security.client.SecurityException: Authentication Failed for user ifsuser
at com.agile.webfs.components.security.BasicAuthStrategy.authenticate(BasicAuthStrategy.java:121)
at com.agile.webfs.components.security.SecurityManager.isValid(SecurityManager.java:91)
at com.agile.webfs.components.controller.FilemanagerAuthFilter.doFilter(FilemanagerAuthFilter.java:168)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.agile.webfs.components.controller.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:35)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)



STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1. Customize an Process Extension program with below sample code snippet to upload file attachment

IItem doc = (IItem)affectedObject;
String filePath = "d:/temp/test/";
ITable table = doc.getAttachments();
File dir = new File(filePath);
File[] files = dir.listFiles();
for(int i=0;i<files.length;i++) {
table.createRow(files[i]);
}

2. Compile and run this program

3. Check server log and will find the error



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms