Ask Question - create duplicate questions

Issue #5 closed
Victor Prasad created an issue

Hello,

When I Ask Question, a new page is created, after publishing, it shows up twice on my originating screen.

Thanks,

Mr. V

Comments (19)

  1. Andreas Purde repo owner

    Dear Victor,

    thank you for your report. This is interesting as it never showed up during testing.

    Can you please provide the following information which can help me to nail down the problem:

    1. Can you please tell me on which Confluence version you are on.
    2. Just to confirm: as you are talking about publishing, synchrony is on?
    3. On the left hand side in the side-bar the questions only show up once not twice?
    4. Can you please temporary include a "Children Display" macro on your page which holds the Simple QA macro and tell we whether the pages are shown once or twice.

    Thank you and kind regards

    Andreas

  2. Andreas Purde repo owner

    Dear Victor,

    did you have a chance to collect the information I need?

    Kind regards

    Andreas

  3. Victor Prasad reporter
    1. 6.2.3
    2. When I ask a questions, it takes me to create question on a new page. I fill it out hit publish, I see a duplicate of my question on the main page (see image). So the Publish works.
    3. Side bar - questions only show up once (yay!)
    4. Added - single items (note Children List macroUATChildDisplayQA.jpg already added - shows single questions)

    Thanks for your patience!

  4. Andreas Purde repo owner

    Dear Victor,

    thank you for your cooperation. The bad news first: I installed 6.2.3 on my server and had no issues with any of the browsers I tested (Chrome, Firefox, IE, Edge and Safari on Mac).

    Therefore I'm afraid I need your support again. I uploaded a version 1.1.2 here in the Downloads section. This version contains additional debug information. In order to get theam you have to add the class de.edrup.confluence.plugins.SimpleQAHelper with level debug to your logging and profiling settings of Confluence (see image below).

    debug_simple_qa.png

    Please render your FAQ test page once and send me the output from your log file. It should look similar to:

    2017-09-20 22:47:34,935 DEBUG [http-nio-8092-exec-4] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Collecting the relevant pages finished at 0 ms.
    2017-09-20 22:47:34,946 DEBUG [http-nio-8092-exec-4] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Found 11 relevant pages.
    2017-09-20 22:47:34,948 DEBUG [http-nio-8092-exec-4] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Rendering with 2 subsets.
    2017-09-20 22:47:34,973 DEBUG [pool-76-thread-4] [edrup.confluence.plugins.SimpleQAHelper] renderSubset Preparing the subset took 12 ms.
    2017-09-20 22:47:35,038 DEBUG [pool-76-thread-3] [edrup.confluence.plugins.SimpleQAHelper] renderSubset Preparing the subset took 78 ms.
    2017-09-20 22:47:35,040 DEBUG [http-nio-8092-exec-4] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview After rendering 11 pages left.
    2017-09-20 22:47:35,045 DEBUG [http-nio-8092-exec-4] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Getting the rendered overview finished at 110 ms.
    

    Generally this problem might also be an interference between two plugins. Which other plugins are you using?

    Sorry for the trouble caused.

    Kind regards

    Andreas

  5. Milos Tomic

    Hi,

    I also have this issue with 6.2.4 server. I installed the version with debugging but it doesn't show much, only difference is rendering with one subset if this is relevant... There are 3 pages but it finds 6.

    2017-09-21 10:20:20,578 DEBUG [http-nio-8090-exec-2] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Collecting the relevant pages finished at 4 ms.
    2017-09-21 10:20:20,579 DEBUG [http-nio-8090-exec-2] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Found 6 relevant pages.
    2017-09-21 10:20:20,582 DEBUG [http-nio-8090-exec-2] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Rendering with 1 subsets.
    2017-09-21 10:20:20,602 DEBUG [pool-269-thread-1] [edrup.confluence.plugins.SimpleQAHelper] renderSubset Preparing the subset took 15 ms.
    2017-09-21 10:20:20,604 DEBUG [http-nio-8090-exec-2] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview After rendering 6 pages left.
    2017-09-21 10:20:20,618 DEBUG [http-nio-8090-exec-2] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Getting the rendered overview finished at 44 ms.
    

    We have a lot of plugins, which one is suspicious? :)

  6. Andreas Purde repo owner

    Hi Milos,

    thank you very much for providing the details. Actually it helps a lot. "Found 6 relevant pages" means that the Confluence-API function returned 6 pages although there are only 3. This allows me to provide a fix shortly just by eliminating the doubles.

    Just to confirm: you have 3 direct children and no pages under those childs?

    Thank you

    Andreas

  7. Milos Tomic

    Hi Andreas, that is right. As soon as I create a question I check the overview and see that the each entry is doubled. No child has its own children.

    BR, Miloš

  8. Andreas Purde repo owner

    Hi Miloš,

    could you please try version 1.1.3 from the download section. This hopefully solves the issue.

    Thank you

    Andreas

  9. Victor Prasad reporter

    Hello,

    I am already on running v1.1.4. Does that make difference for the sql debug?

    2017-09-21 16:38:34,037 DEBUG [http-nio-8090-exec-16] [edrup.confluence.plugins.SimpleQAHelper] setSimpleQADataForPage Setting Simpla QA data for page 115572821: {"active":true,"ownerId":"8abc86cc45e74e5e0145e74effc9045d","views":6,"approvedWithCommentId":"","votes":[]} 2017-09-21 16:38:38,621 WARN [http-nio-8090-exec-77] [confluence.plugins.createjiracontent.CachedJiraResourcesManager] getRemoteJiraServer Could not detect issue creation supported or not in JIRA server null -- referer: https://confluenceuat.aer.ca/pages/viewpage.action?pageId=115572845 | url: /rest/highlighting/1.0/panel-items | traceId: 2b370514189bbae0 | userName: cb394 2017-09-21 16:38:38,662 DEBUG [http-nio-8090-exec-48] [edrup.confluence.plugins.SimpleQAHelper] setSimpleQADataForPage Setting Simpla QA data for page 115572845: {"active":true,"ownerId":"8abc86cc45e74e5e0145e74efc5e0047","views":2,"approvedWithCommentId":"","votes":[]} 2017-09-21 16:38:43,579 ERROR [http-nio-8090-exec-90] [edrup.confluence.plugins.SimpleQAHelper] getOverviewParams com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (null) -- referer: https://confluenceuat.aer.ca/display/MSTS/EOP+FAQ+Test+Page?src=contextnavpagetreemode | url: /plugins/servlet/simple-qa-data | traceId: e2e6520e774b1506 | userName: cb394 2017-09-21 16:38:43,579 DEBUG [http-nio-8090-exec-13] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Collecting the relevant pages finished at 2 ms. 2017-09-21 16:38:43,580 DEBUG [http-nio-8090-exec-13] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Found 8 relevant pages. 2017-09-21 16:38:43,584 DEBUG [http-nio-8090-exec-13] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Rendering with 1 subsets. 2017-09-21 16:38:43,610 ERROR [pool-318-thread-1] [edrup.confluence.plugins.SimpleQAHelper] renderSubset com.atlassian.json.jsonorg.JSONException: JSONObject["ownerId"] not found. -- referer: https://confluenceuat.aer.ca/display/MSTS/EOP+FAQ+Test+Page?src=contextnavpagetreemode | url: /plugins/servlet/simple-qa-overview | traceId: 182aa6922154e3e6 | userName: cb394 2017-09-21 16:38:43,611 ERROR [pool-318-thread-1] [edrup.confluence.plugins.SimpleQAHelper] renderSubset com.atlassian.json.jsonorg.JSONException: JSONObject["ownerId"] not found. -- referer: https://confluenceuat.aer.ca/display/MSTS/EOP+FAQ+Test+Page?src=contextnavpagetreemode | url: /plugins/servlet/simple-qa-overview | traceId: 182aa6922154e3e6 | userName: cb394 2017-09-21 16:38:43,622 WARN [http-nio-8090-exec-86] [confluence.plugins.createjiracontent.CachedJiraResourcesManager] getRemoteJiraServer Could not detect issue creation supported or not in JIRA server null -- referer: https://confluenceuat.aer.ca/display/MSTS/EOP+FAQ+Test+Page | url: /rest/highlighting/1.0/panel-items | traceId: 20f1293e43932fc6 | userName: cb394 2017-09-21 16:38:43,623 DEBUG [pool-318-thread-1] [edrup.confluence.plugins.SimpleQAHelper] renderSubset Preparing the subset took 35 ms. 2017-09-21 16:38:43,626 DEBUG [http-nio-8090-exec-13] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview After rendering 6 pages left. 2017-09-21 16:38:43,635 DEBUG [http-nio-8090-exec-13] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Getting the rendered overview finished at 58 ms. 2017-09-21 16:39:26,840 INFO [http-nio-8090-exec-19] [plugins.synchrony.service.SynchronyExternalChangesManager] performExternalChange Started external change for ContentId{id=115572852} 2017-09-21 16:39:26,843 INFO [http-nio-8090-exec-19] [synchrony.service.http.SynchronyRequestExecutor] execute Initiating request PUT http://127.0.0.1:8091/synchrony/v1/data/Alberta-Energy-Regulator--bdac5a7f-1245-3d71-8fc5-c837c4e67ea6/confluence-115572852?state-at=@head&state-format=html HTTP/1.1 for 115572852 2017-09-21 16:39:27,431 WARN [http-nio-8090-exec-90] [confluence.plugins.createjiracontent.CachedJiraResourcesManager] getRemoteJiraServer Could not detect issue creation supported or not in JIRA server null -- referer: https://confluenceuat.aer.ca/pages/viewpage.action?pageId=115572852 | url: /rest/highlighting/1.0/panel-items | traceId: d5977c87b60b66ed | userName: cb394 2017-09-21 16:39:27,475 DEBUG [http-nio-8090-exec-13] [edrup.confluence.plugins.SimpleQAHelper] setSimpleQADataForPage Setting Simpla QA data for page 115572852: {"active":true,"ownerId":"8abc86cc45e74e5e0145e74efc5e0047","views":1,"approvedWithCommentId":"","votes":[]}

    thank you for your support!!

  10. Andreas Purde repo owner

    Dear Victor,

    thank you for your log-file. Does the problem still exist?

    From your log-file I see that there should be 6 pages/questions in the overview.

    Kind regards

    Andreas

  11. Andreas Purde repo owner

    Dear Victor,

    you also installed version 1.1.4. The issue is fixed since version 1.1.3.

    Kind regards

    Andreas

  12. Victor Prasad reporter

    It is strange it was showing up with v1.1.4. When I added the logging – it stopped.

    Victor Prasad System Analyst, Information Services Alberta Energy Regulator e victor.prasad@aer.ca tel 403-355-4584 fax 403-297-3537 Suite 1000, 250 – 5 Street SW, Calgary, Alberta T2P 0R4 inquiries 1-855-297-8311 24-hour emergency 1-800-222-6514 www.aer.cahttp://www.aer.ca/

  13. Andreas Purde repo owner

    This is fact is strange. Whether or not something shows up in the log is a functionality the plug-in does not influence at all. What happens if you remove the log level you added?

  14. Log in to comment