Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Email subject with square bracket creates page that errors on access #17

Open
OzWookiee opened this issue Apr 3, 2019 · 3 comments
Open

Comments

@OzWookiee
Copy link

Version:
Type: Bug


Description

We have emails coming in from our status page (status.aroflo.com) and they have a title in subject line with square brackets. This then creates a page title of same which causes Server 400 errors:
https://help.aroflo.com/display/COM/2019/03/09/Status+Update%3A+%5BComplete%5D+Planned+Maintenance

image

Steps to reproduce

  1. Setup to create blog posts from email
  2. Send email with subject line: "Status Update: [Complete] Planned Maintenance"
  3. Review list of blog posts and confirm that the page lists correctly
  4. Click on link

Expected Behavior

//Should create a page title that is valid for use in URL and does not through server 400 errors when accessed

Actual Behavior

// Creates page title that is invalid for use in URL and does through server 400 errors when accessed

Can also repro by creating a blog post with title: "Status Update: [Complete] Planned Maintenance"

@OzWookiee
Copy link
Author

This may be a bug with Confluence itself, but guessing it's going to be easier to get this plugin updated instead of a bug in Confluence itself 🤦

@OzWookiee
Copy link
Author

PS this is a VERY handy tool!

@OzWookiee
Copy link
Author

Not knowing java that well but //guessing// that it would be a gsub prior to or in line 100 of:
https://github.com/dm-drogeriemarkt/Email-to-Confluence/blob/master/src/main/java/de/dm/mail2blog/MessageToContentProcessor.java

 // Set the title.
page.setTitle(generateTitle(message, page));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant