opensourceBIM / BCF-Forum

Server and forum to communicate on BIM issues. BCF 2.0 compatible.
35 stars 11 forks source link

Solving issues BCFForum with Bimserver1.5 #10

Open bdamay opened 6 years ago

bdamay commented 6 years ago

BCF Forum looks like a very nice way to deal with BCF file and their relation to IFC file. But i didn't get it to work neither with bimserver 1.4 nor 1.5 versions. Is it intended to be working with 1.5 bimserver one day?

I'm pretty much interested by this type of workflow but i don't figure out where to start. Help on this matter would be nice.

Thanks in advance

aothms commented 6 years ago

Hi, thanks for your interest in this project. The BIMserver revisions this worked with are really very specific (and frankly I forgot, which version it is). However, these days the BIMserver interfaces are much more stable again. If you are interested in migrating this to 1.5 I will definitely be responsive in helping out with issues, the required changes would be quite minimal.

bdamay commented 6 years ago

Hi, Thanks for answering so quickly and yes i'm definitely interested by testing it with Bimserver 1.5. I definitely think BCForum working well could be the feature that decides the use of Bimserver itself in our workflow.

That said her is where i am on my testing platform:

And i'm running into the same exacte same issue described by davidfungf in issue #8. (Error in login) Bimserverapi object is not loaded.

I tried on a Local bimserver running with Jar, but the same problem occurs.

Thanks for helping

Benoit

aothms commented 6 years ago

Bimserverapi object is not loaded.

Global is not defined under bimserverapi.js:89

Hard to judge without a proper stack trace. Would it be possible to post a full stack trace?

bdamay commented 6 years ago

Sure you're right, i didn't report this properly.
So i restarted a test and this is what i get with bimserver 1.5.95 (war version on tomcat8) The errors are not quite the same as before so please forget the previous incomplete message.

In wordpress i'm routed to some url like: /wp-content/plugins/BCF-Forum/consideration-forum/index.html?token=86d58f5a08f41eda8102a876b975d64f and i have two forms with credentials informations to type. One for Bimserver and the other for BCFserver (i do not really what is to be type for BCF Server but it's not the point here)

I type the "Sign In" button and got the error message An error occurred while loging in: failed to connect to BIMserver (in red)

In the console i have the error saying:http://MY_BIMSERVER/js/bimserverapibootstrap.js not found image image

It's not exactly the same error i got with 1.5.94 since recently ruben seems to have moved the location of bimserverapi on the server to root folder instead of js/ (see https://github.com/opensourceBIM/BIMserver-JavaScript-API/commit/8a019ea67d9e61c90beef2b6995f0c68a1f0d1e6)

Thanks for your help, let me know if you need more informations

aothms commented 6 years ago

Well, I really don't have enough time to setup an environment and look at this in detail, but if I have a quick look it seems the considerationforum does not load that directly, rather it loads "/js/bimserverapi.js" [1], so does somehow the BIMserver still redirect you there?

One problem seems to be only the minified JS was ever uploaded. If we provide you the original non-minified JS will you be able to make more miles?

[1] https://github.com/opensourceBIM/BCF-Forum/blob/master/BCF-Forum/consideration-forum/js/built/dojo/dojo.js#L210

bdamay commented 6 years ago

Hi Thomas, I don't have much time either but i definitely would like to give it a try with a non minified version of script, even if i'm really not familiar with dojo. Am I right the link you have provided is minified ? I don't really understand what i have to do with it.

I'm not sure to understand you correctly but do you mean the script is trying to load js from the Bimserver as it should'nt ?

To be complete here are the three lines i get in network activity when i try to connect to BCFForum. the 3 files are requested on the bimserver_url/js/. Apparently String.js is well found as theutils.js ans bimserverapibootdtrap.js are not.

image

Thanks again for helping.

Benoit

DuncanLithgow commented 5 years ago

I'm confused. Is BCF currently generally functional with BIM server?

sotlog commented 3 years ago

There is any update about dojo.js and bimserverapi.js? I am using bimserver 1.4 final 2015 and when i am trying to sign in bimserver-bcfserver i get errors. 2021-02-10 (2) Thanks in advance!

aothms commented 3 years ago

Guys, I'm archiving this repository, the Wordpress BCF server seems not to be available anymore and this repo code only works with an unknown outdated version of BIMserver. There is a BCF rest API now being standardized that should be embraced instead. Thanks for your interest in this project, feel free to fork and continue development, but the opensourceBIM community can no longer provide support for this particular project.