Download tasks and others as Excel throw exception

#1

Observed Behavior:
Download/Export tasks and others as Excel worksheet throws exception in a specific case. With the default setup there is no problem with the URI. But if you redefine custom protocolls with ./bin/config set 'uri.allowed-protocols' the System throws a exception see AphrontRedirectResponse.php line 143.

Expected Behavior:
Phabricator should be able to detect the own export URI or the base URI. Or in the documentation should be contain a info that you have to add/use the basic protocols in your custom config for export data.

Phabricator Version:
Latest

Reproduction Steps:
The default state

  • Export the section my tasks as Excel. :+1:t2:

The custom state

  • create a file touch uri.allowed-protocols.json
  • Update the file subl uri.allowed-protocols.json
    content: [ "file" ] for using the file://... for server explorer/finder links.
  • Load the file into config ./bin/config set 'uri.allowed-protocols' --stdin < uri.allowed-protocols.json
  • Try to export the excel worksheet.
  • Exception :-1:t2:

Update

  • Update the file subl uri.allowed-protocols.json
    content: [ "file", "http", "https" ]
  • Load the file into config ./bin/config set 'uri.allowed-protocols' --stdin < uri.allowed-protocols.json
  • Try to export the excel worksheet.
  • NO Exception :+1:t2:
0 Likes

#2

This is expected. If you set “Allowed Protocols” to just “file”, that means ONLY “file” is allowed: you are disallowing “http” and “https”.

0 Likes

#3

For a internal uri too?

0 Likes

#4

Yes.

0 Likes

#5

Ok thank you.

0 Likes

#6

See https://secure.phabricator.com/D20430.

1 Like

closed #7
0 Likes