• kevincc
  • NEWBIE
  • 9 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 5
    Replies
Hi,
I'm having an issue loading a basic "test" visualforce page in my summer 14 dev org.

steps to reproduce

1) login as administrator on the summer 14 org
2) create new visualforce page with name "test", leave all page content as the default. save
3) load the visualforce page using the url: https://naXX.salesforce.com/apex/test
4) blank page is displayed and url is

https://c.na17.visual.force.com/visualforce/recsession?sid=<sid removed>&inst=o&cshc=0000000qBFQ0000000KC0M&retURL=https%3A%2F%2Fc.na17.visual.force.com%2Fapex%2Ftest

I've reproduced this issue on 2 orgs.


Can anyone else reproduce it? Does anyone know what is going on?


Thank you.

Hi,

I'm trying to create a visualforce page and reference an extension that is located in a managed package and has a namespace "nsp".  Note: the visualforce page is not in the managed package.  The visualforce page looks like this:

 

 

<apex:page standardController="Account" extensions="nsp__testextension">

    
</apex:page>

 

However when I try to save the above the error is "Error: The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores." 

 

The controller extension looks like this:

 

global class ControllerExtension{
    
    global ControllerExtension(ApexPages.StandardController stdController) {
    
    }


    @RemoteAction
    global static String helloWorld(String recordId) {
    
        return 'Record id in context: '+recordId;
    
    }
    
}

 

 

 

Are extensions with namespace supported?

 

 

 

 

Hi,

If you look at the CronTrigger object description there are fields called StartTime and EndTime:  http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_crontrigger.htm

 

It appears these fields are NOT writable.

 

 Using System.Schedule (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm) method does not accept start time or end time for a cron job.  This means any job scheduled through System.Schedule has StartTime as the current date/time and EndTime is null.

 

How does one set CronTrigger StartTime and EndTime fields for jobs scheduled using System.Schedule?

 

 

Thanks!

 

This question is related to an app hosted externally to salesforce.  The user will access the app through a custom web tab in salesforce.  Based on user actions, the custom app server hosting the app makes calls to salesforce via the REST and SOAP APIs.  The app doesnt store any user state i.e. no sessions.  Instead, the server url, session id and other data are passed (over https of course) from the client to the custom app server when an action is performed.  That means that if an attacker wants to abuse one of the pages of the custom app a valid session id and server url would have to be supplied to perform the action.

 

The communication looks like this:

client browser <--> custom app server <--> salesforce

 

I've been reading http://wiki.developerforce.com/page/Secure_Coding_Cross_Site_Request_Forgery, which  recommends "A secure anti-CSRF mechanism should create a different and unpredictable token for each user session"

 

Measuing the use of session id against the anti-CSRF mechanism critiera mentioned in the article:

 

1) session id is be supplied to perform an action

2) session id is different and unpredictable for each user session

3) session id is different across users

 

 

Does the user's session id act as an anti-CSRF mechanism in this scenario?

 

 

 

Hi,
I'm having an issue loading a basic "test" visualforce page in my summer 14 dev org.

steps to reproduce

1) login as administrator on the summer 14 org
2) create new visualforce page with name "test", leave all page content as the default. save
3) load the visualforce page using the url: https://naXX.salesforce.com/apex/test
4) blank page is displayed and url is

https://c.na17.visual.force.com/visualforce/recsession?sid=<sid removed>&inst=o&cshc=0000000qBFQ0000000KC0M&retURL=https%3A%2F%2Fc.na17.visual.force.com%2Fapex%2Ftest

I've reproduced this issue on 2 orgs.


Can anyone else reproduce it? Does anyone know what is going on?


Thank you.

Hi ,

 

I am trying to hide standard edit/delete button from standard detail page.

 

I tried using Jvascript and Jquery but none is working.

 

Javascript&colon;

document.getElementsByName("edit").style.display='none';

 

Jquery:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$j = jQuery.noConflict();
$j(document).ready(function(){
$j("input[name=edit]").hide();
});

</script>

 

Please let me know if some thing needs to be changed in the above code, or let me know if any easy solution other than record types.

 

Thanks

Prashanth

Hi,

If you look at the CronTrigger object description there are fields called StartTime and EndTime:  http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_crontrigger.htm

 

It appears these fields are NOT writable.

 

 Using System.Schedule (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm) method does not accept start time or end time for a cron job.  This means any job scheduled through System.Schedule has StartTime as the current date/time and EndTime is null.

 

How does one set CronTrigger StartTime and EndTime fields for jobs scheduled using System.Schedule?

 

 

Thanks!

As much as I know tha answer,

 

Just want to confirm this one.

 

Can we have different security settings for reports in a same folder?

I have a customer who needs to set the End Date on a Scheduled Apex job.  The Scheduled Apex is submitted by Apex, yet when we go through the UI, the End Date is blank and there appears to be no way to set it. 

 

So, does anyone know how you can set the the EndDate, via Apex, when submitting a new Scheduled Job?  I am using the System.ScheduleJob method and am NOT trying to use an Insert DML on CronTrigger

 

Thanks in advance...

 

Steve