Create new Phriction document fails with: Unhandled Exception ("InvalidArgumentException")


#1

Observed Behavior:
When attempting to create a new Wiki page in Phriction, pressing the “Create Document” button results in an error page:

Unhandled Exception ("InvalidArgumentException")	
Value provided to "replaceQueryParam()" for key "l" is NULL. Use "removeQueryParam()" to remove a query parameter.

Editing an existing document does not result in an error.

Assuming related to this series of commits (they are some of the latest on the repo): https://secure.phabricator.com/D20162

Expected Behavior:
New Wiki document should be created without error. :stuck_out_tongue:

Phabricator Version:

phabricator
563cf8449a79c9a99fb370f4bde84913488def14 (Fri, Feb 15) (branched from c5772f51dea721134c129fdcd151a21850d03f72 on origin)
arcanist
7e61e43f6554a26fbf4f30ee0c05ec304ebb49ca (Tue, Feb 12)
phutil
da84d9c24445893281da13654abcb2a7d753fb68 (Thu, Feb 14)
php
7.2.15-0ubuntu0.18.04.1
diff
3.6 at /usr/bin/diff
git
2.17.1 at /usr/bin/git
hg
Not Available
pygmentize
2.2.0 at /usr/bin/pygmentize
svn
1.9.7 at /usr/bin/svn

Reproduction Steps:

  • Open Phriction
  • Navigate to “New Document” (document path doesn’t seem to matter)
  • Set title and content.
  • Click “Create Document”

Addendum:
Cannot recreate issue using demo instance.
Demo Phabricator Versions:

phabricator 4f40cb0ff9c6c28596fce62d0f3f5a87a8d44a72 (Mon, Feb 11) (branched from a20f108034126ff7dc45604dec80319e1ec76172 on origin)
arcanist 97ddb9d5a1be282d6002a875a759266bb97b653f (Dec 28 2018) (branched from 25c2381959ac94d9249ae4023c5f9ea36436b81c on origin)
phutil 70ec97f839b3b9e8200aaf0e8db4c8d0d843584e (Tue, Feb 12) (branched from 24a884ce0b4d0828c37abc97a8da4eab66c766f3 on origin)
libcore bbd45c09dc36719873ce45261b28ec2b8db34e2b (Sat, Jan 26)
services 33e0a0b2f661d00399db0aff288a19437bff39ff (Sun, Feb 10) (branched from f2c5cfb80eece5f9766b2baee72435c48357fefe on origin)
php 5.5.9-1ubuntu4.26
diff 3.3 at /usr/bin/diff
git 2.20.1 at /usr/bin/git
hg 2.8.2 at /usr/bin/hg
pygmentize 2.3.1 at /usr/local/bin/pygmentize
svn 1.8.8 at /usr/bin/svn

Can't log in to secure.phabricator.com
#2

Thanks! See https://secure.phabricator.com/D20184.


#3

That’s solved the issue. Thanks!


closed #4