Giter Club home page Giter Club logo

wonder's People

Contributors

avendasora avatar btriller avatar darkv avatar elemgee avatar fbarthez avatar hprange avatar hugithordarson avatar ishimoto avatar jbrook avatar johnnykahalawai avatar johnthuss avatar kierankelleher avatar luizalfredo23 avatar macmarco avatar maiksd avatar markusstoll avatar mmankai avatar mschrag avatar nullterminated avatar nur-sgaertner avatar paulhoadley avatar qdolan avatar rebeld avatar recurve avatar renebock avatar rkiddy avatar schmied avatar simpson-yfu-org avatar spelletier avatar swklein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wonder's Issues

ERXWOForm swallows exceptions in finally

In invokeAction and other core component methods, ERXWOForm includes a try/finally block. In the finally block, the ERXWOForm attempts to clear the form name. However, if an exception is thrown in the invokeAction, then that exception is effectively swallowed when the clear form name method throws its own exception.

Wonder-514 AjaxSubmitButton doesn't work when ERXWOForm.useIdInsteadOfNameTag = true

AjaxSubmitButton references the form element by name. This doesn't work when using ERXWOForm.useIdInsteadOfNameTag = true because the name is converted to id instead. This should probably just be a matter of changing line 153 of ASB to something like the following:

formReference = "document." + (ERXWOForm.useIdInsteadOfNameTag?"getElementById(" + formName + ")":formName);

WOAdaptor receive timeout setting from within Eclipse

You can start an instance from within Eclipse and run through Apache instead of using DirectConnect. The problem is that the adaptor has a receive timeout of 30 seconds so if you have a breakpoint in code the adaptor will quickly timeout and display a No instance available error.
It should be checked if it is possible to set the timeout interval to a greater number automatically when starting the instance in Eclipse to prevent this situation.

Bug in ERXRequest HOST_NAME_KEYS

re this:

// 'Host' is the official HTTP 1.1 header for the host name in the request URL, so this should be checked first.
protected static final NSArray HOST_NAME_KEYS = new NSArray(new String[]{"Host", "x-forwarded-host", "x-webobjects-server-name", "server_name", "http_host"});

this is incorrect. x-forwarded-host should be checked first because if you are running behind a load balancer that is handling ssl decryption for you then ALL incoming requests are http. the above line of code causes infinite re-directs when trying to switch from https to http via an ERXRedirect in an app behind a load balancer where ssl is handed off.

simon

WONDER-690 Update commons-lang and clean up build paths

Reported by Johan Werner

The java library commons-lang has been released in version 2.6. In ERJars it should be updated from 2.5.

Besides that the framework ERRest contains an older version of this lib even though it has ERJars on its build path and thus doesn't need to include the lib. It should be removed from ERRest.

The framework ERChronic includes commons-lang too. Perhaps it would be reasonable to remove that lib from this framework too and put ERJars on its build path?

mod_WebObjects logs error messages indefinitely

The problem is occasional. I don't know the cause of the problem yet. However, the collateral effect is very harmful. The mod_WebObjects logs the following message indefinitely:

[error] Error receiving content (expected 17081 bytes, got 0)

It causes high CPU usage affecting the performance of applications, and it doesn't stop until no space is left on the device.

I've observed this problem only on Apache 2.2 running in an Amazon Linux box.

Wrong errors when a specific request is missing

When a non-Apple provided request handler is not registered, for example ERXRouteRequestHandler, if you try to get an URL that use that handler, we get an "Session has timeout" error page instead of a more useful error (or a 404). I don't know if it's possible to change this behavior, but if it is, we should change it.

WONDER-732 Property expansion fails if any expansion fails

Reported by Gavin Eadie

Property expansion using the "@@" feature will fail to expand any of the items if any one of them fails. For example:

Property = First @@present@@ then @@absent@@.

Will expand correctly if the properties "present" and "absent" are available but, if "absent" is missing, then "present" is not expanded.

