Customer Portal

Get Involved. Join the Conversation.

Posts

  • Janusz Jasinski
    HTML Purifier1
    Topic posted November 18, 2019 by Janusz JasinskiSilver Crown: 22,500+ Points 
    Title:
    HTML Purifier
    Content:

    Hi,

    Has anyone used HTML Purifier with OSvC or can suggest anyway to stop XSS?

    Thanks

  • Janusz Jasinski
    How to safely display a <script> tagAnswered4
    Topic posted November 15, 2019 by Janusz JasinskiSilver Crown: 22,500+ Points 
    Title:
    How to safely display a <script> tag
    Content:

    In my custom object, in one field I have the following code: &lt;script&gt;alert(1);&lt;/script&gt;

    I would like to present this in a contenteditable (https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable) without triggering the alert (XSS in general), displaying <script>alert(1);</script> and not displaying &lt;script&gt;alert(1);&lt;/script&gt;

    I've gone through htmlspecialchars_decode, html_entity_decode etc but I can't suss out what's needed

    The way the data is stored is as such:

    $objective = RNCPHP\objectives::fetch($id);
    $objective->description = empty($description) ? '-':$description;
    $objective->archive = 0;
    $objective->save(); 
    RNCPHP\ConnectAPI::commit();
    

    Any advice?

  • Scott Heidenreich
    Password Reset link in email expiring immediately8
    Topic posted November 7, 2019 by Scott HeidenreichBronze Trophy: 5,000+ Points 
    Title:
    Password Reset link in email expiring immediately
    Summary:
    A customer is not able to reset password because link is expired immediately
    Content:

    Hello,

    I have a customer contact who is gettting the reset password from the system as expected from the customer portal. However, when she clicks the link to reset her password, she gets the "link has expired" message, even though she clicks the link immediately upon receipt.  I cannot reproduce this issue with my own account neither can others at my agency.  Any ideas what may be happening on her end that is causing this?

    She claims to have dumped browser cache and cookies.

    Thanks

    Scott

    Version:
    19B
  • Francisco Caro Vida
    Customice logging fault message
    Topic posted November 7, 2019 by Francisco Caro VidaRed Ribbon: 250+ Points 
    Title:
    Customice logging fault message
    Summary:
    Customice logging fault message
    Content:

    Hello, we want to active unique session in our customer portal but before that we need to customice the logging fault message to distinguish between  user/password error to unique session error. In core is the same message:

    $result['message'] = (Config::getConfig(CP_MAX_LOGINS) || Config::getConfig(CP_MAX_LOGINS_PER_CONTACT))
                    ? Config::getMessage(USRNAME_PASSWD_ENTERED_INCOR_ACCT_MSG)
                    : Config::getMessage(USERNAME_PASSWD_ENTERED_INCOR_ACCT_MSG);
       

    Does anyone know how to achieve that? We have tried to expand the oob Contact model, but in the call to some out-of-the-box APIs it returns an access error.

     Thanks

     

     

     

    Version:
    OSvC 19b
    Image:
  • Janusz Jasinski
    Downloading an attachment appends an underscore to the...1
    Topic posted November 7, 2019 by Janusz JasinskiSilver Crown: 22,500+ Points 
    Title:
    Downloading an attachment appends an underscore to the filename
    Content:

    Hi,

    https://username:password@example.custhelp.com/services/rest/connect/v1.3/WMPConvo.record/3/FileAttachments/1?download

    This downloads the file but adds an underscore to the end of the filename

    Why?

    What can be done to resolve this. I can't use readfile along with PHP headers so that option is out

    Any ideas?

  • ashish bodhale
    Adding Other contact/secondary contact at the time of...Answered7
    Topic posted November 6, 2019 by ashish bodhaleBlue Ribbon: 750+ Points 
    Title:
    Adding Other contact/secondary contact at the time of creating incident
    Summary:
    Adding Other contact/secondary contact at the time of creating incident
    Content:

    Hi Team,

    We have a requirement where we want to add secondary contacts at the time of creating the incident. We tried to find a way to do it but it seems to be much complex and not doable. Can you please help me out here?

    Thanks,

    Ashish

  • Janusz Jasinski
    Lazy loading workaround1
    Topic posted November 6, 2019 by Janusz JasinskiSilver Crown: 22,500+ Points 
    Title:
    Lazy loading workaround
    Content:

    Hi,

    I have the following code which I know won't work but I was hoping someone had a simpler solution - for a contact that is logged in, I want to expose all their custom field values and dump them into an array called $a

    RNCPHP\ConnectAPI::getCurrentContext()->ApplicationContext = "Get contact information";
    $a = Array();
    $contact = json_encode($this->CI->session->getProfile(), true);
    $contact = json_decode($contact, true);
    $uid = $contact['c_id']['value'];
    $contact = RNCPHP\Contact::fetch($uid);
     
    foreach ($contact->CustomFields->c as $k) {
    $a[$k] = $contact->CustomFields->c->$k;
    }
    Any advice would be welcome
     
    I've tried curly brackets but this goes nowhere
  • Janusz Jasinski
    OSvC REST API Authenticate and Authorize2
    Topic posted November 4, 2019 by Janusz JasinskiSilver Crown: 22,500+ Points 
    Title:
    OSvC REST API Authenticate and Authorize
    Content:

    Hi,

    On https://docs.oracle.com/en/cloud/saas/service/19a/cxsvc/c_osvc_authentication_and_authorization.html and it says we can use

    https://admin:PassWord@mysite.example.com/services/rest/connect/v1.4

    However, I now get prompted for a username and password whereas it worked previously

    Can someone please advise?

    Thanks,

    JJ

  • David Radtke
    Remove Product and Category from Customer PortalAnswered6
    Topic posted October 30, 2019 by David RadtkeBlue Ribbon: 750+ Points 
    Title:
    Remove Product and Category from Customer Portal
    Summary:
    We are looking to remove the Product and Category fields from our Customer Portal
    Content:

    We are looking to remove the Product and Category fields form our Customer Portal.

    We are finding that when people submit tickets, they are selecting the wrong things.   All of our tickets get process by one department anyhow, so we have decided to just let our agents assign the Product and Categories.

     

    So my question is what is the best way to do this.

    I've done some minor modifications to the portal, so I'm familiar with the concepts.  But I haven't done anything this big.

    I know I need to modify the "Ask" page.   And I've used CyberDuck for other modifications.

    My problem is this page has never been modified by us, so I'm not even sure where to find it in the folder structure.

     

    Any guidance anyone could give me would be greatly appreciated.

     

  • Janusz Jasinski
    curl_multi_exec limit5.0
    Topic posted October 28, 2019 by Janusz JasinskiSilver Crown: 22,500+ Points 
    Title:
    curl_multi_exec limit
    Content:

    Hi,

    What is the limit on the amount of cUrl requests we can do via curl_multi_exec

    At the moment it seems 50 but I need a lot more - obviously I can do workarounds but would like to be in a position where I don't have to

    The cUrl requests are going to a OSvC controller

    Thanks

Filter by Date

< < December 2019 > >
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Filter by Type