Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Restict the subdirectories while mapping an application
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Restict the subdirectories while mapping an application
 Login/Join
 
Platinum Member
posted
Hi,

We have a profile that contains something like

APP MAP data D:\Product\Data

APP PREPENDPATH data

The issue we are having is that, webFocus 8.1.03 is mapping all the underlying subdirectories under the 'Data' as well and we do not want to do that. So, is there a way to restrict mapping of subdirectories?


Note: We did not face this kind of issue when we are in v7.6.11


Thanks in advance

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 100 | Registered: September 10, 2013Reply With QuoteReport This Post
Master
posted Hide Post
What product? In my world, the only things that relates would be Portals and their access to reports. Please clarify.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Gavin,

WF Reporting Server v8.1.03. I am talking about restricting the subfolders that are mapped by edasprof.prf

Hope i answered your question.


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 100 | Registered: September 10, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
I think this is a very good question, and am a bit dismayed that things changed this drastically.

BUT!

Check the documentation for APP PREPENDPATH:

quote:
APP PREPENDPATH app1[/] [app2[/]] ...
[appn[/]]
where:

app1...appn
Are application names. If you follow an application name with a slash (/), nested applications (the subtree of applications below the named application) will not be in the search path. If you do not follow the application name with a slash, the nested_app parameter determines whether nested applications are searched for files referenced in a procedure, and to what level. If you need to specify more application names than can fit on one line, add the continuation character (-) at the end of the first line, and code more application names on the next line.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Francis,

i looked into it. But lets say i have subfolders 'subapp1' and 'subapp2', in addition to some files/fex's inside 'app1' application. I wanted the server to access or search only files/fex's in app1 but not subfolders inside it.

So, when i provide APP PREPENDPATH app1, How do i restrict access to subapp1 and subapp2?

I hope i am explaining the issue as clearly as possible.


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 100 | Registered: September 10, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
How did you do it in WF v7.6.11? Let's start with that as a base.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
APP MAP app1 D:\Product\app1\
APP MAP subapp1 D:\Product\app1\subapp1\
APP MAP subapp2 D:\Product\app1\subapp2\

APP PREPENDPATH app1/ subapp1/ subapp2/


The slashes in the PREPENDPATH will prevent nested applications from being searched. I haven't tried this but this is my interpretation of the documentaion.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Francis,

Your idea seems to be working. How do i implement directly on edasprof.prf. It has APP PATH


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 100 | Registered: September 10, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
Just add these commands after the APP MAP.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Francis,

It worked perfect and just the way i wanted.

But still not sure why IBI added this extra step. My prior version did all automatically and simple.

Thanks again.


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 100 | Registered: September 10, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
I would like to see the prior version.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
In prior version v7.6.11, in edasprof.srf, we have

APP MAP app1 D:\Product\app1
APP PATH app1

So, it just results D:\Product\app1 and does not include the subfolders 'subapp1'

In v8.1.03, when we declare the same commands as we did in v7.6.11 we ended up getting

D:\Product\app1
D:\Product\app1\subapp1

So, in order to restrict the subfolders, we now have to declare it as

APP MAP app1 D:\Product\app1
APP PATH app1/


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 100 | Registered: September 10, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
I suppose the change in behaviour could be considered a "new feature".


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
I would consider it as an additional maintenance and a heads up to the users who are considering to migrate to the newer versions. Probably they wont even notice until you end up getting wrong results, which is how i stumbled into this issue.


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 100 | Registered: September 10, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
I was being facetious.

The v7.6.1 documentation does not discuss the trailing slash.
The v7.7.03 documentation discusses the trailing slash, so it's been around a while.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Member
posted Hide Post
There is also a setting thru WebFocus reporting server console. Under application settings, nested_app. Set the value to 'n'. Once that was set, we did not have to change any of our pathing commands.


WebFocus 7.6.6, Win2k, Excel, PDF, Flat files, XML, HTML, Flex 1.0.1
 
Posts: 7 | Location: Bloomfield, CT | Registered: October 24, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Setting the value to 'n worked for us too.

Good to know that there are 2 ways of doing it.

Thank you all for your replies.


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 100 | Registered: September 10, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Restict the subdirectories while mapping an application

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.