cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Viewer problems in Screen Personas 3.0

Carifaine
Active Participant
0 Kudos

Hi all,

i'm having trouble with the html viewer in sap screen personas 3.0. I maintained the url-whitelist with a few entries such as amazon.de e.g.

When i save my flavor, i get an CX_SY_INVALID_REGEX exception. I tested all kinds of urls: http://www.sap.com, http://sap.com but nothing works. Did anybody use html viewer successfully?

My whitelist looks like " 1   *sap.com*  " (id, value). Did i miss anything?

If i use the html viewer to get another transaction via html gui it will just show nothing, though there is no exception.

Any ideas?

Regards,

Christoph

Accepted Solutions (1)

Accepted Solutions (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Use this whitelist expression (copy/paste) for wide-open URL access: (http|https):\/\/*

Edit this if you want to restrict access to specific sites only.

Carifaine
Active Participant
0 Kudos

Thank you Tamas, this works for now!

Former Member
0 Kudos

If I wish to limit access to only news.bbc.co.uk, what would be the correct syntax? Adding the url instead of the *?

Cheers,

Angus

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

yes

Answers (3)

Answers (3)

smith_john
Active Participant
0 Kudos

I'm having a similar issue ... I can't get the HTML viewer to display anything. in the Personas editor it displays the webpage (which is actually another Personas screen) but once I save and exit and render the screen... nothing!

I have tried both the (http|https):W* solution and also the entire URL into the whitelist. neither works.

Help please.

Former Member
0 Kudos

Hi Neil,

when using the full url, remember to escape all (.) and (/) chars. eg, if url is http://a.b/c

you can try http\:\/\/a\.b\/c

By the way I tried to display another personas url in a html viewer which was OK, but there might be some other issue that I cannot remember.

Hope this helps.

Dong Zhu

Former Member
0 Kudos

I found the above mentioned pattern did not work but (.*) is OK.

Can anyone explain differences as below:

.*

(http|https)://*

(http|https):\/\/*

Thanks.

Dong

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

The whitelist uses regular ABAP expressions. See this document for further details about how to build the correct expressions.

Former Member
0 Kudos

Hi Tamas,

Below is what is shown on the SAP Personas 3.0 admin guide doc. Maybe you can check if it should use escape \/ for /. By the way, I think it would make it a lot easy to understand if you can take an example, say, for a url, www.myCompany.com/myUser/myHome.html, how the RegExp can be built for whitelisting this url only. (just a suggestion).   

Br,

Dong Zhu

Former Member
0 Kudos

Hi Christoph,

I will test this out for you and see if I can find a fix I can create the same issue as you. My whole Personas crashes when I enter in a URL that isn't on the whitelist which isn't how it is supposed to be handled. You may have found a bug.

I used "*" as a value for the whitelist which obviously isn't optimal but at least it shows that the viewer is working. I think this might be down to the syntax we are using for the actual whitelist.

Regards,

Angus

Carifaine
Active Participant
0 Kudos

Hi Angus,

i also used *, still didn't work for me. Tamas' expression works by now.

There are several other bugs on our system i cannot quite fetch. E.g. opening screen personas editor in firefox (up to date) actually blocks typing texts on the keyboard in every open application since i tested the html viewer issue.

Especially with themes there are several little bugs. Shall i send my observations in a pm? Or whom should i contact for that?

Regards,

Christoph

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you feel you have found bugs, then creating an OSS incident should be the way to go.

Just please make sure your system is completely up-to-date as far as kernel patch and notes go.

Former Member
0 Kudos

Hey Christoph,

I don't work for SAP but I would strongly encourage you to submit bugs as this saves us all a lot of headache in the future. Like Tamas (Who is an SAP guy) said make sure you have the latest kernel etc installed (I am pretty sure you do as we both installed at the same time) as this rules out issues at your end.

I am thinking that the whitelist issue could potentially be a bug. When you enter in an incorrect syntax into the whitelist url and then try and integrate a website using the html viewer it would display the error you mentioned above and then I would have issues with the screen. I also noticed that sometimes that I would either get a backend message error or the system would hang completely meaning I would have to exit the browser, the bonus being when I reopened it, the html viewer would be removed from the flavor.

Would be curious to know how that is meant to be captured, I have no issues testing/documenting this if one of the SAP personas team wishes.

Glad to know you found a fix, something I can use in the future as well!

Cheers,

Angus