A user created a page with a "|" character in it. Now if he tries to access the page he gets a blank screen and a 400 code with confluence 6.5.1.
1) What the heck?
2) How can we delete the page?
For the record, nginx was decoding the encoded request and passing that to confluence. The documentation at https://confluence.atlassian.com/confkb/how-to-use-nginx-to-proxy-requests-for-confluence-313459790.html is actually wrong for this case. Per http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass if you use a proxy_pass directive with a URI (as in the atlassian doc) nginx will "normalize" the URI and pass it in decoded form. (I tend to think this is a bug in nginx, as the decoded form isn't valid: it should normalize to encoded form.) Per the nginx documentation you need a proxy_pass without a URI to skip this decoding. In my case it was a simple case of changing
proxy_pass http://localhost:8090/
to
proxy_pass http://localhost:8090
If my confluence instance had additional layers in the URI or required rewriting, the solution might be more complicated.
that solved it for me also
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What form is the URL in, one with /viewpage.action?pageId= or with the page title?
If the later, does it show the pipe character or |?
Does the page appear in the page tree under the Page Reorder tab of the space tools?
If you can find the page ID, you can build the delete URL as follows:
../pages/removepage.action?pageId=
This page would indicate that the pipe character is now legal, but it might cause issues with browsers:
I would just avoid these characters all together.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The link has the page title with %7C in it, not the page ID. It does show up in the page tree. "Just avoid the character" isn't a great solution unless there's a way to make all the users just know that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well having been a Confluence admin for 6 years, users just have to expect that there are some reserved characters. Pipe is one that should never be used in page titles.
You are also unable to view the page? When it fails, does it show the page ID? Have to tried on different OS/browser combinations?
Is there anything in the Confluence logs? That might give you the ID and an error code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, having been working with web apps for many years, admins should expect that the app fails before creating the bad page, not after it's already there. :)
I can't view the page. All it does it display a blank screen. Browser developer mode shows that it's returning an empty page with a 400 code. Nothing in the confluence log. I've tried chrome & firefox with the same result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree it appears to be a bug. What is strange is that there is nothing in the log. Are any drafts showing?
You should/could file a bug as it seems those characters are now supported, BUT if it does not show anything in the logs ...
So blank screen instead of a Confluence screen with error code. Are you behind a proxy such as NGINX? I have seen setting with rewrite rules on proxies that will cause those kind of errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ah, that's it--something in the proxy. if I port forward directly to the server it works ok. so that's something fixable, thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, when you said "blank screen," it tipped me off. ;-) A vote would be nice. ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.