FatFractal customer forums



Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - julio.bradford

Pages: [1]
1
NoServer Questions and Answers / EngineSecurityManager Error
« on: March 04, 2016, 07:17:53 PM »
Getting the following error when call httpclient.request(); server side is nodejs and express with no require authetication.  I get about 10 error before the call succeed.

Regards

INFO | com.fatfractal.noserver.serverside.FF_JS_API$ScriptLogger | 2016.03.04 10 at 04:34:05.893 PM MST | ScheduledTask_ProcessAutoDataLoad | system | ymubO_-3GP-Af-evWSqTs6 | *** PMIRestfulWebService.getRequest.Request is [{"url":"http://pmi-coreos-bm04.dropsupplies.com:3000/companies","method":"GET","headers":{"Accept":"application/json","Content-Type":"application/json"}}]
ERROR | com.fatfractal.engine.security.EngineSecurityManager | 2016.03.04 10 at 04:34:06.222 PM MST | Security manager: Access denied for : checkPermission ([java.net.URLPermission http://pmi-coreos-bm04.dropsupplies.com:3000/companies GET:AcceptAccept-EncodingUser-Agent])
ERROR | STACK_TRACE | 2016.03.04 10 at 04:34:06.338 PM MST | java.lang.Exception
   at com.fatfractal.engine.security.EngineSecurityManager.checkPermission(EngineSecurityManager.java:295)
   at sun.net.www.protocol.http.HttpURLConnection.URLtoSocketPermission(HttpURLConnection.java:1034)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1425)
   at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)

code
      var url     = "http://pmi-coreos-bm04.dropsupplies.com:3000/companies";
      var headers = {"Accept" : "application/json", "Content-Type" : "application/json" }
      var request = {
         url: url,
         method: "GET",
         headers: headers
      };

      try {
         ff.logger.forceInfo ("*** PMIRestfulWebService.getRequest.Request is [" + JSON.stringify(request) + "]");
   var httpResponse = hc.request(request);
   var ccStatusCode = httpResponse.status;
   var ccResponse   = JSON.parse(httpResponse.content);

Nodejs code

var http = require('http'),
    express = require('express'),
    compression = require('compression'),
    morgan = require('morgan'),
    favicon = require('serve-favicon'),
    company = require('./routes/companies');

var app    = express();
app.use(compression());
var web400 = require('./server-web400');
var pm400  = require('./server-pm400');
var qs400  = require('./server-qs400');

app.get('/companies', company.findAll);
app.get('/companies/:id', company.findById);

app.listen(3000);
console.log('Listening on port 3000...');

node code example

2
NoServer Questions and Answers / Final block not properly padded
« on: November 05, 2014, 05:11:03 PM »

This looks like a java issue; however, I'm asking here since it happens at deployment with response code :400.
updated my OSX and now I'm getting on failed deployment.

Failed to deploy : reason [400: exception[Given final block not properly padded]]

thanks for your help. 8)

3
NoServer Questions and Answers / Failed to encrypt: null.
« on: January 21, 2014, 04:14:26 PM »

I Want to have an encrypt property CVV ENCRYPTED STRING in collection /DebitCard but value is sometimes null; How do I handle saving a DebitCard with a null CVV without throwing failed to encrypt error?

CREATE OBJECTTYPE DebitCard  (name STRING, nameOnCard STRING, expireMonth ENCRYPTED STRING, expireYear ENCRYPTED STRING, cardNumber ENCRYPTED STRING, cvv  ENCRYPTED STRING, STRING)

CREATE COLLECTION /DebitCard OBJECTTYPE DebitCard


Failed to encrypt: null

4
NoServer Questions and Answers / concept of global variable
« on: January 05, 2014, 11:26:39 PM »
   Is there a concept of a global value set within the ffdl file with FF-Javascript-Server-Side
   and then user with an Extension or EventHandlers?


Regards,

- Julio

5
NoServer Questions and Answers / Password Pattern
« on: January 03, 2014, 03:48:20 PM »
My setting in the application.ffdl are

SET PasswordPattern           "((?=.\\d)(?=.[a-z])(?=.*[A-Z]).{8,50})"
SET PasswordValidation        true
SET PasswordMessage         "Password must be between 8 and 50 characters long, must contain at least one digit, at least one lowercase letter and at least one uppercase letter"


I'm getting PasswordMessage message return when I register a user with a valid password.  What is the correct PasswordPattern format for my settings?


Regards.

Pages: [1]
Copyright © FatFractal customer forums