Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 26 14:25
    tonyjunkes commented #528
  • Feb 26 14:13
    asimakos commented #528
  • Feb 26 13:48
    tonyjunkes commented #528
  • Feb 26 13:47
    tonyjunkes commented #528
  • Feb 26 12:05
    asimakos commented #528
  • Feb 25 16:13
    tonyjunkes commented #528
  • Feb 24 14:43
    tonyjunkes commented #528
  • Feb 23 21:05
    asimakos commented #528
  • Feb 23 16:31
    asimakos commented #528
  • Feb 22 20:32
    tonyjunkes commented #528
  • Feb 22 20:24
    asimakos commented #528
  • Feb 22 20:24
    asimakos commented #528
  • Feb 22 20:01
    tonyjunkes commented #528
  • Feb 22 19:23
    asimakos commented #528
  • Feb 22 16:26
    tonyjunkes commented #528
  • Feb 22 13:20
    asimakos commented #528
  • Feb 22 13:19
    asimakos commented #528
  • Feb 22 05:50
    tonyjunkes commented #528
  • Feb 22 05:48
    tonyjunkes commented #528
  • Feb 21 12:34
    asimakos opened #528
Sean Corfield
@seancorfield
[github-fw1]
[framework-one/fw1] Issue closed: framework-one/fw1#503 by seancorfield

[github-fw1]
[framework-one/fw1] Pull request closed: framework-one/fw1#504 by seancorfield

[github-fw1]
[fw1:develop] 2 new commits by Matthew J Clemente and 1 other

[Sean Corfield, cfml] @mjclemente ++ Thank you for the issue and PR!
[watney, cfml] `@seancorfield gives karma to @mjclemente. They now have 13 karma. #38 overall.`
[Matthew Clemente, cfml] Thanks @seancorfield!
Sean Corfield
@seancorfield
[Carl Von Stetten, cfml] Having major issues trying to use FW/1 4.2 as a REST API backend for an Angular 5 app. When attempting to do POST or PUT (and maybe PATCH and DELETE, although we haven't tried that yet), Angular does an OPTIONS request to verify what methods are available. No matter what we do, the OPTIONS request always response with Access-Control-Allow-Methods →OPTIONS,POST,GET, and Angular throws an error that PUT (and curiously POST) wasn't allowed. For reference, here's a portion of the FW/1 settings from app.cfc:
variables.framework = { action = 'action', defaultSection = 'main', defaultItem = 'default', reloadApplicationOnEveryRequest = true, generateSES = true, SESOmitIndex = true, diEngine = "di1", diComponent = "framework.ioc", diLocations = [ "/model", "/controllers", "/sharedModel" ], diConfig = { }, routes = [ { "$RESOURCES" = "actor,movie,movieToActor" } ], resourceRouteTemplates = [ { method = 'get', httpMethods = [ '$GET' ] }, { method = 'post', httpMethods = [ '$POST' ] }, { method = 'get', httpMethods = [ '$GET' ], includeId = true }, { method = 'put', httpMethods = [ '$PUT' ], includeId = true }, { method = 'patch', httpMethods = [ '$PATCH' ], includeId = true }, { method = 'delete', httpMethods = [ '$DELETE' ], includeId = true }, { method = 'error', httpMethods = [ '$*' ] } ], decodeRequestBody = true, preflightOptions = true };
[Carl Von Stetten, cfml] Doing an OPTIONS request in Postman also returns only OPTIONS,POST,GET in the Access-Control-Allow-Methods response. But at lease we can hit POST/PUT/PATCH/DELETE directly in Postman and get back the expected results.
Sean Corfield
@seancorfield
[Carl Von Stetten, cfml] Is there something else we need to do to get FW/1 to show all the available methods in the OPTIONS response?
Sean Corfield
@seancorfield
[Sean Corfield, cfml] The way OPTIONS responds is to say the methods that are allowed are the ones that would match for all verbs for the route that OPTIONS was called for.
[Sean Corfield, cfml] resp.setHeader( "Access-Control-Allow-Methods", "OPTIONS," & uCase( structKeyList( request._fw1.routeMethodsMatched ) ) );
[Sean Corfield, cfml] The resourceRouteTemplates machinery generates a bunch of different routes and so each of those distinct routes will have a different set of verbs that work with them -- and therefore each route will respond differently to OPTIONS.
Sean Corfield
@seancorfield
[Sean Corfield, cfml] (I didn't write any of the auto-expanding resource stuff, BTW)
[Sean Corfield, cfml] To debug, I think you can dump the expanded route map...? I'm not sure what happens when you override the default routes.
Sean Corfield
@seancorfield
[Carl Von Stetten, cfml] @kanna2591 suggested I try sticking to the FW/1 defaults, so I reverted my controller back to using the default method names (default,show, create, update, and destroy) and removed the custom resourceRouteTemplates config setting. Here's my current app.cfc and actor.cfc: https://gist.github.com/cfvonner/1f9dfd96d43a33a178b03f98c9666fb2
[Carl Von Stetten, cfml] I'm still only seeing OPTIONS,POST,GET returned in the Access-Control-Allow-Methods header.
Sean Corfield
@seancorfield
[Sean Corfield, cfml] @cfvonner Can you create a GitHub issue and link to that Gist? That way I'll remember to take a look later on...
[Carl Von Stetten, cfml] Yup, will do.
Sean Corfield
@seancorfield
[github-fw1]
[framework-one/fw1] Issue created by cfvonner
framework-one/fw1#505
Tony Junkes
@tonyjunkes
Just realized that 2 of my own project's Travis builds were getting logged in the Gitter activities feed (doesn't show in the main feed at least!). That's from me copying some of FW/1's Travis file to use as a base template for my own projects. I clearly did not remove everything that didn't pertain to my own needs so just wanted to drop in and say oops and sorry about that! I will make sure I remove the entries from my build files, so I don't pollute the feed further.
Sean Corfield
@seancorfield
LOL! You win a prize for the first actual message here in almost a year @tonyjunkes ! :)
Charles Robertson
@charlesr1971
Hi everyone. This is a slightly desperate request, because I doubt anyone is using this combo anymore. But here goes...

MURA CMS 6.2.6303
Windows 10
Coldfusion 2018

I have just upgraded my CF application server from CF11 to CF2018. The front end works fine, but when I try and login to /admin, I get a CF error 500:

Could not find the ColdFusion component or interface blog1.establishmindfulness.admin.framework.
Ensure that the name is correct and that the component or interface exists.

This exception is thrown on all of my MURA CMS 6 websites. I have tried reloading the application, clearing the browser cache, restarting the application server, and nothing works. I have even tried creating a new MURA CMS website, using a new download, but I cannot access the admin page.

I had already made 2 fixes to get CF2018 to work with the front end. I had to remove the timeout attribute from the cfschedule tag in config/appcfc/onApplicationStart_include.cfm and also I added a fix in requirements/MURA/bean/ioc.cfc, but I think there is a more serious issue with the FW1 subsystem!

And, everything works fine in the latest version of Lucee 5.3.6

Any help would be most appreciated.

Sean Corfield
@seancorfield
@charlesr1971 Nearly all the FW/1 activity happens on https://cfml.slack.com these days
Sign up for the CFML Slack here http://cfml-slack.herokuapp.com/
Charles Robertson
@charlesr1971
Thanks. I will direct my question there...