Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    NodeBB 1.17 and later breaks PBF compatibility

    Player Help
    10
    28
    4119
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Panther
      Panther Admin Moderators last edited by Panther

      As already noticed on axisandallies. org and potentially here after the next forum software update:

      https://github.com/triplea-game/triplea/issues/10032

      tripleabuilderbot created this issue in triplea-game/triplea

      closed 2.5.22294: NodeBbForumPoster#uploadSaveGame:163 - java.lang.ClassCastException #10032

      ubernaut 1 Reply Last reply Reply Quote 1
      • ubernaut
        ubernaut Moderators @Panther last edited by

        @panther i thought we already had that issue here and fixed in prerelease is this something new?

        Panther 1 Reply Last reply Reply Quote 0
        • Panther
          Panther Admin Moderators @ubernaut last edited by Panther

          @ubernaut

          Yes, this is new.

          I can reproduce it with the current prerelease:

          trax.png

          You won't notice this on this forum, yet, as this forum runs on the very outdated NodeBB 1.16.2 while the current version is 1.19.1.

          TripleA (as well as this forum's software) needs to be updated to support PBF on forum software versions >=1.17.0.

          B ubernaut 2 Replies Last reply Reply Quote 0
          • B
            beelee @Panther last edited by

            @panther yea i saw where Djensen talked to the nodebb guys and they found where it broke but Idk anything about a fix. Not sure, but my guess is triplea needs to change to make it work ?

            1 Reply Last reply Reply Quote 1
            • ubernaut
              ubernaut Moderators @Panther last edited by

              @panther gotcha just making sure 🙂

              1 Reply Last reply Reply Quote 0
              • LaFayette
                LaFayette Admin last edited by

                Joy, perhaps that update can be done in a backward compatible way in 2.6, though it'll be an ugly hack. I don't know how we can preserve 2.5 to still work after updating the forum software.

                djensen47 1 Reply Last reply Reply Quote 1
                • djensen47
                  djensen47 @LaFayette last edited by

                  @lafayette I don't know how the code works but if this piece is encapsulated in it's own class, then you can extract an interface and have two implementations of the interface. Then you can use a factory method to return the correct instance based on a key. In this case the key could be some constant that represents the forum in question.

                  LaFayette 1 Reply Last reply Reply Quote 1
                  • LaFayette
                    LaFayette Admin @djensen47 last edited by

                    @djensen47 I was more thinking how to handle updating the TripleA forum. Presumably we'll need to handle both formats; I think 2.6 will precede the forum upgrade. To handle this in code it will be seemingly ugly as the code will have to do things like "is this map?" no, okay, "is this a list?"

                    djensen47 1 Reply Last reply Reply Quote 0
                    • djensen47
                      djensen47 @LaFayette last edited by

                      @lafayette I was thinking the same ... maybe I need to see the code. Where's the entry point for this code? E.g., where I can see the forum posting workflow?

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        simon33 @djensen47 last edited by

                        @djensen47 Is it feasible to roll back to the previous version of NodeBB?

                        Panther 1 Reply Last reply Reply Quote 0
                        • Panther
                          Panther Admin Moderators @simon33 last edited by

                          @simon33 The previous version had other bugs affecting forum functionality.

                          1 Reply Last reply Reply Quote 1
                          • RoiEX
                            RoiEX Admin last edited by

                            I created https://github.com/triplea-game/triplea/pull/10059/files to quickly fix this issue without breaking compatibility. Not pretty but it should work for now

                            RoiEXLab created this issue in triplea-game/triplea

                            closed Fix NodeBB banned check #10059

                            Panther redrum 3 Replies Last reply Reply Quote 3
                            • Panther
                              Panther Admin Moderators @RoiEX last edited by Panther

                              @roiex

                              Thank you.

                              Unfortunately no one has merged this until now.
                              Can you maybe self-merge this?

                              However, this would result in another 2.6 -prerelease - so in a version that for other reasons currently can't be recommended for general usage, at least as far as I understand it. Any chance we can have sort of a fix that runs with the current stable?

                              B 1 Reply Last reply Reply Quote 1
                              • B
                                beelee @Panther last edited by

                                @panther yea adding this fix only to another 2.5 would be the way to go. Idk if that's simple or not. People would still need to DL the new one but without the 2.6 stuff that is still being worked on.

                                1 Reply Last reply Reply Quote 0
                                • redrum
                                  redrum Admin @RoiEX last edited by

                                  @roiex Message me if you need someone to review it.

                                  If the current master isn't in a good state to release soon then it might be better to patch the current release version and release that.

                                  RoiEX 1 Reply Last reply Reply Quote 2
                                  • RoiEX
                                    RoiEX Admin @redrum last edited by

                                    @redrum

                                    If you have like 5 Minutes, please feel free to review it, it's a rather small change. Not really clean but it should work for now

                                    redrum 1 Reply Last reply Reply Quote 1
                                    • redrum
                                      redrum Admin @RoiEX last edited by

                                      @roiex Yeah, looks good. I merged it. Do you know if we are close to pushing out a release? Otherwise, we should probably consider putting that fix into 2.5 and pushing it out.

                                      1 Reply Last reply Reply Quote 2
                                      • Panther
                                        Panther Admin Moderators last edited by

                                        @roiex @redrum

                                        I just want to bring this issue back to attention. It seems like we get no answer to the question how close a 2.6 release actually is.

                                        This seems to indicate that it might be useful to push an updated 2.5 stable.

                                        LaFayette 1 Reply Last reply Reply Quote 3
                                        • LaFayette
                                          LaFayette Admin @Panther last edited by

                                          @panther This is the 2.6 project: https://github.com/triplea-game/triplea/projects/25

                                          Volunteers to help come up with a list of any other items that need to be fixed would be really welcome (https://forums.triplea-game.org/topic/2999/2-6-release-getting-close-need-volunteers-to-help-beta-test-2-6/3)

                                          1 Reply Last reply Reply Quote 0
                                          • Panther
                                            Panther Admin Moderators @RoiEX last edited by Panther

                                            @roiex

                                            Unfortunately this fix doesn't work as expected.
                                            I have just verified
                                            https://github.com/triplea-game/triplea/issues/10117

                                            and can confirm it with 2.6.571.

                                            Anyone else tested PBF on A&A .org using a current prerelease?

                                            cc: @redrum

                                            tripleabuilderbot created this issue in triplea-game/triplea

                                            closed 2.6.571: YamlReader#readList:28 - java.lang.ClassCastException #10117

                                            redrum 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums