1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/src/applications/people/controller
cadamo 089d8327b3 Fix regenerate arcanist cert, setup stuff and avoid accept non valid image files as profile picture.
Summary:
Well, since I couldn't regenerate my arcanist cert I figured out that this wass because "workflows" are unavailable there now. I really can not figure out why but it was.
I added in the setup script, the ability to check if is present the protocol of the host and if it has a trailing slash a the end of the line, since both are needed to generate the cert.

Users now only be able to upload valid image files with mimetype of jpg, jpeg,
png and gif.

Test Plan:
FIRST: DO NOT apply those changes! then
1- go to settings->arcanist certificate and the click on regenerate ... humm
2- On your config file, delete the trailing slash at the end and the protocol on "phabricator.base-uri", then go to setting->arcanist certificate. Here you
will see something like this "phabricator.example.comapi\/" instead of
"http:\/\/phabricator.example.com\/api\/".

SECOND: Now apply this changes:
1- Go to settings->arcanist certificate and the click on regenerate.
2- On your config file, delete the trailing slash at the end and the protocol
on "phabricator.base-uri", and setup "phabricator.setup" to true.
3- Then go to setting->arcanist certificate and you could see that this was successfully generated.

THIRD:
Go to settings->account and try to upload an invalid image file, and do the same on "youruserna"->edit profile.

Reviewed By: epriestley
Reviewers: epriestley jungejason
CC: epriestley jugesason cadamo aran
Differential Revision: 391
2011-06-02 23:27:10 -03:00
..
base Provide an activity log for login and administrative actions 2011-05-20 19:08:26 -07:00
edit Revise administrative workflow for user creation 2011-05-31 13:06:32 -07:00
list Provide an activity log for login and administrative actions 2011-05-20 19:08:26 -07:00
logs Provide an activity log for login and administrative actions 2011-05-20 19:08:26 -07:00
profile Restore profile links to OAuth resources. 2011-02-22 11:06:37 -08:00
profileedit Fix regenerate arcanist cert, setup stuff and avoid accept non valid image files as profile picture. 2011-06-02 23:27:10 -03:00
settings Fix regenerate arcanist cert, setup stuff and avoid accept non valid image files as profile picture. 2011-06-02 23:27:10 -03:00