ERXObjectStoreCoordinatorPool leaking

It appears that ERXObjectStoreCoordinatorPool leaks EODatabase._DatabaseRecord objects whenever the pool size is > 1 and EOs are saved. After many hours in the debugger, I think I understand why...

Normally, when an EC saves changes, the ObjectsChangedInStore notification is fired, the snapshot is inserted with EODatabase's _fastHashInsert and then the EC refaults the EO when processing changes (updates) or frees the snapshot on finalize (inserts). These actions fire the corresponding _fastHashRemove to free the snapshot.

The problem appears to be that ERXObjectStoreCoordinatorSynchronizer rebroadcasts the ObjectChangedInStore notification to the other OSCs in the pool. This results in snapshots inserted, but with no EC around to clean up, the snapshots are never removed.

WONDER-726 JPEG code in ERAttachment will need re-write to compile with Java 1.7

Reported by Ray Kiddy

The problem is below. I tried taking the ERAttachment component out to test the rest of the build, but too many things have the ERAttachment framework on their dependencies list. Does BTBusinessLogic desperately need the ERAttachment framework? It must. O well.

[wocompile] Compiling 38 source files to /Users/ray/Roots/classes/ERAttachment
[wocompile] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[wocompile] /Users/ray/Projects/wonder/Frameworks/BusinessLogic/ERAttachment/Sources/er/attachment/metadata/DrewMetadataParser.java:23: error: cannot access JPEGDecodeParam
[wocompile] Metadata metadata = JpegMetadataReader.readMetadata(importFile);
[wocompile] ^
[wocompile] class file for com.sun.image.codec.jpeg.JPEGDecodeParam not found

The com.sun.image.codec.jpeg.JPEGDecodeParam class does not seem to be available to Java 1.7. Is the javax.imageio.plugins.jpeg.JPEGImageReadParam the class that this will be migrating to? It is not clear. The API of the JPEGImageReadParam class is not exactly comparable.

Or is there a way to have the com.sun.image.codec.jpeg.JPEGDecodeParam used by the Java 1.7 compiler when we build the ERAttachment framework?

multiple relationships to one entity on one page with ERModern does not work

If you have multiple relationships to one entitity on one page in ERModern, this will not work because there will be multiple identical id's.

Suppose you hava A.r1->B and A.r2->B, than you can not change the second page in a Create or and Edit page, because the id's of the component that is supposed to take care of that are similar.

A solution would be to create a name that would not only contain the name of the entities, but also the name of the relations, as these are supposed to have different names. So: ERMDRelationshipB would be ERMDRelationShopr1B, or in mycase:
MUC_EditRelationshipEmbeddedContact would become: MUC_EditRelationshipEmbeddedPubliciteitContact, and MUC_EditRelationshipEmbeddedTechniekContact

Does that make sense?

WONDER-674 ERXRequest.isRequestSecure is broken for servlet deployment

Reported by René Bock

I just noticed, that in servlet deployment the method ERXRequest.isRequestSecure doesn't return the expected value for https requests.

The reason is, that if the request header "https" is not set, there is check for header "x-webobjects-server-port"

but in servlet mode the header "x-webobjects-servlet-server-port" is sent...

By the way, the same is true for the header "x-webobjects-server-name" vs. "x-webobjects-servlet-server-name"

As consquence, generateCompleteUrls will generate the wrong protocol part.

WONDER-713 Derby plugin creates wrong sql

Reported by Greg Brown

When Entity modeler creates sql for an index, the statement is like: create index indname >>> FOR<<<< tablename(col). But Derby says:

CREATE [UNIQUE] INDEX index-Name >>>ON<<< table-Name ( Simple-column-Name [ ASC | DESC ]
[ , Simple-column-Name [ ASC | DESC ]] * )

For vs On, one works one doesn't

ERXSwitchEmbeddedPage have no API file

