Custom file uploads seem impossible from a POST request?

Why are $ _Files and/or HTTPFoundation\FileBag invalid in custom module Controller?

I have noticed a very strange issue with accessing an individual file from the $ _FILES object or the Symfony derived \Symfony\Component\HTTPFoundation\FileBag from within a custom module controller.

The exact location of the issue seems to be in Symfony\Component\HttpKernel\HttpKernel -> handleRaw

Specifically, the file exists prior dispatching the KernelEvent::REQUEST but it does not after.

// request $  event = new GetResponseEvent($  this, $  request, $  type);  // THE FILE EXISTS HERE // file_exists( $  request->files->get(0)->getRealPath()) == TRUE  $  this->dispatcher->dispatch(KernelEvents::REQUEST, $  event);  // THE FILE DOES NOT EXISTS HERE // file_exists( $  request->files->get(0)->getRealPath()) == FALSE 

Here is the entire method for reference also including some code to move the file, which works as expected as long as it is before the event dispatch.

  /**  * Handles a request to convert it to a response.  *  * Exceptions are not caught.  *  * @param Request $  request A Request instance  * @param int     $  type    The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)  *  * @return Response A Response instance  *  * @throws \LogicException       If one of the listener does not behave as expected  * @throws NotFoundHttpException When controller cannot be found  */ private function handleRaw(Request $  request, $  type = self::MASTER_REQUEST) {     $  this->requestStack->push($  request);       $  directory = \Drupal::service('file_system')->realpath(file_default_scheme() . "://");      /* @var \Symfony\Component\HttpFoundation\File\UploadedFile $  uploadedFile*/     $  uploadedFile = $  request->files->get(0);      if (is_uploaded_file($  uploadedFile->getRealPath())){       $  success = $  uploadedFile->move($  directory);     }      // request     $  event = new GetResponseEvent($  this, $  request, $  type);     $  this->dispatcher->dispatch(KernelEvents::REQUEST, $  event);      if ($  event->hasResponse()) {         return $  this->filterResponse($  event->getResponse(), $  request, $  type);     }      // load controller     if (false === $  controller = $  this->resolver->getController($  request)) {         throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $  request->getPathInfo()));     }      $  event = new FilterControllerEvent($  this, $  controller, $  request, $  type);     $  this->dispatcher->dispatch(KernelEvents::CONTROLLER, $  event);     $  controller = $  event->getController();      // controller arguments     $  arguments = $  this->argumentResolver->getArguments($  request, $  controller);      $  event = new FilterControllerArgumentsEvent($  this, $  controller, $  arguments, $  request, $  type);     $  this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $  event);     $  controller = $  event->getController();     $  arguments = $  event->getArguments();      // call controller     $  response = call_user_func_array($  controller, $  arguments);      // view     if (!$  response instanceof Response) {         $  event = new GetResponseForControllerResultEvent($  this, $  request, $  type, $  response);         $  this->dispatcher->dispatch(KernelEvents::VIEW, $  event);          if ($  event->hasResponse()) {             $  response = $  event->getResponse();         }          if (!$  response instanceof Response) {             $  msg = sprintf('The controller must return a response (%s given).', $  this->varToString($  response));              // the user may have forgotten to return something             if (null === $  response) {                 $  msg .= ' Did you forget to add a return statement somewhere in your controller?';             }             throw new \LogicException($  msg);         }     }      return $  this->filterResponse($  response, $  request, $  type); } 

I am trying to write a custom GraphQL module mutation plugin that handles file uploads and unless I can get access to the file object from the POST request, I don’t think this will be possible.

Any thoughts are greatly appreciated.

I believe this may be a core issue or an upstream issue with Symfony or at the very least a side effect of the assumptions of how new requests are created.

Alitalia changed flight made our travel impossible

Alitalia changed the second flight of my connection, making it impossible for me to travel between Ajaccio (AJA) and Rome (FCO). The new scheduled flight leaves a day before we even take our first flight. Since our flight date has been changed and not cancelled, am I still eligible for a refund? Ive just now received the email announcing the change and the flight was supposed to take place next thursday. The flight info provided on Alitalia's website

Does disabling WiFi and mobile data make my phone impossible to hack online?

As I understand, a relatively outdated phone (Android 5, not updated for a few years) could be easily compromised by using security exploits through WiFi, mobile data, NFC or Bluetooth.

I’m about to participate to an event where other people might try to hack into my phone (I suppose there is a similar issue when going to the conferences such as DEF CON). Given that NFC and Bluetooth are already turned off, is there any chance for another person to hack into my phone if I keep WiFi and mobile data turned off as well?

Naturally, physical stealing of the phone is out of question, but the intruder can get within centimeters of the phone in a crowd.

If we introduced an illogical/logically impossible system into a hypercomputer, would it be able to fully “compute” it? [on hold]

Trivialism is a system that proposes that literally every proposition is true and false at the same time blatantly breaking the principle of no contradiction and triggering the principle of explosion (

I find this system very interesting and I would like to find a cosmological or physical theory/hypothesis/model that would be completely compatible with it. I will explain what I mean by “completely” in a little bit…

Almost all physical theories and cosmological models I’ve found avoid at all costs contradictions, and when some contradiction is found is either ignored or rejected. It has been a strong traditional claim and assumption in philosophy and science that inconsistencies cannot exist in reality, so all these models with inconsistencies are rejected or ignored by most of the people.

For example, physical laws break inside black holes (in the singularity). We would expect to have a lawless “place” inside black holes where everything could be allowed, but virtually no physics propose that. They propose that inside black holes, there are other, yet uknown, set of laws that could explain what happens inside, but because we cannot receive any information from the singularity, we cannot guess anything and we cannot build any set of laws that would plausibly be applied to black hole singularities.

Anyways, the only set of theories that I’ve found that would be compatible with trivialism, are those which propose that the universe is a computer, or rather, a hypercomputer, since trivialism would certainly have uncomputable things that could only be computed by a hypercomputer. I think these models would be compatible with trivialism because they would assume that the universe is a hypercomputer and it would be made of information or something similar. Since hypercomputers (as well as brains) can compute/conceive trivialist systems, a hypercomputer-universe, or something similar, could perfectly have a trivialist nature

But then, here is when the word “completely” takes place: Even though a hypercomputer, or our brains, can work with trivialist systems, there are things that would exist in a hypothetical completely trivialist universe that we could not compute/conceive. For example, in a trivialist system, a cricle intersecting a straight line in 3 points in Euclidean geometry, would be perfectly possible (in classical logic, would be logically impossible). But although we can think of a trivialist system or universe where this could be found on its nature, we cannot know/compute/conceive how would it be or look like. Since we cannot describe things that are logically impossible to describe (like such circle), we cannot imagine/compute/conceive how would that circle be, even if we can think of a trivialist system containing it. And even if we would be somehow capable of watching them from our universe, we would see nothing since these things would be logically impossible to describe and to exist (so no mental states would represent them, and thus, we would not see anything).

So this is the problem I am trying to solve. A hypercomputer/hypercomputational information-based model of a universe could produce a universe where its laws would be evidently “governed” by trivialism (just as in our universe, our laws are evidently, at least for the majority, “governed” by classical/quantum rules). But since no hypercomputational system could compute some things that are logically impossible to describe (like the example I wrote before) not all things that would be theoretically inside a trivialist universe could exist in a hypercomputer-universe (since in computational models of the universe or even in hypercomputational models of the universe, everything that would not be computed, would not exist).

So, is it there any physical/cosmological hypercomputational model that would also assume that things that would not be computed by the hypercomputer-universe would also certainly exist? Or maybe there are other different hypercomputational models where literally all things that trivialism would “describe” or propose, would exist and be true?…

What would happen if a camera, an AI or ourselves saw an impossible thing? Would we see it? [on hold]

Consider there is a multiverse where all kinds of impossible worlds and things occur. Where illogical/logically impossible things exist. Where there are even, somehow, things that are logically impossible to be described by words or even any kind of information. Where literally all impossible things would exist (even those that are impossible to describe/depict/conceive).

Consider we could somehow access to these things (for example, through a “portal” to that impossible multiverse). If we placed a camera or a robot in front of that portal, would they actually see them? I mean, there would not be any informational process in the robot or the camera that could process and depict that information… The same happens with brains: There is no mental state, neuronal process or neural network that could depict and process what we would be “seeing”. But there is an illness called Prosopagnosia where the mental states that allow us to see and recognise faces are destroyed or disappear. People who suffer that illness do not see faces, do not know what faces are and they don’t recognise faces (as faces), but they are still able to observe a face and all of its characteristics (eyes, mouth, nose…). I once talked with a neuroscientist who told me that, if we removed the mental state that allows a person to see and recognise balls, they would not see a ball but they would still be able to observe it…

So even if there was no (logically) possible circuit, network or mental state to represent these impossible things we would be seeing, would we/a robot/and AI/a camera still be able to observe them?

iOS and Burp Suite Certificate – Impossible to trust certificate?

I have the same question as this guy and it seems like trusting SSL certificates on the iPhone does nothing — it’s essentially broken, from what I can tell.

I have proxied my WiFi traffic to my BurpSuite instance in my VM (which is bridged), and I can see the traffic initiated in BurpSuite, but it doesn’t connect from my phone. It just says:

Safari cannot open the page because the network connection was lost.

Just to confirm, I have downloaded the certificate by navigating to https://burp from my iPhone, clicked on the “CA Certificate” button in the top right corner, and then trusted the certificate by going through the following steps:

  1. Navigated to Settings -> General -> Profile -> PortSwigger CA -> Installed this.
  2. Navigated to Settings -> General -> About -> Certificate Trust Settings -> Enabled the Port Swigger CA certificate.
  3. Rebooted phone.

Nothing works. Still can’t browse to because of the same “connection lost” error.

Does anyone actually know how to get this to work properly?

How can players take actions together that are impossible otherwise?

E.g. three players want to hurl a gigantic boulder at a monster during combat. Neither one can achieve this alone and must muster their combined strength to lift and hurl the massive stone.

The help action won’t work, since on p-175 of the Player’s Handbook on working together states:

A character can only provide help if the task is one that he or she could attempt alone.

So what should the players do? Can the one player starts lifting the boulder and others join in as a reaction (given that their in reach), or should two players still take the help action and the third player perform the lift. But it should be a group check rather then a single check with advantage, emphasizing that this is a team effort and not an assist.

Can hypercomputation compute the impossible?

There are things which are illogical/logically impossible (like saying that 2+2=4 and 2+2=5. Without changing anything in the axioms of mathematics or logic, this would be a contradiction and would be inconsistent and illogical/logically impossible.

There are other types of logic systems apart from classical logic, like paraconsistent logics or even trivialism, that allow these contradictions to occur, prove them as right and work with them.

We can make a paraconsistent or trivialist system and work with it. For example, with trivialism, in theory, we would be able to derive and state everything we would want (since literally everything, even including illogical/logically impossible inconsistencies and contradictions), but we as humans (or as brains), are limited and can’t conceive everything we want (at least to what I know). Therefore, no matter how many trivialist models we create and how much time we would work with them, we would never find or conceive many illogical/logically things because they are just that: impossible. There are impossible things to describe and conceive. For example, Russel’s set is the set of all sets that do not contain themselves. If Russel’s set contains itself, then it cannot contain itself, since it only contains sets that don’t contain themselves. But if Russel’s set does not contain itself, then it must contain itself, since it contains all sets that don’t contain themselves. There are quite a few logic bombs like this. You cannot ever compute the contents of Russel’s set, and there are more formal, mathematical ways to present it. All of them have in common that you can’t actually compute what the set is, whether you do it by hand, in your head, or on a computer. It’s just a statement that cannot be fully logically processed. If you take every possible state the human brain can be in, none of them include the computation of Russel’s Set’s contents. That is, not only can the contents not be computed, they cannot even be represented. No stimulus can cause us to comprehend Russel’s Set, since such comprehension is not possible to begin with. It does not have a solution. Even if we try to solve it using trivialism, we would just be able to write a solution that does not make sense and prove it has sense and it is the real solution, but we could not be able to have a solution that would make sense “outside” the realm of trivialism (for example in classical logic), even though, using trivialism, we could prove that such solution would have sense in whatever context and logic system.

But what about hypercomputational machines (for example oracle-like machines)? I’ve read about some models of hypercomputation which are compatible with paraconsistent or trivialism logics. I’ve also read there are some models of hypercomputation (particularly those oracle-like models which use a black box) where, essentially, the hypercomputer is an algorithm that cannot exist. It might be because such an algorithm is fundamentally forbidden by logic itself (which is hided in a black box). Would any of these be capable of computing/”conceiving” these impossible things I wrote before? Do you know of anything that would help?

I was also thinking that maybe we could evolve enough to get brains that would be capable of computing all of these… So, could our brains ever evolve so much that we could conceive and compute all these illogical/logically impossible things that cannot exist?