If you call ERXSwitchEmbeddedPage without any bindings, it will fail with:

com.webobjects.appserver._private.WODynamicElementCreationException: initialComponentName is a required attribute.

A API file should be added so that inside the component editor, we can know that this binding is required.

WONDER-699 Cannot compile Wonder source code with Maven 3

Reported by Martin ([email protected])

It seems like the current Wonder pom files configuration is not compatible with Maven 3. After spending a few hours trying to figure out why I couldn't compile the source code with Maven 3.0.2, I found out that it actually works with Maven 2.2.1. I am not sure exactly how to fix this problem, but it seems to be happening when dependencies exist between siblings under a parent module.

For example, when trying to compile BusinessLogic, BTBusinessLogic and ERMoviesLogic won't compile because they both have dependencies on ERTaggable and ERAttachment. BusinessLogic will only compile after removing BTBusinessLogic and ERMoviesLogic from the parent BusinessLogic pom file.

BusinessLogic/
├── BTBusinessLogic
├── ERAttachment
├── ERCoreBusinessLogic
├── ERMoviesLogic
├── ERTaggable
└── WOPayPal

It seems to be also the case for the Ajax, Core and D2W projects.

WONDER-711 ERMDDeleteButton throws exception when deleting newly created object

Reported by Freddie Tilley

After creating a new relationship eo object for an object in ERModernLook D2W using the embedded ERMODEditRelationshipPage. When trying to delete the newly created relationship object without saving the parent object first throws the following exception:

NullPointerException
at er.modern.directtoweb.components.buttons.ERMDDeleteButton.deleteObjectWithFinalCommit(ERMDDeleteButton.java:127)
at er.modern.directtoweb.components.buttons.ERMDDeleteButton.deleteAction(ERMDDeleteButton.java:107)
... skipped 14 stack elements
at er.ajax.AjaxUpdateLink.handleRequest(AjaxUpdateLink.java:383)
... skipped 184 stack elements
at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
... skipped 6 stack elements

It appears that in the code

if (finalCommit) { // if we are editing, then don't save the parent ec.
object().editingContext().saveChanges();
}

the newly created object() does not have an editing context.

1:N or N:N objects creation in ERRest

Right now, if we want to create a new object and create a related object linked to the primary one by a 1:N or N:N (flattened) relationship, we have to add each attributes of the destination, like this:

public WOActionResults createAction() throws Throwable {
ERXKeyFilter filter = ERXKeyFilter.filterWithAll();
filter.include(SomeEntity.DESTINATION_ENTITIES.dot(DestinationEntity.SOME_ATTRIBUTE));
SomeEntity newEntity = create(filter);
newEntity.editingContext().saveChanges();
return response(newEntity, filter);
}

If filter.include is not called, the new object 's attributes are getting emptied (or it's not null), and validation when saving while fail because of not null attributes.

I tried to track down the problem, and I found out that the problem is at this line (line 1021) of ERXRestRequestNode:

toManyNode.updateObjectWithFilter(childObj, keyFilter._filterForKey(key), delegate);

When this is called, keyFilter._filterForKey(key) returns ERXKeyFilter.Base.None, that's why everything is empty. That behavior doesn't happen to 1:1 relationship.

JQueryMobileExample

820b130

Add 2 Components with Cats what was used with the Podcast

more changes for H2 Database come in the next Commit

WONDER-723 Ajax Framework : AjaxExpansion JavaDoc

Reported by Gavin Eadie

In the Ajax Framework, the Javadoc for the AjaxExpansion component says of the "action" binding: "the action to fire when the contents are expanded" but it also fires when the contents are hidden -- it fires on both expansion and contraction.

ERXFormat based on headers

ERXRouteController.format() should check the Accept and Content-Type header to figure out the format to use if it was not specified in the URL. For example, JBoss' RestEasy client use Content-Type (bad idea, it should be Accept, but anyway) to specify the preferred format.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.